Questions and discussion about using ProcessMaker: user interface, running cases & functionality
By asamymansour
#790298
I have tried to get group UID using Chrome Developer Tools but i have always found this line which not include any numbers as expected but it have "&nbsp" instead of normal UID.
Code: Select all
<td class="x-grid3-col x-grid3-cell x-grid3-td-GRP_UID x-grid3-cell-first " style="width: 25px; display: none;" tabindex="0"><div class="x-grid3-cell-inner x-grid3-col-GRP_UID" unselectable="on">&nbsp;</div></td>
then i have used another method to get the group UID as per the follwoing line
Code: Select all
$result = executeQuery("SELECT CON_ID FROM CONTENT WHERE CON_CATEGORY='GRP_TITLE' AND CON_VALUE='QA'");
@@Groups = $result[1]['CON_ID'];
i have got the following error massage
The user with the UID '32733470057b2c7e8b63491006826352' doesn't exist.
I don't know what is the solution and how i can assign task to group based on variable value.
By zainab
#790301
Hello,

You can use the following ProcessMaker function to retrieve the Group UID:
Code: Select all
@@groupUID = PMFGetGroupUID("Employees");
This function returns the Group UID of the Group Name passed in parameters.
And then you can use the @@groupUID variable in your assignment rule.

Another option is to query the GROUPWF table:
Code: Select all
$res = executeQuery("SELECT GRP_UID from GROUPWF where GRP_TITLE='your_group_name'");
if(is_array($res))
{
  @@groupUID = $res[1]['GRP_UID'];
}
Hope this helps.

Best Regards,
Zainab Sabunwala
User avatar
By amosbatto
#815611
Create the following trigger which is set to be fired before the Dynaform:
Code: Select all
$taskId = @@TASK; //set to the ID of task or use @@TASK if the current task
$d = new Derivation();
$aUsers = $d->getAllUsersFromAnyTask($taskId);
@=userList = array();
   
foreach ($aUsers as $userId) {
   $aUserInfo = userInfo($userId);
   @=userList[] = array(
       $userId,
       $aUserInfo['firstname'] .' '. $aUserInfo['lastname']
   );
}
See: https://wiki.processmaker.com/3.0/Inter ... Task.28.29

Then, in the properties of your dropdown, set the datasource to "array variable" and data variable to: @@userList
datasourceInDropdown.png
datasourceInDropdown.png (28.16 KiB) Viewed 4498 times

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]