on 10-09-2008 6:24 PM
Hi All
IU Element InputField is all over the time disabled.
What can be the reason for.
Property values like visible and enabled are checked already they are correctly.
regards
erdem sas
Hi Erdam,
Your input field can be disabled because of one of the reasons:
1. Value property is not binded to any context.
2. Value property is binded to a node with an attribute of a node whose cardinality is 0:n or 0:1 and you have not instantiated an object of this node in your code.
3. Enabled property is set to false (which is not the case as you have verified).
4. Read Only property is set to true.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
or else just try once to do this
1) create a context attribute of Binary type
2) bind the enable property of inputfield UI element to that attribute of Binary type and
3) In WDdoInit() enable the input field UI element by setting the binarycontext attribute true..
wdContext.currentContextElement.set<<attr>>(true);
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Where did you binded your UI element, is it model attribute, then change the cardinality in custom controller context to 1..n
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The model had till todayonly one Input Parameter (Sap FuBa ) but currently
it has now two Input paramters.
Before my adding of second import paramter it has also worked.
It had cardinality 0.1. And I have changed the cardinality to 0.n.
Priviously it has worked very well. The only problem
is the secondly added Import paramter has an attribute
which has to be bound with the input field.
When I bind this input field with the elements attribute
from the view context the the input field is disabled.
Here can any user type in a search creteria.
Regards
sas
Hi,
if u r using Bapi_Flight_Getlist
then u'll have to write this code.
Example:
/** Hok meothod called to initialize controller. */ public void wdDoInit()
{
//@@begin wdDoInit()
// Create a new element in the Bapi_Flight_Getlist_Input node
Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
wdContext.nodeBapi_Flight_Getlist_Input().bind(input);
// Create new elements in the Destination_From and Destination_To nodes
input.setDestination_From(new Bapisfldst());
input.setDestination_To(new Bapisfldst());
//@@end
}
Regards,
Khushboo
Hi erdem,
Please check the cardinality of the node with which your input field is bound. It should be 1..n or 1..1.
Edited by: Aishwarya Sharma on Oct 10, 2008 7:51 AM
Edited by: Aishwarya Sharma on Oct 10, 2008 7:57 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.