That could be a button, a link, or if you call the grid from outside through a form, linking the data to the grid. To set the globals you need some kind of trigger. You can do that in grid as well as in a form (in the select field). In the sql part of scriptcase you can use global variables. This variable should be processable for a sql statement to search for the certain id in another database table. A view is just like a table for scriptcase. This parameter stores the current line number of the log being executed by the event. After the user interacts, I want to pass that variable to another blank application (B). I can create and then access directly in the php code as many = array() ”. This parameter will receive an array of fields. When i used scredir(blank send app) on any of the events, it doesnt seem to pass the customer email variable to the blank application to send. In index 2 i stored a field name that i want to use in a grid in the select statement. Then the first time I need to populate a specific attribute, I write something like this in the code: i have a global variable, which is an array. Follows a table of all macros and special variables from ScriptCase, including the list of applications that works for each one. You can use Isarray function to check if variable is array or not. I’m just sharing how I’ve ended up managing variables that must be local to an application, but accessible from every local code (in events, buttons, etc.)īut to avoid to manually creating them (the SC IDE interface slows down this process), especially if have more than one or two, I just create a single attribute with the name “a”. SCRIPTCASE MACROS Scriptcase has macros and special variables that allow the user to manipulate events, buttons, applications, security control, manipulate with dates, etc. byref will pass the address of variable but byval will pass the copy of variable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |