on 08-16-2005 1:59 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try
IWDAttributeInfo att = wdContext.getChildNode("Unit").getNodeInfo().getAttribute("UnitID");
Regards,
Vijith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.