cancel
Showing results for 
Search instead for 
Did you mean: 

disabled

Former Member
0 Kudos

Hi Friends!

An input Field is disabled when the application runs in the browser.

Although its property enabled has been set true, visibel has been set to visible

and the value property contains an attribute which has been binded with

a Model Node Attribute from the custom controler context.

What can be the reason for this circumstance.

I am not be able to insert a value or type in a search criteria

as it is disabled.

Please help I need urgent help!

Regards

sas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Just check what is the cardinality of the node for the attribute binded to the input field. It should be 1:1 or 1:n and if its 0:n or 0:1 then you need to instantiate an object of that node in wdDoInit()

Regards,

Murtuza

Former Member
0 Kudos

Hi the problem is still existing.

I have checked it out it has the cardinality 0..1. (Model Node Cardinality).

The context element hasn't a cardinality.

I have added this code but as mentioned the problem is not solved yet.

Ial_Query_Input input2 = new Ial_Query_Input();
		wdContext.node_Ial_Query_Input().bind(input2);
	
	input2.setI_I_Selcrit(new Cciht_Ipeva());

Before doing this modification I have edited the modelbinding (within Customcontroller)

and have bound some additional context elements and the same I did also

within the View Context (edited the Context Mapping and have bound also some additional context elements ).

Later I have bound one of this elements with above mentioned Input Field.

Input Field is still disabled. If I bind this Input Field with another element

which was not added by me (an existing one)

the input field is enabled.

Please help !

Reagrds

sas

Former Member
0 Kudos

hi!

make the cardinality as 1..1 and rebuild your project and also if necessary repair your project.

thanks

vishal

Former Member
0 Kudos

which cardinality ? CustomController or View ??

rgds

sas

Former Member
0 Kudos

custom controller

Former Member
0 Kudos

hi!

also make sure your mapping is correct and you have taken value node.

thanks

vishal

Former Member
0 Kudos

Hi I have One Main Model Node and have two Child Nodes below wiith their own

elemets in it. The Child Elements dont allow to change the cardinality.

All what is possible to change is the "selection" from 0.1 to 1.1. ist that OK ?

The cradinality of the main Model Node I cant change it because

the existing on ewhich is not made by me

has 0.1. and it is working well. But second one seems to be like

corrupt.

Regards

sas

Former Member
0 Kudos

Hi,

Just create an instance of the main node as you did before and bind it to your context

wdContext.node<mainnode>)().bind(<element>);

Regards,

Murtuza

Former Member
0 Kudos

hi!

try using value node bcoz i think u r mapping modal node with non model node , which is not possible.

rgds

vishal

Edited by: Vishal Anand on Oct 8, 2008 5:53 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

hi!

please check the cardinality .

thanks

vishal