Hi I am trying to make a button,on which i am passing document.forms(0).submit(),but the agent in webquerysave not working,i tried to check by writing the print statement on the first line but it is not going on the first line also.
Subject: Saving doc and webquery save
despite what joost said in his response below, document.forms(0).submit() will call your webquerysave agent. within the Runtime section of your agent properties, make sure it is set to run on Action Menu Selection with a target of None. that should do it.
Subject: RE: Saving doc and webquery save
Yep, you’re right and I was wrong. Sorry about that AM P
Subject: RE: Saving doc and webquery save
That i have already done,but still it is not calling webquery event
Subject: RE: Saving doc and webquery save
I’d rather recommend to set the agent to be run from the agent list (or on schedule never).
You don’t happen to try and use any UI objects in your WQS agent (which cannot work)?
Subject: Saving doc and webquery save
I think the WebQuerySave method is only called when you save the document using @Command([FileSave]). This passes some extra data to server. Take a look at the page source. You will find a __doClick function.