cancel
Showing results for 
Search instead for 
Did you mean: 

IU Element

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hello Murtuza,

I couldn't find your email adress. Can you pls send it to me:

gasiko(at sign).web.de

Regards

erdem

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Are u using Value node for Input field in context??

If yes then u'll have to initilaize Value node.

Regards,

Khushboo

Former Member
0 Kudos

no it is a Model Node.

Is a generally a rule for initializing of value nodes. If so

can you give me code sample

Reagrds

sas

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi erdem,

go through this thread:[;

it will hlp u

Regards

Khushboo