on 07-04-2006 1:38 PM
Hi all,
I created a model and mapped a node from model to component controller and then from component controller to view context. I am directly binding the the node attributes of the model to the inputfield. But they remain disabled. How to instantiate the model nodes?
The model is Bapi_po_create. The node is PO_Header.
Any help ll be appreciated ;>)
Regards
Rakesh.
Hi,
Try:
Bapi_Po_Create1_Input bapiPoCreateInput =
new Bapi_Po_Create1_Input();
wdContext.nodeBapi_Po_Create1_Input().bind(bapiPoCreateInput);
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rakesh,
You are right. The initialization should be like:
Bapi_Po_Create1_Input bapiPoCreateInput = new Bapi_Po_Create1_Input();
Bapimepoheader poheader = new Bapimepoheader();
//add values to poheader
//...
bapiPoCreateInput.setPoheader(poheader);
Bapimepoheaderx poheaderx = new Bapimepoheaderx();
bapiPoCreateInput.setPoheaderx(poheaderx);
//etc....Do this for all structures that are needed.
wdContext.node<BAPI input>.bind(bapiPoCreateInput);
//execute
Regards,
Satyajit.
Message was edited by: Satyajit Chakraborty
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.