cancel
Showing results for 
Search instead for 
Did you mean: 

Input Fields appear disabled

Former Member
0 Kudos

Hi,

I have created two DCs - one for model and the other one for displaying the data after model execution.

I have done the required steps for Inter DC communication.

I want to execute the bapi BAPI_FLIGHT_GETLIST with given input fields CityFrom, CityTo, DateFrom, DateTo.

CityFrom bound to model node Destination_From->city

CityTo bound to model node Destination_To->city

Other two are bound to value attributes of type date

The problem is that CityTo and CityFrom input fields appear disabled.

I have initialized the nodes as follows in wdDoInit() of the DisplayCompView

bapiInput = new Bapi_Flight_Getlist_Input();
wdContext.nodeBapi_Flight_Getlist_Input().bind(bapiInput);
bapiInput.setDestination_From(new Bapisfldst());
bapiInput.setDestination_To(new Bapisfldst());
bapiInput.addDate_Range(new Bapisfldra());

Please go through the code.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member214651
Active Contributor
0 Kudos

Hi Radhika,

If you bind any simple UI element to a Node attribute, you have to create an instance of the node Binded. Try creating 2 context attributes and bind it to the UI elements.

Set the BAPI input parameters taking from the context attribute.

bapiInput = new Bapi_Flight_Getlist_Input();

wdContext.nodeBapi_Flight_Getlist_Input().bind(bapiInput);

bapiInput.setDestination_From(wdContext.currentContextElement().get<attributeName>);

bapiInput.setDestination_To(wdContext.currentContextElement().get<attributeName>);

bapiInput.addDate_Range(new Bapisfldra());

Regards,

Poojith MV

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Check the cardinality of the node bound to the input fields. It should be 1..1

- Saravanan K

Former Member
0 Kudos

Hi

The cardinality of model nodes Destination_From and Destination_To is 0:1

I cannot be changed since they are model nodes

Former Member
0 Kudos

Hi,

Check the cardinality of your value node which you have binded with Input fields.

Change the cardinality to 1..1.

Regards

Trilochan