on 08-16-2016 5:39 AM
Hi experts,
How can I raise message from sub node ?
raise MSG_OBJ.Create("E","XXXXXXXXXXXX"); it seem like only work at root node.
Best regards,
Krit R.
Hi,
You need to declare the message at the sub node to use them in subnode actions/events like as follow:
businessobject ZLang {
element ID : ID;
node ThisProduct raises msg{
element ProductID: ProductInternalID;
message msg text "This is test Msg";
}
}
Thanks
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello all,
You can declare messages where ever you want in the (X)BO file.
It is even possible to declare them in other (X)BOs. Of course you need to activate that (X)BO before you can use the messages somewhere else.
The important topic for ABSL is the "raises" after the node name which list all messages the ABSLs for this node are allowed to raise.
HTH,
Horst
Hi Krit,
If you declares messages in a node, you can raise them in the node's events (AfterModify, OnSave).
Note: Elements, Messages, Action, all are instance-based.
Best Regards,
Fred
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.