Change default app on menu

Hello,

I want to change dinamically the default application on menu.
By default it is a dashboard and I want to change to nothing.

On menu -> configuration
Default apllication -> One aplication
Aplication -> dashboard

I tested this but not works:
On login I created a checkbox called show_dashboard.
OnValideSuccess I have put this code:

if ({show_dashboard} == 1) {
sc_redir(‘menu’);
}
else {
sc_redir(‘menu’,default_app=’’);
}

Can you help me please?

Not sure if this helps or not but I created a query looking at what security group the user was in at login, and set which default app to display as a [global variable]. Then entered the [global variable] in the ‘default app’ box. I’m not at my dev machine but can look at it again later if needed. HTH.

Yes please.
Thank you.

Nobody knows how to do it?

Hi, I made a blank application and redirected the app_Login to it. in the app_login on validate_succes i redirect to the blank app and started some global variables.

the blank app then redirect the user based on a global var that holds the user type…

the blank app is like this:

/**

  • Conditional redirection
    */

// Redirection parameters
$redir_app_doc = ‘menu_docenten’; // Application name
$redir_app_stud = ‘Landstede_Brixx_Student’; // Application name
$redir_app_contact = ‘Landstede_Brixx_Extern’; // Application name
$redir_app_loc_admin = ‘Landstede_Brixx_Loc_Admin’; // Application name
$redir_docent = [usr_op_contactp_actief] == ‘2’; // Redirection docent
$redir_contactpers = [usr_op_contactp_actief] == ‘1’; // Redirection contactpersoon
$redir_student = [usr_op_contactp_actief] == ‘0’; // Redirection student
$redir_loc_admin = [usr_op_contactp_actief] == ‘8’; // Redirection locatie_admin
$redir_target = ‘_blank’; // Target window (_blank, _self, _parent or modal)
$redir_param = array( // Param list, add as many as needed
‘param_1’ => ‘value_1’,
‘param_2’ => ‘value_2’,
);

// Redirection
if ($redir_docent)
{
sc_redir($redir_app_doc, $redir_target);
}
// Redirection
if ($redir_student)
{
sc_redir($redir_app_stud, $redir_target);
}
// Redirection
if ($redir_contactpers)
{
sc_redir($redir_app_contact, $redir_target);
}
// Redirection
if ($redir_loc_admin)
{
sc_redir($redir_app_loc_admin, $redir_target);
}

hope this helps

what you use for $redir_target ???