Radio Button as a Table cell editor
I have a table with one on the columns as a radio button.
( I have used the 'Radio Button' UI element )
The structure is as follows:
Table node (Model node 'li_allocations ')
RadioButton node (Value Node)
KeyToSelect value attribute
--SelectedKey value attribute
I have bound the 'KeyToSelect' and the 'SelectedKey' properties to the respective attributes in the structure.
I have used the following code to set the values for the 'KeyToSelect' attribute
public void supplyRadioButton(IPrivateSarniaAllocationFetchView.IRadioButtonNode node, IPrivateSarniaAllocationFetchView.ILi_AllocationsElement parentElement)
int rows = wdContext.nodeLi_Allocations().size();
IPrivateSarniaAllocationFetchView.IRadioButtonElement element = node.createRadioButtonElement();
But the following problem occurs.
1) No matter which row I select the SelectedKey attribute has KEY_0 as its value
2) Even when I click on the other columns (other than the radio button column) the radio button of that row gets selected. I want the Radio button selection to be independent of the selections I make in my other columns.
Can someone help me out?
Thanks in advance,
I suggested cardinality 1..1, please try cardinality 0..1 as well (error message could be misleading, only adding to 1..1 is forbidden)