06-24-2014 12:23 PM - edited 06-24-2014 12:37 PM
Hello,
Im using: RunState.Root.Locals.StationInfo.StationID = Step.Result.Response expression in my Meassage Popup sequence, to obtain the station ID at runtime, and save it to my report. So far, this works.
Problem:
My goal is to buld an exectible thats deployed to other machines, wich will prompt a one time entry of the Station ID and used on all reports. e.g. even if I restart the execitable, for the program to look for this saved ID and place it in the report.
Where do I store the ID? How do I go about accessing it and inserting it to new reports?
Solved! Go to Solution.
06-24-2014 12:30 PM
Powerbox,
This seems like the ideal use case for a StationGlobal variable. These variables are intended for station-specific settings which retain their values between executions.
Perhaps you could have code which says: If StationGlobals.ID is not set, display a box to set it. Otherwise, do not display the dialog.
06-24-2014 12:46 PM
Thanks Daniel,
If I save the user input to my e.g. StationGlobal.ID variable, how do I get it from there to the Station ID field of my report?
06-24-2014 01:46 PM
By default, the data in the StationInfo container should be appearing in the report, so you can just have a statement similar to:
RunState.Root.Locals.StationInfo.StationID = StationGlobals.CurrentStationID
You would have this statement at the point in your sequence when you want to decide whether a prompt should be displayed to enter the ID if it does not exist.
Hope that helps, let us know if you have any more questions about it!