on 05-03-2006 9:51 PM
I design table input/output interface with adding / deleting entry function. Table data will be saved in AbstractList by BAPI.
In Controller implementation tab, I created "input" under WD_init()
Bapi_Entrysheet_Create_Input <b>input</b> = new Bapi_Entrysheet_Create_Input();
wdContext.nodeBapi_Entrysheet_Create_Input().bind(<b>input</b>);
<b>input</b>.setEntrysheetheader(new Bapiessrc());
In view action function, I need "input" as.
input.addEntrysheetservices(new Bapiesllc());
My question is how I can let view class know "input".
Thanks.
Message was edited by: li dong
Message was edited by: li dong
Hi li dong,
You need to establish context mapping between view and controller. Open view, select "Properties" tab, In "Required Controllers" section press "Add" and add your controller. Create model node in view (Bapi_Entrysheet_Create_Input) and click "Edit context mapping" in context menu for node. Establish context mapping. Than you can call
wdContext.nodeBapi_Entrysheet_Create_Input().modeObject().addEntrysheetservices(new Bapiesllc());
from view.
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maksim,
Thanks for your reply. I reward you 2 points.
Your program only works in Controller and will not work in View.
I solve my case by createElement and addElement function.
Dong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.