37
Views
11
Comments
Solved
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?

2021-09-10 14-03-53
Salman Ansari
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

SiiTPraticoCpia.oml
2021-09-10 14-03-53
Salman Ansari

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

2020-04-29 17-31-24
Diana Sousa

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?


2021-09-10 14-03-53
Salman Ansari

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"

2020-04-29 17-31-24
Diana Sousa

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?

2021-09-10 14-03-53
Salman Ansari

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")

2016-04-22 00-29-45
Nuno Reis
 
MVP

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."


,

2021-09-10 14-03-53
Salman Ansari

Hi Daina,

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

2020-04-29 17-31-24
Diana Sousa

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.





SiiTPraticoCpia.oml
2021-09-10 14-03-53
Salman Ansari
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

SiiTPraticoCpia.oml
2020-04-29 17-31-24
Diana Sousa

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?

2021-09-10 14-03-53
Salman Ansari

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


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.