cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Context Binding of Input fileds - Webdynpro

Former Member
0 Kudos

Hi All,

I am using Inputfield UI element, UI element is editable only, when its binded to a value Attribute in the root context and

not Editable when bind to a value Attribute under a new value Node? is there any extra setting for that?

Thanks

-


Nagaraju

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

if you want to use a attribute under the "ValueNode" to bind Input Field

go to properties of "ValueNode" you found cardinality property make it to "1...n" or "1..1".

then your problem solves

Thanks,

RameshBabu.V

Answers (4)

Answers (4)

Former Member
0 Kudos

If we bind an InputfieldElement to the valueattribute of contextnode having cardinality 1..1 or 1..n input field will editable and if cardinality is 0..1 or 0..n then the the inputfield is not editable.

Regards

sowmya.

PradeepBondla
Active Contributor
0 Kudos

Hi,

If you want to see your input field just editable then make the value node's cardinality to 1..1. it will be editable.

If one input filed to one attribute then it will work by changing the cardinality of value node. or

If your mapping one attribute to many input fields at runtime you have to create as many input fileds you have as told by Nikil.

Just check this thread

PradeeP

nikhil_bose
Active Contributor
0 Kudos

No there is no 'settings'

This is since there is no element of type 'Node' at runtime. you can resolve it by creating and adding an element on initialization of view or where you need it.

sol:

in wdDoInit() of your view


wdContext.node<YourNode>().addElement( wdContext.create<YourNode>Element());

this code will create an element runtime thus the input field enabled.

nikhil

Former Member
0 Kudos

Hi,

This is becuse there is by default one element for the attribute inside the root context. But for the node you need to create the element. Hope it is clear.

thanks & regards,

Manoj