cancel
Showing results for 
Search instead for 
Did you mean: 

Inputfield is getting disabled for input

Former Member
0 Kudos

Hi,

I have a strange problem, input field is getting disbaled for input if i am assigning it to a value attribute under value node, but if i am assigning it to a independent value attribute it is getting enabled for input..In properties everything is default.Please let me know if anyone has clues for this.

Regards,

Akash

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Akash,

When u bind a value attribute under a value node which has a cardinality of 0-n or 0-1 to the input field u should first create a node element and bind it to the node .Check the below code.

iprivate<<ViewName>>.I<<Node>> Element nodeEl = wdcontext.create<<Node>>Element;

wdContext.node<ValueNode>.addElement(nodeEl);

Or just make the value node cardinality 1-1.

For more details about cardinality check the below link.

http://help.sap.com/saphelp_nw04/helpdata/en/21/82a9058fa8de46b1ba7522289345b2/frameset.htm

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Akash,

You need to place this two lines code (In the above reply) in the wdDoInit() method.

First statement will create an element of contextode type and second line will add that element to the actual node.

Regards, Anil

Former Member
0 Kudos

This happens if the input field is bound to a node that does not have any node elements (yet).

Armin

Former Member
0 Kudos

Hi,

try out the following code.

let the node be abcnode

attribute be asdf of type string

then

try

wdcontext.currentabcnodeelement.setasdf(new String());

Regards

Noufal

Former Member
0 Kudos

Sorry, but two mistakes in one line of code...

Armin