Re: No column name in grid

Daniel Kroker <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>
Hi

please try:

DATABASE or_db
LAYOUT
  VBOX
   GRID(HIDDEN)
{
[code              ] [nom                                       ]
}
END
TABLE
{
[a0                ] [f000                                      ]
[a0                ] [f000                                      ]
[a0                ] [f000                                      ]
[a0                ] [f000                                      ]
[a0                ] [f000                                      ]
[a0                ] [f000                                      ]
[a0                ] [f000                                      ]
}
END
END
TABLES
state
ATTRIBUTES
LABEL code = FORMONLY.txx_code;
LABEL nom = FORMONLY.txx_nom;

a0 = state.code;
f000 = state.sname;
INSTRUCTIONS
DELIMITERS " "
SCREEN RECORD s_state[7](state.*)

And then you can say in your 4gl code:

DISPLAY "code" TO FORMONLY.txx_code
DISPLAY "nom" TO FORMONLY.txx_nom

I hope this helps you

best regards
Daniel

Am 12.01.2016 um 07:12 schrieb rodrigue Timma:
> Good morning
> i have a problem to show columns in my grid, no columns appear and 
> this is my .per
> DATABASE or_db
> LAYOUT
> TABLE
> {
>  code                 nom
> [a0                ] [f000                                      ]
> [a0                ] [f000                                      ]
> [a0                ] [f000                                      ]
> [a0                ] [f000                                      ]
> [a0                ] [f000                                      ]
> [a0                ] [f000                                      ]
> [a0                ] [f000                                      ]
> }
> END
> TABLES
> state
> ATTRIBUTES
> a0 = state.code;
> f000 = state.sname;
> INSTRUCTIONS
> DELIMITERS " "
> SCREEN RECORD s_state[7](state.*)
> and my .4gl code :
> define p_state ARRAY[60] OF RECORD LIKE state.*
>  define idx int
>  DECLARE c_states CURSOR WITH HOLD FOR SELECT *
>                                             FROM state
>     LET idx = 1
>     FOREACH c_states INTO p_state[idx].*
>   LET idx = idx + 1
>     END FOREACH
>
>  CALL ui.Interface.loadToolbar("125")
>  OPEN WINDOW w_state AT 8,8
>         WITH FORM "state_list" ATTRIBUTE(border)
>     CALL set_count(idx)
>     DISPLAY ARRAY p_state TO s_state.*
>     LET idx = arr_curr()
> As you can see in my attached document there are  no column's name
> Please help thks
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>
>
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.