Return to site

Scriptcase arrays

broken image

ofcourse it will always show the same value since you use Dataset 0 0 in order to get second row from dataset on second row of the grid you must change Dataset 0 0 to Dataset 1 0 use a counter variable to count number. Ran scriptcase update to version 9.8.000 (69) Created backup from current version 9.7.23 and tried import. When I try to retrieve the data from global var, I get error message “Cannot use string offset as an array”īut I got the following error message -> Parse error: syntax error, unexpected ‘,’ in grid_application.class. Watch or schedule a private demo to understand how Scriptcase can help you Learn from scratch concepts up to the development of functionalities and complete projects. the grid will look like this: field0 field1 field3. Download and install 9.8 for php 7.3 to a new folder.

broken image

How can we modify this single dimensional array to multi-dimensional array? My key to the record consist of 4 fields, and I want to capture this 4 fields per record into an array such that at the Button -> onRecord, Yes, you can use a foreach, for, while or another loop command to get emails from an array and send the emails. First, I’ve created a Control application with an unique field where we will type the message.

broken image
broken image

Based on the Run Button in a Grid Application (Processing Records) tutorial, it define the global variable as a single dimension array at the event oninit -> = array() įor each record selected under the Button -> onRecord, it assign the field “contactname” to the global variable total_chked To send an email with Scriptcase we will use scmailsend Macro.

broken image