Skip to Content
0

Hide Table column via a script

Nov 29, 2017 at 10:34 AM

47

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Tamas Hoznek
Dec 04, 2017 at 09:47 PM
1

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Tamas.

It works well.

Emmanuel

0