cancel
Showing results for 
Search instead for 
Did you mean: 

Binding DropDownByKey in Table

Former Member
0 Kudos

Hello,

I created a value node in the context for building a table.

One of the table coloumns should be a dropdownbykey,

so I created another value node (under the value node

of the table).Besides, I created value attribues for

regular coloumns.

The hierarchy is:

value node(table) - value attribute

value attribute

value node - value attribute

For some reason, when I create the binding in the table

to the context, I can bind either the two value attributes or only the value node.

(I changed the singleton attribute of the inner value node to false but it didn't help)

Thanks.

Ruthie.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Ruthie,

You can use dropDownByIndex instead of dropDownByKey ui element. Then it will work.

Regards,

Jaydeep

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi sravan,

You should have two separated value nodes - one for the table and the other for the dropdownbykey.

In your case- it should look like:

Tab(value node) - attr1(value attribute)

- attr2(value attribute)

- dropdownbykey(value node)

- key(value attribute)

In the outline view - right click with the mouse -

and choose "Create Binding" - and with the wizard you

can bind attr1, attr2 to the table.

Then, in the properties of dropdownbykey(value node)

- choose the property "selectedKey" and from there bind

the dopdownbykey to the context.

Regards,

Ruthie.

Former Member
0 Kudos

hai ruthie if u got the project could u send me the project

regards

shravan

Former Member
0 Kudos

hi sravan,

can you list your code in a new thread.

regards,

rahul

Former Member
0 Kudos

hi saravan,

i think its not necessary for you to have a seperate node for your dropdownbykey, you can have its attribute under the value node for table itself. that will make things easy.

(note: if possible post your query as a new thread)

regards,

rahul.

Former Member
0 Kudos

hi rahul its not workking

Former Member
0 Kudos

Hi guys,

The solution is that you can bind the table with the wizard but you have to bind the node inside the table

separately with the node attribute "selectedKey".

(Two different bindings)

Thanks you all.

Ruthie.

Former Member
0 Kudos

hi Ruthie could you be more clear

im also trying for the same

my context structure is

Tab - Value node of table

attr1

attr2

under Tab value node

Dropdown Valuenode with key as value attribute

Former Member
0 Kudos

change the celleditor to dropdownbykey and try to by the table. I think you are binding the attribute to the dropdown and later binding it to the table .

If you are using the dropdown bykey you don't need the extra value node inside the table node I suppose.

Former Member
0 Kudos

Hi Ruthie,

Please do not use Templates while creating the tables.Try creating using "InsertChild" option .

Regards, Anilkumar