Skip to Content
author's profile photo Former Member
Former Member

setting "enabled" property of a UI element

Hi,

I have two UI elements in my WebDynpro application. The first one is a HierarchicalMonthView and the second one is a linkToUrl element.

The link toUrl is to be enabled only if onMoreSelect event of the HierarchicalMonthView element is triggered.

One of the ways of achieving this is to create a context attribute say showLink and bind it to the Url element. Now I would set this attribute to "true" in onMoreSelect event and set to "false" in all other events of HierarchicalMonthView .

Is there any other optimal way of doing this? I wanted to avoid repetitive setting of attribute to "false" in all other events. Is there any method available to developers which is called before the application event handlers for every round trip. I was thinking of setting the attribute showLink property to "false" in this method and then setting the showLink to "true" only in onMoreSelect event.

Please correct if my thinking is flawed or other ways exist of achieving the desired result.

Thanks & Regards,

Ashish

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2008 at 10:26 PM

    Can you explain the use case? Seems like this is kind of a "mode", maybe a modal window could solve this?

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2008 at 06:00 AM

    Hi Ashish,

    If your are using LinkTOUrl UI element in NWDS7 then we donu2019t have any method like onMoreSelect and OnMouseOver.

    The best way to do this to bind the context attribute as you explain in your question, Becouse of we donu2019t session kind of thing where you can set and get attribute value as per your requirement

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.