cancel
Showing results for 
Search instead for 
Did you mean: 

Table Entry Insert - Java Programming Question

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

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