on 07-28-2008 3:53 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.