Hi NoAlias, I think this relates to your other post I just answered. To clarify, if you are linking from your SC generated grid to another SC generated app, like a form or control, then use the Links system. Sc will handle making all the parameter passing, as part of how SC works. You don;t have to manually code that stuff anymore SC handles the hyperlink and passing your parameters.
-
In the target app, like a form or control or another grid, create a global variable before doing any linking. Use that global to do something, say in the onScriptInit event. Or anywhere.
echo "My global is ".[myinfo];
make sure you set that the global is coming in, under your application - global variables settings. Now when you generate and run the app in the development environment, you will get a prompt to fill that value in for testing. The target app expects that global to come in.
-
In your grid, use the Links settings on the left hand menu to build a link for your column. See my other reply for how to make the column have a button… When you add the link, you will pick the target app. Since you have a global variable in the target, Sc will prompt you in a wizard to give that a value. That value can come from any field, another global, or even a hard coded value. Pretty cool.
Now when you generate both and run them, the link will work and pass the value(s). Once you get the hang of it, it is a very power way to work - very RAD.
Peace,
Jamie