on 06-10-2004 4:30 PM
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
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
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are two nodes in the views context.
The first node Z_Sd_Customer_Get_Data_200_Input is a model node Context-Mapped to the same named model node in the component controller.
The second node InputValues is a value node with value attributes like SalesOrg, Division etc. The InputField SalesOrgInput value (in properties) is set to InputValues.SalesOrg. I do not have this mapped to any model node attribute.
What do I have to do to input enable an InputField on the view without having to map it to a Model node?
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
the model node the ui elements are bound to is empty. Please search this forum for "readonly inputfield" for possible solutions.
Hope that helps.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.