Repositioning when using DOWN Frame.

pavanms

New Member
Hi All,

I am facing issue in repositioning data displayed from a temp table.

Issue:
First time when i display data its proper. when i display the next time the data from the temp tabls is displayed from the last position...

I tried clear frame and others... Didnt help..

Below is the code used to display.

FOR EACH ttsmry NO-LOCK WHERE tt_dom = qo_domain AND
tt_qo = qo_nbr
BREAK BY tt_nbr:
ASSIGN lc_pl1 = tt_pl1
lc_dollar = tt_dollar
lc_comm = tt_comm
lc_cost = tt_cost
lc_margin = tt_margin.

ASSIGN lc_tot_dollar = lc_tot_dollar + tt_dollar
lc_tot_cost = lc_tot_cost + tt_cost
lc_tot_margin = lc_tot_margin + ROUND(tt_margin,0).
DISPLAY lc_pl1 lc_dollar lc_comm lc_cost lc_margin WITH FRAME b.
DOWN 1 WITH FRAME b.
PAUSE 0.

IF LAST-OF(tt_nbr) THEN
DISPLAY "Totals" @ lc_pl1
lc_tot_dollar @ lc_dollar
lc_tot_cost @ lc_cost
lc_tot_margin @ lc_margin WITH FRAME b down.
END. /* FOR EACH ttsmry */

Kindly help me....
 
Top