Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
By fratoro
#3100
I wish to populate data in a GRID with the following:

SELECT LNITMSEQ,ITEMNMBRFROM SOP10200 WHERE SOPNUMBE = ('ORD0040966')

I cant seem to get the trigger following to work

@@Data = executeQuery('SELECT LNITMSEQ,ITEMNMBRFROM SOP10200 WHERE SOPNUMBE = ('ORD0040966')', 'DataSource1');
@@LNITMSEQ = @@Data[1]['LNITMSEQ'];
@@ITEMNMBR = @@Data[1]['ITEMNMBR'];

What should I use? The returning data is 7 records, so the grid should have 7 records after the trigger loads the data

Thanks in advance
By harsh9
#5511
Hi, I read the above give tutorial.
But on my setup the grid is not populated.

i have created a grid , theGrid. But its name does not appear in list of @@ variables window.
When i create a' temp' field and put some value in it through trigger, it works properly.

@@theGrid=executeQuery('select fname,lname,mobile from contact'); // does not work !!

somebody please help me with a step by step guide or any possible mistake I might have made....
By harsh9
#5512
Hey I have found a problem here.
I tried to debug and found that I have contact table in rp_workflow but PM is trying to execute the query on wf_workflow.
Can anybody help me now ??
By medveolo
#6540
Hey,

Try to change the sql connection for the correct table.

To do this go to process map, there is a link to database connections, there you can set up which database you want to connect to

If you're looking to save big on your next online […]

If you're looking to save big on your next online […]

If you're looking to save big on your next online […]

Use the latest Freecash referral code "FC2507[…]