This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
You are using low level access to the prim_list attributes by doing this.
In the documentation there is a specific warning:
"Do not change list column or list item visibility unless you are sure it will not interfere with built in features like: Quick Search, Column Hide / Show and Column Filtering."
You can do this, but it will likely require you to use a custom instance list.
Doing so will allow you to control the instance list like a normal PRIM_LIST. You could then add your own button and menu to toggle the column visibility.
Would having an option to turn off the shipped VLF column choice feature be helpful here?
Most other instance list options follow this ‘turn it off’ capability, but this one does not.
ie: Either the you use the VLF’s shipped feature, or you turn it off, and handle it in your own code. That’s because having a half-and-half control situations is probably always going to cause issues, as the documentation suggests.