on 02-05-2007 8:57 AM
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
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>());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Check wheather the read Only property of input fields are getting true at runtime or not.
Roshan
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.
Make the cardinality as 1..1 or 1..n
Or create the Nodeelements through the code.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
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.