cancel
Showing results for 
Search instead for 
Did you mean: 

reportContextAttributeMessage for DropDownByIndex

former_member182374
Active Contributor
0 Kudos

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

ssageMgr.reportContextAttributeMessage(wdContext.currentMonthsOfYearElement(),
attributeInfo,IMessageAdmComp.EXP_DATE_IN_PAST,
new Object[] {},
true);

Thanks,

Omri

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182374
Active Contributor
0 Kudos

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

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

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.

regards

former_member182374
Active Contributor
0 Kudos

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

Regards,

Omri