cancel
Showing results for 
Search instead for 
Did you mean: 

Want Help on Basic Table UIElement OnLeadSelection.

Former Member
0 Kudos

HI Experts,

In my application There is one table with data on selecting a particular

Row in a table and clicking on a Add button i should make that row as editable.

Means on clicking on the button i should edit the particular table row fields.

Can any body please help me on this issue.

Thanks and Regards,

Shashikiran.B

Edited by: shashi kiran on Apr 8, 2008 11:35 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Shashi,

You can implement it using the following steps:

1. All the columns that have to be made editable, will have InputField as the Cell Editor.

2. Add a boolean type of context to your node.

3. Assign the readOnly Property of all the CellEditors to this context.

4. By default, while adding data to the table set this Contebxt to TRUE.

5. On click of button, you can do as:

wdContext.current<Your_Node>Element.set<Boolean_Context>(false);

This will enable all the InputFields in that row.

Hope it helps.

Regards,

Alka.

Former Member
0 Kudos

Hi Shashi,

One of the solutions may be as follows:

Make TableCellEditor of that columns you want to edit as InputField. Map the text property of this InputField to the attribute you want to edit. This way you don't have to write any action for OnLeadSelection. But the disadvantage is all the rows will become editable for the column/fields you want to make editable.

Regards,

Gopal

Former Member
0 Kudos

Why do you need the "Add" button? To make the editors in the selected row editable,

- create a calculated attribute "readOnly" under the data source

- bind the "readOnly" property of the column editors to that attribute

- return "false" for the attribute of the lead-selected row, "true" for all other rows

- assign an empty action to the "onLeadSelect" event

Armin