cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide invisible columns from PDV personalization

Former Member
0 Kudos

Hi,

We're using the PDV table in some of our iViews (Java, SAP EP SP9). The columns, which we do not want to have displayed in the table, are set to "invisble" i the Java-iView using the statement:

table.setColumnInvisible( "colName" );

However, when personalizing the PDV table by clicking the pencil in the right corner, the invisible columns still shows up (and they are even marked as "visible").

Is there any way to hide these columns from the personalization?

Thanks in advance,

Rasmus

Accepted Solutions (0)

Answers (1)

Answers (1)

darrell_merryweather
Active Contributor
0 Kudos

For what reason are the columns set to invisible. If, for example, you have a link in one of the columns and you are using another column as the tooltip, then you need to remove the column from the model after assigning it to the relevant column. For example

model.getColumn("<name>").setType(TableColumnType.LINK);

model.getColumn("<name>").setLinkColumnKey("<link>>");

model.getColumn("<name>").setTooltipColumnKey("<tool>");

model.removeColumn("<link>");

model.removeColumn("<tool>");

where <name> is the name of the column you want displayed, <link> is the name of the column for the link information and <tool> is the name of the column for the tooltip information.

I hope this helps

Thanks

Darrell

Former Member
0 Kudos

Hi Darrell,

Thanks for your answer. It is exactly the situation which I'm in. However, I use the 'TableView' class for the PDV, and the method 'removeColumn' cannot be applied to a TableView. I've looked for similar methods but without success.

Do You have any pointers?

Many thanks,

Rasmus

Former Member
0 Kudos

I've now tried getting the model and then removing the column (e.g. tooltip) using the statement:

table.getModel().removeColumn( "colName" );

However, it does not seem to have any effekt on the PDV details - the columns for links and tooltips still show.

Are there possibly a cache of some sort which needs to be emptied?

Best regards,

Rasmus

Message was edited by: Rasmus Ørtoft

Former Member
0 Kudos

Hi again,

Now we've tried "everyting", but we cannot seem to remove the columns from the PDV personalization. Even though the columns do not show in the PDV, they are still marked as "visible" in the PDV personalization.

Any suggestions?

- Rasmus