Hi, I provide training in SAP UI5. Also feel free to checkout my new web page https://saptechblog.com
Webdynpro ABAP

Hiding the columns in ALV report

 

There may be a scenario in which a particular user will wants the column to be visible and invisible for certain users. Now let us see how to hide the columns.

This component designed for the ALV with drop down and ALV with button is modified further.

 

The class for the column contains a method called set visible using which we can set the visibility of the column.This method by default will have the visible property as visible which we have to make none in order to make the column invisible. We have already obtained the object reference to the column button using which I am going to hide the column.

 

clip_image002

 

Using the object reference to the column call the method set visible and set the visible property as none.

 

clip_image004

 

 

Test the output:

 

clip_image006

About Arun

0 Comments:

Post a Comment

Powered by Blogger.