cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Table column via a script

former_member182659
Participant
0 Kudos

Hello,

In Personas 3, I want to hide a table column via scripting to be based on condition.

Example: in ME21n, I want to hide certain column based on purchase order type.

I try the hide function with passing the column index or name but it always hide the entire table.

Is somebody knows the tricks?

Thanks,

Emmanuel.

Accepted Solutions (1)

Accepted Solutions (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert

You can use the "hide" method with the column's ID. For example, if you want to hide the Account Assignment Category column with your script, you'd do

session.findById("wnd[0]/usr/subSUB0:SAPLMEGUI:*/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:1211/tblSAPLMEGUITC_1211/colMEPO1211-KNTTP").hide();

The ID is available when you select the column while editing the flavor and go to the Advanced Property Editor.

former_member182659
Participant
0 Kudos

Thanks Tamas.

It works well.

Emmanuel

Answers (0)