on 01-09-2007 3:11 PM
Hi,
i want to append one or more elements to my node in order to call a BAPI. I found the following code, but it's not to possible to use IPublic<controller>. My controller name is "DocumentPreviewApp" so i tried IPublicDocumentPreviewApp but it does n't work.
Also it's not possible to declare a new model like: GetConnectionModel model = new GetConnectionModel();
I get always the following message: ...can not be resolved or is not a type
regards,
sharam
wdContext.node<Node name>().validate();
IPublic<controller>.I<node>Element ele = wdContext.create<node>Element(new <model structure type>());
ele.set<attribute name>("<value>");
wdContext.node<node name>().addElement(ele);
wdContext.<node name>().invalidate();
hi,
use this below code
<struct> <instance> = new <struct>
IPublic<controller>.I<node>Element ele ;
<instance>.set<attibute>();
ele = wdContext.create<node>Element( <instance> );
wdContext.node<nodename>.addElement(ele);
or you can use this as well
<struct> <instance> = new <struct>
IPublic<controller>.I<node>Element ele ;
<instance>.set<attibute>();
wdContext.node<nodename>.modelobject.add<nodename>(<instance>);
regards,
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you enter
I<Node>Element
and press CTRL-SPACE, what do you get as available types?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
IPublic<controller>.I<node>Element ele = wdContext.node<node>().create<node>Element(new <model structure type>());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
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.