cancel
Showing results for 
Search instead for 
Did you mean: 

Table Column - Different UI elements in a column

Former Member
0 Kudos

Hi,

I have the following requirement. I need to create a table shown below.

COLUMN1 COLUMN2

ROW1 cell11 cell21

ROW2 cell12 cell22

I need cell11 and cell22 to be textviews and cell12 and cell21 to be inputfields. In other words, I need different cells in a table column to be of different types.

How do I do this.

Thank

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

An easier way to switch between input field and text view is to just bind the readOnly property. Why actually switch between InputField and TextView.

Create an attribute 'EDITABLE' type Boolean in the node that is bound to the table.

1.Create all the cell editors as input field.

2.Bind the readOnly poperty with the attribuite 'EDITABLE'

3.Now pass abap_true to make it a text view and abap_false to make in input enabled.

However it is possible to switch between different UI elements using Cell Variant .

Check these links:

[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/85/48a841c1dae034e10000000a1550b0/frameset.htm]

[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/56/5e9041d3c72e7be10000000a1550b0/frameset.htm]

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0e7461d-5e6c-2b10-dda9-9e99df4d136d]

Regards,

Radhika.

Edited by: Radhika Vadher on May 6, 2009 7:49 AM