To run a Lotus-script agent from a lotus notes webpage:
1) Write @Command([ToolsRunMacro]; "(MyWebAgent)") in the button's programmer pane Client > Formula and it will work when you click the button. No need to do Pass-thru HTML for this button.
If for some reason you are still not able to achieve your result, you can use an indirect approach, i.e.
2) In your button where you have written the code for running the agent, in it's Properties > HTML tab, give a name and id to it. It's better if we keep the value for Name and ID same.
Then create another Button or link and in that write in the programmer pane Web > Javascript, document.forms(0).<the button's ID value>.click()
i.e. document.forms(0).btnCheckDuplicate.click()
Thus, the first button will be triggered with the click() event and your agent will run.
1) Write @Command([ToolsRunMacro]; "(MyWebAgent)") in the button's programmer pane Client > Formula and it will work when you click the button. No need to do Pass-thru HTML for this button.
If for some reason you are still not able to achieve your result, you can use an indirect approach, i.e.
2) In your button where you have written the code for running the agent, in it's Properties > HTML tab, give a name and id to it. It's better if we keep the value for Name and ID same.
Then create another Button or link and in that write in the programmer pane Web > Javascript, document.forms(0).<the button's ID value>.click()
i.e. document.forms(0).btnCheckDuplicate.click()
Thus, the first button will be triggered with the click() event and your agent will run.
1 comment:
I have tried. But It is not successful. It shows error "The webpage could not be found"
Post a Comment