![]() ![]() Check that the fields which were on blank situation, are now filled with chosen values. ![]() When you’ve been redirected to grid’s application choose one register to use, clicking on “Insert”.Ĭ. It is possible to see that the fields are blank. Still on onLoad event lets populate the fields with the variables sent by grid’s URL.Ī. On the onLoad event use the code below to redirect to the grid’s application. When I look at the request variables posted to the activations.php script the email value is set to this->email instead of the actual email address. On the onApplicationInit event we are going to use the macro sc_apl_conf(‘form_vendas’,’start’,’new’) to force the form to start in the inclusion mode. As you can see I am trying to pass a variable from the form called email to the activation.php script to have that variable available for the script for display. Creating a virtual field as Label, called “link” On form’s application let’s create a virtual field to redirect to grid’s application. This way we’ve created variables called “name” and “email”Ĭ. On the onRecord event we will define the field with form application’s path concatenating with the variables that will be sent. Create a Blank app with the following code: testvariable 'ABCDEF' echo '' vardump (SESSION) echo '' and you will see the session variable ‘testvariable’, accessible through code as SESSION ‘testvariable’. Create a field, called “link”, to be used as link to redirect you to the form application with parameters. On grid applicaitons lets define the parameters that will be sent by URL. ![]() Because of this I’m exploring other system than Scriptcase because working with several clients (grid or form) at the same time is a requirement. We are going to create a form application for Sales and a grid appliation for Users.ī. I’m having the exact same issue described here : Insert detail with master id - mix of master id when using global variable And so far I haven’t been able to solve it. Step #2 – Creating and Configuring the applications:Ī. In the Grid Settings select Start by Search (Yes), that followed head over to the Search section and create your form. But I think the first option would be your best bet. So I have to find a different way of doing this. A complete documentation for all the features of the Scriptcase development environment. F.ex: It is named en-gb in the browser, but engb in Scriptcase. To do so, we will send the parameters by URL using the $_GET array. The other possibility would be to run a control application first to gather all the parameters and pass them as global variable to your grid application. The problem is that the language-id in Scriptcase is a bit different as the language-id in the browser. Using $_GET on Scriptcase: On this tutorial we are going to show how to create a form application that will use a grid application to automatically fill form’s fields using only programming to pass parameters between applications. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |