cancel
Showing results for 
Search instead for 
Did you mean: 

Link to Action

Former Member
0 Kudos

Hi,

I've two LinkToAction, If I push one, the other links disappear.

What can i do to show two links and when I'll push in one, the other link doesn't disappear?.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can you post your code for the on click event of the link to action? This should not happen normally.

Former Member
0 Kudos

Hi,

Yes, I've filled the code.

Former Member
0 Kudos

No I meant can you post the code here so that we get a better idea!:)

Former Member
0 Kudos

Hi,

In my code, when you push one link, show a table, if you push another links, show a calendar, but when you push any link, the other links disappear.

Former Member
0 Kudos

My guess is, you have bound the "visible" property of the table and calendar to two different context variables. On click on first link, you set variable 1 as true. Click on second link makes variable 2 as true. So the visibility is enabled and disabled.

Just check that the visible property of the link 2 is not bound to the same variable 2. It should be "Visible" only, not bound to a context attribute. Then it will be always visible.

Regards,

Nithya

Former Member
0 Kudos

Hi,

Yes, I bound the visible property of table and calendar with a context attribute, because I want to push link 1 show the calendar and hid the table and when I push the link 2, show the table and hide the calendar, but when i push a link (1 o 2), the other link disappear. If I push the link 1, the calendar show and the link 2 disappear, but I don't want that the link 2 disappear.

mohammed_anzys
Contributor
0 Kudos

Hi

For this to attain, you need to create two attributes in the context , CALVISIBLE and TBLVISIBLE. Now when you click on link1 ( table ) you should CALVISIBLE true/false according to your requirement.

Thanks

Anzy

Former Member
0 Kudos

What is the visible property of your link 2 bound to? Is it bound to the context attribute that the calendar is bound to? Then it is wrong. I think you have put the link and calendar in a container (group etc) and you are setting the visible property at the container level itself. Then also it will not work.

The visible property for only the calendar and table should be bound to the context attribute. For the links, it should always be 'Visible'. Not bound to any attribute. Check this and it will work.

Regards

Nithya

Former Member
0 Kudos

Hi,

I've solved the problem: When I push a link, in the action of the event of link, I give to the context attribute bound text property link2, another value.

Thansk's.

Answers (0)