Skip to main content
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:33 AM UTC

Uniface 9: hide columns in a grid widget uniface 9.6

hide columns in a grid widget uniface 9.6

Author: ivanandradesantana@gmail.com (IvanSantana)

Hi I'm developing an application where I am using a grid widget, and need to create a column hid, and not want to show on screen. How can I do this.

13 replies

Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:33 AM UTC

hide columns in a grid widget uniface 9.6

Author: ivanandradesantana@gmail.com (IvanSantana)

Hi I'm developing an application where I am using a grid widget, and need to create a column hid, and not want to show on screen. How can I do this.

Well, at least 9.3. I don't think we ever used 9.2/9.1 and I'm not sure the grid was available in 8. 


Author: Iain Sharp (i.sharp@pcisystems.co.uk)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:33 AM UTC

hide columns in a grid widget uniface 9.6

Author: ivanandradesantana@gmail.com (IvanSantana)

Hi I'm developing an application where I am using a grid widget, and need to create a column hid, and not want to show on screen. How can I do this.

Hi Iain, great hint !! Do you know from what version the VISIBLE is supported ? Uli


Author: ulrich-merkel (ulrichmerkel@web.de)
Jan Cees Boogaard
Rocketeer
Nov 19, 2018 11:33 AM UTC

hide columns in a grid widget uniface 9.6

Author: ivanandradesantana@gmail.com (IvanSantana)

Hi I'm developing an application where I am using a grid widget, and need to create a column hid, and not want to show on screen. How can I do this.

In the grid widget properties, Use the MORE button, add a property of "VISIBLE" with the value as a Gold-; separated list as below :- FIELD_NAME1=F;FIELD_NAME2=F Note, all the data in this property must be in caps.  You can set this property from proc in $entityproperties as long as the form has not yet had a show/edit/display.  The downside of using this is that the field to the 'left' of the hidden field in the grid cannot be extended to the right by the user. Also, if you change the order of the fields in the grid, or switch a column on or off programatically, one of the columns shown will be available, and extendable but will start at 0 width, so it's best to include a  putitem/id $entityproperties(v_grident),"KEEPLAYOUT","F" to ensure the columns are reset to defined sizes every time.  Although you can replace the $entityproperties() , "VISIBLE" above with $columnsyntax in version 9.5/9.6 there remains no way of defining an unmodeled field as hidden by default leaving you to either continue to use "VISIBLE" in the grid widget properties dialog, or to create non-database modeled entities in which you can define data you need but won't show. 


Author: Iain Sharp (i.sharp@pcisystems.co.uk)