Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BOX in Scripts.

former_member799868
Participant
0 Likes
627

I want to display box in script dynamically.

please tell how this is possible.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
595

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

4 REPLIES 4
Read only

former_member585060
Active Contributor
0 Likes
595

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

Read only

Former Member
0 Likes
595

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

Read only

Former Member
0 Likes
595

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.

Read only

Former Member
0 Likes
596

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