Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Hide/show IG Column and change the Columns Displayed value in Actions menu

Károly DedeAug 2 2024 — edited Aug 2 2024

Hello,

I have an Interactive Grid with many columns and I have a Region above it with Switches for each column. I use a dynamic action to change the visibility of the columns, it works perfectly, but when I hide a column, it doesn't changes its "Displayed" value in the Actions menu, and it has no affect on the export (that hided column will be aso exported) and I cannot save it as a Report. I assume that it is related to this value in the Actions menu, but I'm also interested in other solutions for the export and the Report saving.

This is the Javascript code I use:

let col01_col = ["COLUMN_NAME01"],
view = apex.region("interactive_grid_static_id").widget().interactiveGrid("getCurrentView").view$;
col01_col.forEach(function(columnName){
view.grid( ( apex.items.SWITCH_COLUMN_NAME01.value === "Y" ? "showColumn" : "hideColumn" ), columnName );
});

Can somebody please suggest a solution? Thank you in advance!

This post has been answered by Karel Ekema on Aug 3 2024
Jump to Answer
Comments
Post Details
Added on Aug 2 2024
2 comments
711 views