Delete links from the layout when the user is logged in and put their username and ar

Outsystems Server Studio 11


The application you are trying to create is on the traditional web.


How can I delete links from the home page and switch to 


Example, on the home page I have two links one to enter that redirects the login page and one to register that redirects the registration page, but after logging in.
In other words, when the user is logged in, the image should appear instead of the links to enter and register.

Does anyone know how I can do this?

Hi Diana,


What I understand from your post , you should apply IF condition in preparation of screen like below.

Check if User Loggedin-DisplayImage
Else -Display Links

Salman Ansari wrote:

Hi Diana,


What I understand from your post , you should apply IF condition in preparation of screen like below.

Check if User Loggedin-DisplayImage
Else -Display Links

My home page has no preparation, how can I create it?


Diana Sousa wrote:

Salman Ansari wrote:

Hi Diana,


What I understand from your post , you should apply IF condition in preparation of screen like below.

Check if User Loggedin-DisplayImage
Else -Display Links

My home page has no preparation, how can I create it?



Right click on screen and "Add Preparation"

Salman Ansari wrote:

Diana Sousa wrote:

Salman Ansari wrote:

Hi Diana,


What I understand from your post , you should apply IF condition in preparation of screen like below.

Check if User Loggedin-DisplayImage
Else -Display Links

My home page has no preparation, how can I create it?



Right click on screen and "Add Preparation"


Okay, this is now added an if, but how do I put the condition?
Check if User Loggedin-DisplayImage
Else -Display Links

Where do I look for the attribute you’ve signed in to?

Diana Sousa wrote:

Salman Ansari wrote:

Diana Sousa wrote:

Salman Ansari wrote:

Hi Diana,


What I understand from your post , you should apply IF condition in preparation of screen like below.

Check if User Loggedin-DisplayImage
Else -Display Links

My home page has no preparation, how can I create it?



Right click on screen and "Add Preparation"


Okay, this is now added an if, but how do I put the condition?
Check if User Loggedin-DisplayImage
Else -Display Links

Where do I look for the attribute you’ve signed in to?


Please have a look on below that will give you idea how you can apply IF.

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Traditional_Web/Web_Interfaces/Designing_Screens/If_Widget


https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Traditional_Web/Web_Logic_Tools/If


Try using the condition If(id="text",True,False) for example

OR

if(Paymentmode.label = "Invoice" OR Paymentmode.label  = "Cheque", "String1", "String2")

Hi Diana.

Check the logic on Login page.


If I have a user, go to page. If I don't, proceed to login.


In your case, I would do "If user is not logged, send to Login".

And on screen "If user is logged in, show image. Otherwise, show links."


,

Hi Daina,

Please check if still not able to do then please share oml example fro your screen.

Salman Ansari wrote:

Hi Daina,

Please check if still not able to do then please share oml example fro your screen.

I still don't understand how I can solve this problem.
My main content is not the same as the example of nuno reis.





Solution

Diana Sousa wrote:

Salman Ansari wrote:

Hi Daina,

Please check if still not able to do then please share oml example fro your screen.

I still don't understand how I can solve this problem.
My main content is not the same as the example of nuno reis.






I have made some changes please check attached oml

Solution

Salman Ansari wrote:

Diana Sousa wrote:

Salman Ansari wrote:

Hi Daina,

Please check if still not able to do then please share oml example fro your screen.

I still don't understand how I can solve this problem.
My main content is not the same as the example of nuno reis.






I have made some changes please check attached oml


This is working, so there is no need to put anything in the preparation?

Diana Sousa wrote:

Salman Ansari wrote:

Diana Sousa wrote:

Salman Ansari wrote:

Hi Daina,

Please check if still not able to do then please share oml example fro your screen.

I still don't understand how I can solve this problem.
My main content is not the same as the example of nuno reis.






I have made some changes please check attached oml


This is working, so there is no need to put anything in the preparation?


Good to know that you got the solution