Skip to Content

Hide Table column via a script

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 04, 2017 at 09:47 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded