Page 1 of 1

User's launch form id

Posted: Thu Apr 05, 2018 3:18 pm
by Timo
nuAccessLevelCode() "Returns the Access Level's Code for the User currently logged in, but blank if logged in as globeadmin."
Is there a similar function like nuAccessLevelHome() that returns a user's home id? (the field sal_zzzzsys_form_idcode of the table zzzzsys_access)

Re: User's launch form id

Posted: Fri Apr 06, 2018 3:20 pm
by admin
Timo,

No, there isn't but you can make your own...

Code: Select all

$s = "SELECT * FROM zzzzsys_form WHERE zzzzsys_form_id = '#HOME_ID#'";
$t = nuRunQuery($s);
$c = db_fetch_object($t)->sfo_code;
$j = "

function homeCode(){
   return '$c';    
}

";

nuAddJavascript($j);

And put it in the Before Edit Event of the starting Home Page.


Steven

Re: User's launch form id

Posted: Sun Apr 15, 2018 6:43 pm
by Timo
thank you :D

Re: User's launch form id

Posted: Mon Apr 16, 2018 1:05 am
by admin
.