on 11-07-2005 12:20 PM
Hello all,
We are checking mandatory fields in our WebDynpro application. When a mandatory IWDInputField has no input we use;
IWDMessageManager.reportContextAttributeMessage
to display a message to the user. This works fine.
However, when the mandatory field is an IWDDropDownByKey we do not get the error message displayed to the user.
We are using SP13. Is this a known problem? How can we solve this?
Thanks for your time,
Patrick.
Hi Patrick,
We use here IWDDropDownByKey and reportContextAttributeMessage() without any problems.
But we use SP11.
Please see the following code - it might help you.
****
messageMgr = wdControllerAPI.getComponent().getMessageManager();
String value = wdContext.nodeFacultyKeyNode().currentFacultyKeyNodeElement().getField();
IWDAttributeInfo attributeInfo = wdContext.nodeFacultyKeyNode().getNodeInfo().getAttribute("field");
if (value.trim().equals("")){
messageMgr.reportContextAttributeMessage(wdContext.nodeFacultyKeyNode().currentFacultyKeyNodeElement(),
attributeInfo,
IMessageOpenUserApp.MISSING_INPUT,
new Object[] { fieldText },
true);
}
Regards,
Ruthie.
Message was edited by: Armin Reichert (added code tag)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I see that that's pretty much the same code as we were using already.
The message still doesn't appear alongside the IWDDropDownByKey UI Element. The exact same code shows the error message for all of our InputFields in the view but simply doesn't display the message for the DropDown. Perhaps it's related to SP13...... it's strange indeed.
We're upgrading to SP14 here tomorrow anyhoos, so I'll check it again next week when I'm here.
Thanks,
Patrick.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.