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

Moderator: 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

Hello ProcessMakers! We are extremely proud to an[…]

How processmaker load cases on home page of user? […]

Hey everyone, I'd appreciate any help you might be[…]

Error dynaform xml pm3

Thanks for sharing .