We made this configuration using the C_FIELD_READONLY ( documentation ) macro, which should indicate the field of our application to be set to read-only.Ĭlicking on “run application” will show us the following window where it is possible to enter the variable that we set, if we leave blank and click on “form_cliente” the form will execute normally showing the records that contains the related table. If you assign the value of the variable to the field and set the quoted field to read only, so that you can not edit the received value. Within the Event it is validated if the variable “Document” is different from empty. We made this configuration using the SC_APL_CONF ( documentation) macro which we need to indicate the name of the application, the property to be configured and the desired value for the property. If you start the form to load a new record. Within the Event is validated if the variable “Document” is nonzero. You can find more information about events in the link:Ĭonfiguration -> Optional (In case you are always expected to receive a variable, this option should be unchecked) The following example shows the Declaration of a variable and encoding in Scriptcase Events to act differently the pre-specified to receiving the variable. End of the month in which the month and year to be processed within the events of our form).Īll information needed to better understand parameter, the use of variables within Scriptcase can be found below by clicking here:
As a result, we can perform the tasks that we want within the form from initial values, since configuring initial values for the load of a new record (so that the user need to enter data already provided in external application) to more complex processes that require initial values to be started (for example. The application will be allowed to receive the value of the variable through the URL of our form. In Scriptcase there are three options for variables declaration: SESSION, POST and GET. That’s why using the GET type variables is a good option to receive external data in a Scriptcase Form when doing the interconnection between applications. Sending a parameter to an application is always easy when done within the Scriptcase environment, but when working with external applications we must do it another way. Reception of parameter via GET in applications of type Form