RUNSHELL and SETWFATTR runs on pageload

Hi All,

I have a WR powerview for a form and i would like to use the WR RUNSHELL command only when the user clicks on a button, but the RUNSHELL command runs on page load, same for SETWFATTR even though they are inside a java script function, is there a way to stop these from running till the user clicks on a button

Comments

  • The WR generates the HTML and JavaScript code that will run in the browser. In your case the button press should make a request to CS to run a WR with the RUNSHELL command.