I've used a BROWSE widget to display search results in. The search based on one of several available fields in a TEMP-TABLE.
What I want to do is to dynamically set the format of the matching field to "x(16)" instead of "x(11)". The matching field name is stored within a variable.
The example below is a static browse where the search is based on "desc1", I want to make it dynamic so that it can be used to display results regardless of matching field.
DEFINE BROWSE brResults
QUERY qResults
DISPLAY
ttRowsmaj.desc1 FORMAT "x(16)" COLUMN-LABEL "Desc 1"
ttRowsmaj.desc2 FORMAT "x(11)" COLUMN-LABEL "Desc 2"
ttRowsmaj.desc3 FORMAT "x(11)" COLUMN-LABEL "Desc 3"
ttRowsmaj.desc4 FORMAT "x(11)" COLUMN-LABEL "Desc 4"
ttRowsmaj.desc5 FORMAT "x(11)" COLUMN-LABEL "Desc 5"
WITH 11 DOWN MULTIPLE NO-BOX.
Can anyone help me do that?