Questions and discussion about using ProcessMaker 2: user interface, running cases and functionality

Moderators: ArturoRobles, ArturoRobles

Forum rules: Please search to see if a question has already been asked before posting. Please don't ask the same question in multiple forums.
By kratos97
#827327
Hi,
Is there any possibility to get Title and Category of current process? I would like to display these values ​​on the dynaform.
Thanks.
User avatar
By RicardoMG
#827820
Hello!
At the moment ProcessMaker do not have a system variable that gets the category's name. but you can create a trigger and put it before the dynaform with the following code:
Code: Select all
$proc = @@PROCESS;
$result = executeQuery("SELECT CATEGORY_NAME 
FROM PROCESS_CATEGORY
INNER JOIN PROCESS
ON PROCESS_CATEGORY.CATEGORY_UID = PROCESS.PRO_CATEGORY
WHERE PROCESS.PRO_UID ='$proc'");
@@categoryName = $result[1]['CATEGORY_NAME'];
In the varaible @@categoryName it contains the name of the category which can be assigned to a textbox or whatever you need.

https://drive.google.com/file/d/1aiW3x1DInE4Z0W6whTRGO4HtTV_xDapl/view?usp=sharing

I am so happy that I found https://essaywriter.org[…]

Hi, Is there any method, e.g. by trigger, during […]

Hi, Please check the following link: http://pmle[…]

Where is processmaker-3.5.x.tar.gz ?

Hi, Please check this link: https://sourceforge.ne[…]