Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

User's launch form id

Questions related to using nuBuilder Forte.
Locked
Timo
Posts: 221
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

User's launch form id

Unread post 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)
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: User's launch form id

Unread post 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
Timo
Posts: 221
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: User's launch form id

Unread post by Timo »

thank you :D
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: User's launch form id

Unread post by admin »

.
Locked