on 11-03-2008 12:16 PM
People.. please... I need to create new elements in the node "T_Saida" but I don´t know how to do, because it is inside one tree.
Can anybody tell me how can I initialize each node ir order to create new elements at T_Saida ?
The Context:
Zctftv003_Input (node)
OutputSolicitacao (node)
T_Saida (node)
Atribute1
Atribute2
Atribute3
Atribute...
It worked, thanks for the very helpful answer, the code is this:
IPrivateTransporteAlojamentoView.IZctftv003_InputElement elementZ = wdContext.createZctftv003_InputElement( new Zctftv003_Input() );
elementZ.setV_Pernr("3");
elementZ.setV_Reinr("0");
elementZ.setV_Botao("OF");
wdContext.nodeZctftv003_Input().addElement(elementZ);
IPrivateTransporteAlojamentoView.IOutputSolicitacaoElement elementSol = wdContext.createOutputSolicitacaoElement( new Zctftv003_Output() );
wdContext.nodeOutputSolicitacao().bind(elementSol);
IPrivateTransporteAlojamentoView.IT_SaidaElement elementT = wdContext.createT_SaidaElement( new Zctts001() );
wdContext.nodeT_Saida().addElement(elementT);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check the link that I have provided in the previous posting.
I hope it will help you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what about the context tree ?
this is the tree:
Zctftv003_Input (model node)
-
-
OutputSolicitacao (model node)
-
-
T_Saida (model node)
-
-
Attribute1
-
-
Attribute2
-
-
Attribute3
-
-
Attribute...
don´t I have to initialize each node ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can create a new element of the node by using following code:
IPrivate<View Name>.I<Node Name>Element element = wdContext.create<Node Name>Element();
element.set<Attribute Name>(<Attribute Value>);
wdContext.node<Node Name>().addElement(element);
You can also check the following link for element creation in Tree UI element:
http://help.sap.com/saphelp_nw70/helpdata/EN/c2/abfceffbacd24185ec7af8a3a2e76a/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.