on 12-12-2007 2:41 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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??
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.