I have an action button which has the follwoing code works fine from the browser.@Command([RunAgent];“(ApproveAgent)”);@Command([FileSave]);@Command([FileCloseWindow])
But now the requirement is to take confirmation from the user before running the agent in the browser ?
How can i do this from Browser ?? i know javascript that use the Confirm but how to apply javascript for this situation ??
Any help appreciated…
Thanks,
Durga Prasad
Subject: Need help…with Action
Take a button (not a html one but the Lotus one), on this button write the @formula, what you have currently written.
Give this button a html id(in last html tab, lets say its btnTest). Put this button in a div tag and make visibility = false.
Now take a button on which you want to write JS code. Write code for confirmation and then do
obj = document.getElementById(‘btnTest’)
obj.click();
This will trigger your formula language code.
Subject: RE: Need help…with Action
THanks for your response. I did use _doClick to do the job and it works fine.I will try your solution too…