About us
ProcessMaker Inc. is the developer of the ProcessMaker Workflow & BPM Software Suite. Read more
@=myGrid = array(
"1" => array(x=>"aa", y=>"bb", z=>"cw"),
"2" => array(x=>"ab", y=>"bg", z=>"ce"),
"3" => array(x=>"ac", y=>"bh", z=>"ct")
);
$aRows = executeQuery("SELECT X AS x, Y AS y, Z AS z FROM TABLE_A");
$nextRowNo = count(@=mGrid) + 1;
foreach ($aRows as $aRow) {
@=myGrid[ $nextRowNo ] = array(
'x' => $aRow['x'],
'y' => $aRow['y'],
'z' => $aRow['z']
);
$nextRowNo++;
}
Sriluxshi wrote:HiAdd a variable that is set the first time the trigger is executed. Then check whether that variable is set before executing the rest of the trigger:
While I am doing this I got one error that is the data is adding by one while refreshing. the nextRowNo value is increasing by one each and every refreshing. How to solve this?
if (@@alreadyLoaded != 'yes') {
@@alreadyLoaded = 'yes';
@=myGrid = array(
"1" => array(x=>"aa", y=>"bb", z=>"cw"),
"2" => array(x=>"ab", y=>"bg", z=>"ce"),
"3" => array(x=>"ac", y=>"bh", z=>"ct")
);
$aRows = executeQuery("SELECT X AS x, Y AS y, Z AS z FROM TABLE_A");
$nextRowNo = count(@=mGrid) + 1;
foreach ($aRows as $aRow) {
@=myGrid[ $nextRowNo ] = array(
'x' => $aRow['x'],
'y' => $aRow['y'],
'z' => $aRow['z']
);
$nextRowNo++;
}
}
Web3 development encompasses creating decentralize[…]
The Upland Clone Script, offered by Dappsfirm, rep[…]
Dappsfirm offers a bet365 clone script that mirror[…]
🚀 Tauchen Sie mit Immediate Alora AI in die Welt d[…]