cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Column names (header) of a table dynamically

Former Member
0 Kudos

Dear Experts,

Greetings.

I have a requirement in which I need to get the column name (header) of a table when the user clicks on a column.

Kindly suggest me the possible ways.

Thanks in advance.

Regards

Sathya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

What is the use-case? Click on table column is already reserved for Table.onSort action.

Armin

Former Member
0 Kudos

Hi,

use one of the following based on your requirement

Bind the header text to a context attribute and access this attribute from code when clicked on the column.

Or use parameter mapping.

Regards

Ayyapparaj

Former Member
0 Kudos

Hello Ayyapparaj,

Thanks for the explanation. We can not go for context attributes binding as the no.of.columns are not fixed.

Could you please explain the parameter mapping procedure?

Thanks and regards,

Sathya

Former Member
0 Kudos

Hi,

Please go through the following document http://help.sap.com/saphelp_erp2005/helpdata/en/60/1f1f056f057d4d962375efd3c92ed0/content.htm

Regards

Ayyapparaj