Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By PipSqueak
#815092
I made a text box with the SQL code below thinking that it'll keep changing the current user with @@USER_LOGGED, but this seems to only work the first time but fails in subsequent tasks. How do I refresh USER_LOGGED in every task?
Code: Select all
select USR_USERNAME FROM USERS where USR_UID = (select USR_REPORTS_TO from USERS where USR_UID = @@USER_LOGGED)
#815107
Create the following trigger:
Code: Select all
$managerId = userInfo(@@USER_LOGGED)['reportsto'];
@@reportsToUsername = $managerId == '' ? '' : userInfo($managerId)['username'];
Then create a text field in your Dynaform associated with the "reportsToUsername" variable.
Set the the above trigger to execute before the DynaForm.
#815115
Never mind, I got it
Code: Select all
$managerId = userInfo(@@USER_LOGGED)['reportsto'];
@@reportsToUsername = $managerId == '' ? '' : userInfo($managerId)['username'];

$managerId2 = userInfo($managerId)['reportsto'];
@@reportsToUsername2 = $managerId2 == '' ? '' : userInfo($managerId2)['username'];

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]