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)
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
User's launch form id
Re: User's launch form id
Timo,
No, there isn't but you can make your own...
And put it in the Before Edit Event of the starting Home Page.
Steven
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);
Steven