Variable onclick event
Posted: Mon Apr 22, 2013 4:56 am
Hi. Please can you help.
I am trying to setup a variable onclick event and am experiencing some problems.
I noted one of the Variable Hyperlink forum topics mentions it is possible to embed +get into the command string. This is exactly the functionality that I am after just with onclick and not hyperlink.
In this example I am trying to run a crystal report, using executable crexport, from a button. The report requires a single parameter which in this case is the employee ID.
For my onload event I have loadPCCommandApplet() and what I currently have linked to the button onclick is the following:-
var command = "C:\\cre\\crexport -u userid -p password –f C:\\cre\\engcard.rpt -e print -d datalib -a empid:"+get("WPRTENG"); runPCCommand(command);
WPRTENG in this case is an output field visible on the screen.
The report is running but it is not receiving the variable value for WPRTENG.
Is my assumption that the +get would work in this scenario incorrect?
Is there any other way of attaching the onclick event to value or variable field?
Thanks in advance.
I am trying to setup a variable onclick event and am experiencing some problems.
I noted one of the Variable Hyperlink forum topics mentions it is possible to embed +get into the command string. This is exactly the functionality that I am after just with onclick and not hyperlink.
In this example I am trying to run a crystal report, using executable crexport, from a button. The report requires a single parameter which in this case is the employee ID.
For my onload event I have loadPCCommandApplet() and what I currently have linked to the button onclick is the following:-
var command = "C:\\cre\\crexport -u userid -p password –f C:\\cre\\engcard.rpt -e print -d datalib -a empid:"+get("WPRTENG"); runPCCommand(command);
WPRTENG in this case is an output field visible on the screen.
The report is running but it is not receiving the variable value for WPRTENG.
Is my assumption that the +get would work in this scenario incorrect?
Is there any other way of attaching the onclick event to value or variable field?
Thanks in advance.