cancel
Showing results for 
Search instead for 
Did you mean: 

Table Radio buttons

Former Member
0 Kudos

Hello all

Please try to help once again

The problem is simple, I have a table which filled with data from the R3 system, now I need to put radio buttons for selection instead of selecting the standard rows.

I tried to post here couple of times and never got an answer that helped me, please tell me exactly what to do like what parameters the table should get and the radio buttons itself etc.

Thanks a lot for your time and help

Oren

Accepted Solutions (1)

Accepted Solutions (1)

former_member751941
Active Contributor
0 Kudos

Hi Oren,

Follow the steps.

Assuming the node structure bind in the table is like.

Customer (Value Node/Model Node)

|----custNo(Attribute)

|---- custName.(Attribute)

Step1: Take a Value Attribute (say “selectRadio”) of Type string under view context.

Step2: Go to the View Layout. From outline Right Click on the <b> Table_0 [Table-Child].</b>

Step3: Select <b>Insert GroupedColumn.</b>A wizard will come select Type <b>TableColumn</b>.Click on Finish.

Step4 : Right Click on <b>TableColumn[TableColumn-GroupedColumn]</b>.

Setp5 : Select <b>Insert TableCellEditor</b>.Awizard will come Select Type

<b>RadioButton.</b> Click on Finish. You can move the position of Radio button also by right click on <b>TableColumn[TableColumn-GroupedColumn]</b> and choosing Move up /Move down .

Setp6: Select <b>RadioButton[RadioButton-TableCellEditor]</b>. In Properties

1> Bind <b>selectRadio</b> attribute in the value of <b>selectedKey.</b> property.

2> Bind <b>custNo</b> attribute under Customer Node in the value of <b>keyToSelect.</b> property.

View Layout will look like.

custNo custName

RadioButton| Customer.custNo | Customer.custName

RadioButton| Customer.custNo | Customer.custName

Step 7 : Save All Meta Data. Build and Deploy.If data exists in the table you will be able to see the radiobutton after deploying.

Regards,

Mithu

Former Member
0 Kudos

Hey Dennis

Thanks for the answer

Another questions is: For now I have a situation that if you pick a row on the table it sets the focus on the input field in the row, but when i pick the row with the radio button it wont set the focus on the input field, so my question is why??? an how can I set it as it should be??

former_member751941
Active Contributor
0 Kudos

Hi Oren,

Select "rowSelectable" property value to "false" and "selectionMode" Property value to "none"

Regards,

Mithu

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

why do you need radio buttons?

I have done it once with checkboxes.

Do you want to have just a single selection?

I just created a attribute of my table node with type boolean and bound that attribute to

the checked attribute of the checkbox.

The problem you could also have that you are not allowed to add additional attributes to

models. That means that you should first copy the model data into a valuenode and adding there the boolean attribute.

Regards,

Dennis

Former Member
0 Kudos

Dennis thanks for the replay

Well actually I do need the radio button , do you know the solution for that???

Thankx