on 06-30-2010 8:51 PM
Hi Experts,
I have a problem when running Webdynpro as test. My input view is not editble though all of the input fields property is not read only and they are editable.
Please advise,
--Jamie.
Hi Jamie,
The input field behaviour is based on the context attribute that you have binded to the Input field.
Check the cardinlity of the node of the context attribute binded. In your case it will be definitely 0-1 or 0-n.
This means you should manually instantiate the node by creating an Element for the node.
As you are saying it as an Input field your case the cardinality of the node should be 1-1 and this makes the Filed enabled without any coding.
Regards,
Raju Bonagiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
whenever using input field please make it enabled.. and bind it correctly with the appropriate context node..
And assign the "label for" property ... I thing this will solve ur problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jamie,
WebDynpro context behavior is different at run-time. UI elements holds value in contexts. For a context node of cardinality 0..1 or 0..n the occurrence of node element at run-time is 0 i.e. there is nothing to hold the value and the UI element doesn't allow input any values or literally disabled.
Solution 1: The node with 0..1 or 0..n must be created before the UI is shown or accessing it.
wdContext.node<MyNode>().createAndAddMyNodeElement();
Solution 2: simply change the cardinality of the node to 1..1 or 1...n which will ensure the minimum occurrence of the node at run-time is always 1.
cheers,
Nikhil Bose
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How you are binding the data to those input fields?Are you binding it through value attributes in the context node?
Check the cardinality of the context node. Change the cardinality to 1..N and then check.
Best Wishes
Idhaya R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jamie,
Please check the INPUTFIELD Value binding with context attribute. Once you bind it properly, it will appear as editable.
Hope it will helps
Regards
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check if you have binded the Input fields to a Node or an attribute in the context? If you have binded to the node, Instantiate the node to make the Input fields editable.
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you instantiate the node and its attributes that are bound underneath the form UI elements?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.