Thanks for feedback, but your tip probably won't work as you are just
confirming the WQS runs on the save - which it is doing anyway!, ie: we need a
flag to say we are submitting, not saving! I did setup a flag via JS in the
submit routine and looked for that in the WQS-Agent, which worked, but a bit
messy:
Something like:
[button] onclick > doSubmit()...
//set notes field
document.forms[0].saveFlag='1';
forms[0].submit()
then in WQS:
if thisdoc.savFlag(0) = "1" then...
run the wqs, or reload doc...
Its just that I would really like a cool way to spot the difference between a
save and save/close!
without JS!!
If it wasn't for the pain of extracting name/value pairs, I would go the
?openagent route!
Jake,
Thanks for feedback, but your tip probably won't work as you are just confirming the WQS runs on the save - which it is doing anyway!, ie: we need a flag to say we are submitting, not saving! I did setup a flag via JS in the submit routine and looked for that in the WQS-Agent, which worked, but a bit messy:
Something like:
[button] onclick > doSubmit()... //set notes field document.forms[0].saveFlag='1'; forms[0].submit()
then in WQS:
if thisdoc.savFlag(0) = "1" then...
run the wqs, or reload doc...
Its just that I would really like a cool way to spot the difference between a save and save/close! without JS!!
If it wasn't for the pain of extracting name/value pairs, I would go the ?openagent route!
Anyway, enough rambling - cheers Jake!