I am extremely frustration with myself that I have not been able to figure this out. I have read through many threads, but am still stumped.
I have a report that requires both arguments and variables. I have a v11 dialog component that allows the user to set the parameters and variables. I have a button that uses action javascript to call the report, pass the arguments, etc. I have a submit button, but I do not know if I need it. In the report the variables are specified as session variables with a names like nMultiplier and cHowPrice. These variables are used in calculated fields in the report. They are defined in the report as nMultiplier=2.0 and cHowPrice="Retail". I am assuming these values are overrided by variable values passed from the dialog component. In the afterdialogvalidate (server-side event) I defined the following session variables: e.session.cHowPrice = e.DataSubmitted.pricing
e.session.nMultiplier = e.DataSubmitted.multiplier
Then I did a live preview and clicked the submit button (thinking that would trigger afterdialogvalidate) and then the report button. I get the report but it always has the variables as defined in the report (nMultiplier=2 and cHowPrice="Retail").
I have no idea if my syntax is correct. Report Variables Dialog Variables
nMultiplier e.session.nMultiplier
cHowPrice e.session.cHowPrice
I'd like to use one button on the dialog to call the report and pass the variables in the process. I was trying not to use global variables as a quick fix. Please point me in the right direction.
I have a report that requires both arguments and variables. I have a v11 dialog component that allows the user to set the parameters and variables. I have a button that uses action javascript to call the report, pass the arguments, etc. I have a submit button, but I do not know if I need it. In the report the variables are specified as session variables with a names like nMultiplier and cHowPrice. These variables are used in calculated fields in the report. They are defined in the report as nMultiplier=2.0 and cHowPrice="Retail". I am assuming these values are overrided by variable values passed from the dialog component. In the afterdialogvalidate (server-side event) I defined the following session variables: e.session.cHowPrice = e.DataSubmitted.pricing
e.session.nMultiplier = e.DataSubmitted.multiplier
Then I did a live preview and clicked the submit button (thinking that would trigger afterdialogvalidate) and then the report button. I get the report but it always has the variables as defined in the report (nMultiplier=2 and cHowPrice="Retail").
I have no idea if my syntax is correct. Report Variables Dialog Variables
nMultiplier e.session.nMultiplier
cHowPrice e.session.cHowPrice
I'd like to use one button on the dialog to call the report and pass the variables in the process. I was trying not to use global variables as a quick fix. Please point me in the right direction.
Comment