on 03-23-2006 4:30 PM
Hi,
every time I try to use the <i>reportInvalidContextAttributeMessage</i> method in the ErrorBehavior project, like it is suggested in tutorial 3, NetWeaver Developer Studio informs me that this method is undefined for the type <i>IWDMessageManager</i>.
I did the necessary imports like adviced in the tutorial.
Can anyone please help me in finding a solution?
Regards,
Stefan
Hi Maksim Rashchynski,
unfortunately your suggest does not work well for me.Maybe I do not understand what you want to tell me.
But I can not find a suitable <i>node<NAME>()</i> like you proposed. My approach over a cast like
<i>IWDAttributeInfo attributeInfo = (IWDAttributeInfo) this.wdContext.currentContextElement().getAttributeValue(fieldName);</i>
failed with an <i>java.lang.ClassCastException</i> during runtime. NetWeaver did not criticize it before.
Regards, Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi together,
thank you for your answers especially the posted link helped somehow.
I now know that I must use <i>reportContextAttributeMessage</i> instead of the method used in the tutorial.
But I still have a problem with that solution. How can I cast my variable <i>fieldName</i> from <i>java.lang.String</i> to <i>com.sap.tc.webdynpro.progmodel.api.IWDAttributeInfo</i> which is required for the new method I have to use.
Regards,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
Following are the signatures of the method mentioned by you.
void com.sap.tc.webdynpro.progmodel.api.IWDMessageManager.
reportInvalidContextAttributeException(IWDAttributePointer attribute, WDNonFatalException ex)
Report an exception as error message that is associated with an invalid context attribute value.
Parameters:
attribute is the invalid attribute
ex is the exception raised by some validation routine
void com.sap.tc.webdynpro.progmodel.api.IWDMessageManager.
reportInvalidContextAttributeException(IWDAttributePointer attribute, WDNonFatalException ex)
Report an exception as error message that is associated with an invalid context attribute value.
Parameters:
attribute is the invalid attribute
ex is the exception raised by some validation routine
Following methods are or will be depricated
void com.sap.tc.webdynpro.progmodel.api.IWDMessageManager.
reportInvalidContextAttributeException(IWDAttributePointer attribute, WDNonFatalException ex)
Report an exception as error message that is associated with an invalid context attribute value.
Parameters:
attribute is the invalid attribute
ex is the exception raised by some validation routine
void com.sap.tc.webdynpro.progmodel.api.IWDMessageManager.
reportInvalidContextAttributeException(IWDAttributePointer attribute, WDNonFatalException ex)
Report an exception as error message that is associated with an invalid context attribute value.
Parameters:
attribute is the invalid attribute
ex is the exception raised by some validation routine
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
Please check the call of reportInvalidContextAttributeMessage.
I think the tutorial might be using a deprecated version of the function.
Check the following link to find if the function is being used correctly in your tutorial i.e, with new signature.
Regards,
Shubham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.