cancel
Showing results for 
Search instead for 
Did you mean: 

DropDown as one column in table

Former Member
0 Kudos

Hi All,

I have a DropDown with 2 values(Approved and Rejected) as one column in table.

For each row I can select value in the dropdown (either approved or Rejected)

The problem I'm facing is that when I select "Approved" in one row all the dropdowns in that column take up the value "Approved". and same happens when I select the value "Rejected".

Context: My table is bound to a node "RequestforApproval".

dropdown is bound to value attribute "RequestforApproval.status"

Please suggest how I can overcome this problem.

Thanks

Neeraja

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If my understanding is correct

Your context structure is as follows

RequestforApproval

Status

How many elements do you have for the node RequestforApproval?

If this is one; you have to create one per row.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi AyyapaRaj,

I have a total of 9 Value attributes(elements) in the Node RequestforApproval(all 8 are read-only text fields). one of the elements is status.

my dropdown in the table is bound to "status".

Thanks

Neeraja

Former Member
0 Kudos

Hi,

What is the cardinality of this nodes? and just answer what armin had asked you...

Regards

Ayyapparaj

Former Member
0 Kudos

Armin,

RequestforApproval is one node and it has 9 elements of which one is "status".(status is the value attribute for the drop down in the table).

There is no other node within the Requestforapproval node.

RequestforApproval - Cardinality -0..n, Singleton

Thanks

Neeraja

Former Member
0 Kudos

I don't understand. My question was: is the context node "RequestforApproval" on root-level or contained inside another node? If it is contained, is it a singleton or non-singleton child node.

And what does that mean: "it has 9 elements of which one is "status""? Does the node has 9 attributes or does it contain at runtime 9 node elements?

Armin

Former Member
0 Kudos

Armin,

Requestforapproval is at root level. it is not contained within a node.

Requestforapproval has 9 attributes- Not at runtime.

Former Member
0 Kudos

Hi,

At runtime how many elements?

Regards

Ayyapparaj

Former Member
0 Kudos

Ok. And the context attribute "Status" is contained inside that node?

Armin

Former Member
0 Kudos

none at runtime.

Former Member
0 Kudos

Armin.

Yes. status is inside the root node RequestforApproval.

Former Member
0 Kudos

That's strange.

The following should work:

Context:


RequestforApproval (node, cardinality 0:n)
-- status (attribute, type = "Status")

where "Status" is a local dictionary type with the two enumeration values.

Data binding:


TableColumn1.TableCellEditor = DropDownByKey1
DropDownByKey1.selectedKey = RequestforApproval/@status

Armin

Former Member
0 Kudos

Armin -

I'll try your way.

Thanks

Neeraja

Former Member
0 Kudos

Armin it Works!!

Thanks!

Neeraja

Answers (1)

Answers (1)

Former Member
0 Kudos

Please give more information. Is the context node "RequestforApproval" on root-level or a child of another node. If it is a child of another node, is it a non-singleton child?

Armin