Hello Alexander, > On 04.02.2014 15:59, Ferran Jorba wrote: > > Hi! > >> there are a few magic values in the websubmit module, like SuE >> (submitter email) or SN (recid). Most of the other values come >> straight from the defined elements and the createTemplate and the >> sourceTemplate templates. >> >> However, now I need to know the doctype (that is, the webform id) of >> a record after it has been submitted. >> >> Which is the correct way of getting this value, other than peeking >> into the directory name of the file under >> $INSTALL_DIR/var/data/submit/storage/done/running/? > > I fear this is the only way, but you need to know the submission ID > then which might be equally complex to fiddle out. > > That's why we acutally store submission id as well as submission > doctype in Marc along with the record. We need this for this fancy [...]
I see. My way of extracting those equivalences is in batch every night, using a somewhat less crude version of the script I posted to the list a while ago: https://www.mail-archive.com/[email protected]/msg00596.html But in a new workflow I need to know it in a more realtime fashion. Unfortunately, I cannot easily add those values in my templates, because I'm reusing a few templates for a larger number of websubmit forms or doctypes. Given how long it takes to properly debug a template, I'm trying to keep them under Ockham's rule. Thanks anyway, Ferran

