Questions and discussion around ProcessMaker 2 documentation

Moderator: amosbatto

By nicolaj
#16646
http://wiki.processmaker.com/index.php/ ... s#Examples

Example "Trigger 3" results in an error if syntax is:

@@Data = executeQuery('SELECT DESC, DESC2 FROM DESCRIPTION', 'DataSource1');
@@issueDesc1 = @@Data[1]['DESC'];
@@issueDesc2 = @@Data[1]['DESC2'];

Works:

$Data = executeQuery('SELECT DESC, DESC2 FROM DESCRIPTION', 'DataSource1');
@@issueDesc1 = $Data[1]['DESC'];
@@issueDesc2 = $Data[1]['DESC2'];

Best regards
Nicolaj
By nicolaj
#16650
Correction:
My version doesn't work either (in a trigger). Just doesn't show any error :-(

Could anybody confirm the example shows the following error?
syntax error, unexpected '[':

Regards
Nicolaj
By nicolaj
#16659
Correct Syntax (for me):

@@Data = executeQuery('SELECT DESC, DESC2 FROM DESCRIPTION', 'DataSource1');
@@issueDesc1 = @=Data[1]['DESC'];
@@issueDesc2 = @=Data[1]['DESC2'];

regards
Nicolaj

Thanks for your reply, Press F12 in your web bro[…]

I created a new process to make it easier to look […]

Genial!!! gracias. :D

This is resolved. I took a punt on Amos' suggesti[…]