Change a button visible property by role in mobile

Change a button visible property by role in mobile

  

Hello everyone,

when we are working in outsystems 10 web version, we can turn a Button visible with the condition (CheckOSMDbAdminRole(UserId:)). In mobile version, can i do that? I tried the same way, but it doesn't allow me.

Thanks ,

João Bernardes.

Solution

Hi Joao,

In P10 the roles are server side and are not automatically available on clientside (screens).

You can perform the query on the server after login and store the results in the local storage.

The button can then be shown after you query the local storage.

Kind regards,

Remco Dekkinga

Solution

Remco Dekkinga wrote:

Hi Joao,

In P10 the roles are server side and are not automatically available on clientside (screens).

You can perform the query on the server after login and store the results in the local storage.

The button can then be shown after you query the local storage.

Kind regards,

Remco Dekkinga

Thank you!!