‎2008 Oct 11 5:09 AM
I want to display box in script dynamically.
please tell how this is possible.
‎2008 Oct 11 8:43 AM
hi
you can use code given for dynamically creating the box
POSITION WINDOW
POSITION XORIGIN' -0.5' CH YORIGIN' -0.25' LN
SIZE WIDTH' +0.4' CH HEIGHT +1 LN
BOX HEIGHT' 13' LN
IF &EKKO-EKGRP& EQ' '
BOX HEIGHT' 1.5' LN
ELSE
BOX HEIGHT' 2.5' LN
ENDIF
Regards
Prashant
‎2008 Oct 11 5:25 AM
Hi,
Create a main window with 2 Lines height,
Create box for entire manin window,
Position multiple main windows on one page, we can keep upto 99 main windows in one page.
Sample code
/E ITEM_A
IA &EKPO-EBELP&,,&T165M-ABSGR_TXT&
IA
/:BOX FRAME 10 TW
/:BOX XPOS 16 CH YPOS 0 LN WIDTH '0' CM HEIGHT 2 LN FRAME
10 TW
Regards
Bala Krishna
‎2008 Oct 11 6:44 AM
hey,
/: BOX WIDTH &H& CM HEIGHT &F& CM FRAME 10 TW
/: BOX XPOS &W& CM WIDTH &T& TW HEIGHT &M& MM FRAME 15 TW
Pass the value form program dynamically to H,F,W,T,M.
Regrads,
Midhun Abraham
‎2008 Oct 11 7:00 AM
Hi Kranthi,
In script using BOX command write the code where you want to draw the box. Write this code under one 'Text Element'. So from the Program based on the condition when you want the box is to be displayed then call 'WRITE_FORM' function module and pass the 'text element' name to the parameter 'ELEMENT' . Now the BOX is displayed.
Regards,
Rajitha.
‎2008 Oct 11 8:43 AM
hi
you can use code given for dynamically creating the box
POSITION WINDOW
POSITION XORIGIN' -0.5' CH YORIGIN' -0.25' LN
SIZE WIDTH' +0.4' CH HEIGHT +1 LN
BOX HEIGHT' 13' LN
IF &EKKO-EKGRP& EQ' '
BOX HEIGHT' 1.5' LN
ELSE
BOX HEIGHT' 2.5' LN
ENDIF
Regards
Prashant