I have created couple of input fields on a view. When I execute the application, these fields are not input enabled on the browser. Do I have to do something to make them input enabled?? I think I have set the right properties(?).
These are Elementproperties of InputField:
enabled = true
id = SalesOrgInput
length = <>
passwordfield = false
size = standard
state = required (I have tried normal too)
tooltip = <>
value = InputValues.SalesOrg (from the view's context)
visible = visible
Hi,
I have had this problem before.
The solution i found is you have to do the proper binding.
For example if you have a model based on an adapted RFC with the name zz_xyz and a context node abc which is binded to this model you have to do the following in the DoInit of the controller:
Zz_xyz_Input whatever = new Zz_xyz_Input();
wdContext.nodeabc().bind(whatever);
Make sure that in your view you do the proper context binding.
maybe this will help
Bertil
Thanks for the reply(s).
I think I have done the binding. Here is my Controller code. It follows the same code Bertil suggested. Am I missing something here?
public void wdDoInit()
{
//@@begin wdDoInit()
bapiInput = new Z_Sd_Customer_Getdata_200_Input();
wdContext.nodeZ_Sd_Customer_Getdata_200_Input().bind(bapiInput);
bapiInput.setIn_Sales_Org(new String());
bapiInput.setIn_Distr_Channel(new String());
bapiInput.setIn_Division(new String());
//@@end
}
Add a comment