Skip to Content

reportContextAttributeMessage for DropDownByIndex

Hi All,

I'm using a DropDownByIndex UI element. The element's text property is bound to a value attribute that is called 'MonthName' that is under value node that is called 'MonthsOfYear'.

When I display error using the 'reportContextAttributeMessage' I can see the error but there is no red border around the UI element (also, I don't get exception).

If I use DropDownByKey, there is no problem.

As a workaround I changed the DropDownByIndex to DropDownByKey and it works but is it a bug?

The code I'm using:

IWDAttributeInfo attributeInfo = wdContext.nodeMonthsOfYear().getNodeInfo().getAttribute(IPrivate<view name>.IMonthsOfYearElement.MONTH_NAME);

new Object[] {},



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 16, 2007 at 11:14 AM


    really Mysterious !!

    I am not sure bt I think it is because,

    dropdownbyindex works on the data from backend on which user of WD application should nt have control, error messages are something which deals with user mistakes occured because of users.


    Add comment
    10|10000 characters needed characters exceeded

    • Hi Abhijeet,

      Thanks for the answer however the two value attributes that under the value node are simple arrays that are initialized in the wdDoInit method (nothing to do with backend).



  • Aug 26, 2007 at 05:31 AM

    According to SAP it's not possible.

    This is what I got from the OSS:

    [quote]The behaviour reported by you is well known for us. But i am sorry to

    say that due to some constraints, we are not able to implement it.

    There are so much implications that it's same in the NY release also.[/quote]

    So DropDownByKey is the answer...

    Add comment
    10|10000 characters needed characters exceeded