cancel
Showing results for 
Search instead for 
Did you mean: 

Table Cell Editor

Former Member
0 Kudos

Hi,

I am trying the following scenario, please let me know if this possible or not..

In a table for several columns, i want buttons coming....

But for some rows that button should not be there.

For instance:

Row1 - Button1 - Button2

Rows2 - Button3 - BlankCell (Invisible button may be)

Is this scenario possible, can we somehow set the Invisible property at cell level?

Regards,

Devashish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In versions of 04s , there is a feature called cell variant. Using this it is possible.

In lower versions,

1. Create a visibility attribute inside the node of the table

2. map the table cell editor to visibility prop to this attribute..

3. Set as needed.

Hope this helps.

Regards

Bharathwaj

Former Member
0 Kudos

But wont this visibility attribute tagged to the entire column..

I tried the foll way:

1. I created a table

2. Added a Column

3. Added Cell Editor of type Button

4. if i set the visibilty attribute of this editor as WDVisibilty.NONE, no buttons appear..

While what i want is 1 cell of this column becomes invisible not the entire column....

Former Member
0 Kudos

Add a <b>non-singleton</b> value node with the visibility attribute to the data source node of the table. Set cardinality = 1:1, selection = 1:1.

The non-singleton setting gives you a separate node for each table row.

Armin

Former Member
0 Kudos

Hi Armin,

Currently, all my attributes reside in the Data Source Node.

Now do i need to move all these attributes as well to the Non singleton node if this new node represents a "node for a row"?

I am sorry but the functioning of this is not very clear.

Could you please throw some more light on this?

Regards,

Devashish.

former_member182294
Active Contributor
0 Kudos

Hi Devashis,

Even you can create Visibility attribute with in the Data Source Node which you mapped to the Table. So for each row of the table one instance of Visibility attribute exists, with that you can change the functionality as you wish.

Regards

Abhilash

Former Member
0 Kudos

Thanks Abhilash for your inputs...

I understand what you have mentioned... Problem is i want to play with cells rather than entire rows...

If i have Visibility attr tagged for every row, i can make the rows visible/invisible, but i want to make certain Elements within the cells visible/invisible...

Hope i am able to convey the right message...

Regards,

Dev.

former_member182294
Active Contributor
0 Kudos

Hi Devashish,

Yes I agree with you. But my thought was for individual cell editor you can assign the Visibility property. In your case you have two columns..

DataSourceNode

- attrib1 (for value property column1)

- attrib2 (for value property column2)

- colVisible1 (for WDVisibility property column1)

- colVisible2 (for WDVisibility property column2)

So here, for example, for the first row you want to display two buttons..

then you can set two column properties to VISIBLE and in second row if you want show only first cell then for the second cell you can change the property to BALNK.

Hope this helps you.

Regards

Abhilash

Former Member
0 Kudos

No, you don't need to move attributes. Simply add all additional attributes you need into the subnode.

Armin

Answers (0)