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'];

Web3 development encompasses creating decentralize[…]

The Upland Clone Script, offered by Dappsfirm, rep[…]

Dappsfirm offers a bet365 clone script that mirror[…]

🚀 Tauchen Sie mit Immediate Alora AI in die Welt d[…]