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
View Dynaform in HTML Page

You might also want to check the [url=https://wiki[…]

You are going to have to put the configuration in […]

Hola, hay alguna forma de hacer que estos log se […]

Yo trabajo con la versión PM 3.2.3 - Ente[…]