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

Requirement

Hi All,

I have a following requirement in my webdynpro application.

i have a tax exemption dropdown field in which values are fetched from the infotype 0210.

now whenever the dropdown field have the value of 'NOT EXEMPT' it should be in dislpay mode.

and whenever the dropdown field have the values other the 'NOT EXEMPT' it should be in editable mode.

can you please let me know how can i achieve this.

ur inputs will be appreciated.

Thanks and Regards,

Santosh

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2009 at 01:55 PM

    Hi Santosh,

    First of all, bind the 'readOnly' property of the dropdown field to a node attribute (say attr1).

    Then create an action for the event 'OnSelect'. Then, in the method of that action, write a code to read the value of that dropdown field.

    If that value is 'NOT EXEMPT', set the attr1 context value as 'X' (which is bind to 'ReadOnly' property of dropdown.)

    After this, the dropdown should become Read Only.

    If the dropdown is having value other than 'NOT EXEMPT', do nothing.

    Hope this helps.

    Regards,

    Anand

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2009 at 01:55 PM

    Hi,

    Create an attribute FLAG_ACTIVE which will act as a flag for whether the drop-down box will be open or not.

    Now to the READONLY attribute of the drop down ui element bind the FLAG_ACTIVE attribute.

    In the program when ever you are fetching the values from Infotype check the particular value. If it is 'NOT EXEMPT' then set FLAG_ACTIVE = ' ' else set FLAG_ACTIVE = 'X'.

    Thanks,

    Abhishek

    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.