Back
globalEditNew
Editing, Updating and Creating Records
globalEditNew
Save data from edit or new record form in global variable
Default:
To save results of an edit in a global variable called $SaveArray, set:

$lens->globalEditNew = 'SaveArray';

The variable will store the following in an array:

array[0] = associative array containing record details
array[1] = name of keyTable
array[2] = primary key of keyTable

For example, here are the results of an actual save:

Array
(
[0] => Array
(
[PRODUCTNAME] => 'Aniseed Syrup'
[SUPPLIERID] => 1
[CATEGORYID] => 2
[QUANTITYPERUNIT] => '12 - 550 ml bottles'
[UNITPRICE] => 10.0000
[UNITSINSTOCK] => 13
[UNITSONORDER] => 70
[REORDERLEVEL] => 25
[DISCONTINUED] => 0
[ORDERDATE] => '1970-01-01'
[TINYI] => 0
[PRODUCTID] => 3
)

[1] => products
[2] => PRODUCTID
)

 Basic:Yes  Advanced/Enterprise:Yes  DynamicEdit:Yes   [Version 4.0]