Hi.
So, I have a freeform datawindow with several columns.
Our customers wants us to add functionality to show/hide certain columns and save the setup.
The saving part is easy, and the show/hide as well using dw_data.modify("col.visible='<0 or 1>').
The datawindow has about 26-28 columns in total, and for now I've added the possibility to show/hide 8 of them.
But the big issue is how to move the remaining visible columns to fill all the gaps where the columns which are hidden used to be.
Is there an easy way to do this, perhaps in Powerscript, PFC or some other smart custom function?
Even better if it's rather generic and can be used on other datawindows in the future.
I know that grid layout is handling this automatically, but we dont want to use the grid layout for now.
Best regards,
Bjarne Anker
Maritech Systems AS
Molde - Norway
FWIW: This might be OK if the DWO is "read only". However, sliding columns where data entry is required - can end up being a GUI mess. So it all depends how Ashutosh is using the DW in the App.
Regards ... Chris