Skip to Content
avatar image
Former Member

Error Message

Hello

I have little problem with Error Messages (Message pool)

public void checkMandatory( java.lang.String FieldName,java.lang.String Node )

{

//@@begin checkMandatory()

IWDMessageManager messageMgr =wdThis.wdGetAPI().getComponent().getMessageManager();

IWDAttributeInfo attributeInfo = this.wdContext.getNodeInfo().getChild (Node).getAttribute(FieldName);

messageMgr.reportContextAttributeMessage(this.wdContext.nodeUnit().currentUnitElement()

,attributeInfo,IMessageAccident.DATE_NOT_FOUND,null,true);

//@@end

}

But I have problem because my context

+Unit

-UnitID

-office

-Base

and I need to conect Error message to to UnitID

please tell mehow can I solve this problem

Thank you

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 16, 2005 at 01:12 PM

    Hi,

    Refer the below link and sublink thereafter which addresses your problem ,

    http://help.sap.com/saphelp_erp2004/helpdata/en/a7/68a0cb87e4c447922a46cfa2655fb4/frameset.htm

    Rdgs,

    G

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2005 at 06:13 PM

    Hi,

    Try

    IWDAttributeInfo att = wdContext.getChildNode("Unit").getNodeInfo().getAttribute("UnitID");

    Regards,

    Vijith

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 17, 2005 at 07:27 AM

    Hi Evgeny,

    If you are following the message pool tutorial do the following changes. First make the cardinality of your Unit node 1..n. and in the code for check.. methods

    Object attributevalue =	this.wdContext.nodeUnit().currentUnitElement().getAttributeValue(fieldName);
    
    IWDAttributeInfo attributeinfo = this.wdContext.getNodeInfo().getChild("Unit").getAttribute(	fieldName); 
    

    Keep other code as in your post.

    Regards,

    Jaydeep

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I used the code what mentioned, but i am getting the following error:

      java.lang.IllegalArgumentException: No such attribute "zperfname"

      where "zperfname" is actually there under <node>.zperfname if i see in context tab.

      Do you know why i am getting the above error.

      Thanks

      Vijay