cancel
Showing results for 
Search instead for 
Did you mean: 

my Input field UI elements are disabled at runtime??

Former Member
0 Kudos

HI all.

I have mapped a Context Model node to a templete form.

But the ui elements - .Input field are disabled at runtime

i cannot enter data in them

What can be the problem. is there a cardinality issue?

Please help

Points assure for help

Accepted Solutions (0)

Answers (6)

Answers (6)

monalisa_biswal
Contributor
0 Kudos

You need to bind instance of model class to the model node .

wdContext.node<modelnode>().bind(new <ModelNode's model class>());

Otherwise model node will not have any element.

If the model node is a subnode with cardinality 0..1

set instance of child model node class to the parent model node's instance.

<Parent ModelNode's model class> <var>= new <Parent ModelNode's model class>()

wdContext.node<parent modelnode>().bind(<var>);

<var>.set<Child node>(new <Child ModelNode's model class>());

If its cardinality is 0..n use

<var>.add<Child node>(new < Child ModelNode's model class>());

ashutosh_rastogi
Active Contributor
0 Kudos

This also happens when there is no real instance (element of Node) in the context at runtime. So do ensure you have some element by initializing it in wdInit() method.

Hope this Helps,

Ashutosh

Former Member
0 Kudos

Hi,

There are different options.

If you are getting th data from the back end or u created the model node in the front end side?

if u gettting model node from r3 side check the binding option once.

if u declared front side node cardinality to be chage as 1..n

Or check for the read only option also one of the cause.

Check all possibilities.

Thanks,

Lohi.

Former Member
0 Kudos

HI,

Check wheather the read Only property of input fields are getting true at runtime or not.

Roshan

Former Member
0 Kudos

hi,

check out this threads

Regards,

Gopi

Former Member
0 Kudos

Make the cardinality as 1..1 or 1..n

Or create the Nodeelements through the code.

Regards, Anilkumar