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

Windows alignment in Smartform(Dynamic windows)

Former Member
0 Likes
433

Hi,

i have one main window. And below to that main window i have one variable window. Both are Static. Now, i want the winndow dimensions for the varaible window dynamically. for Example, if the main window contains one record then upper margin for the variable window is 6 cm left margin 2 cm width 5 cm height 4cm.

if the main window contains 2 records then upper margin for the variable window is 7 cml eft margin 2 cm width 5 cm height 4cm. like that...

is it possible?

1 ACCEPTED SOLUTION
Read only

former_member195383
Active Contributor
0 Likes
320

Hi suppose u want two windows A and B to be printed based on some case.

If case 1 is true the print window A , if case 2 is true then print window B.

Now from printprogram send a variable that will contain the no of records that are going to be printed in the smartform mainwindow.Say it is wf_no

Now in the windows A and B you give your required conditions

Like in window A in condition tab give wf_no < 2

in window A in condition tab give wf_no > 2 .

Hope this is wat u need..and hope this helps you out.

1 REPLY 1
Read only

former_member195383
Active Contributor
0 Likes
321

Hi suppose u want two windows A and B to be printed based on some case.

If case 1 is true the print window A , if case 2 is true then print window B.

Now from printprogram send a variable that will contain the no of records that are going to be printed in the smartform mainwindow.Say it is wf_no

Now in the windows A and B you give your required conditions

Like in window A in condition tab give wf_no < 2

in window A in condition tab give wf_no > 2 .

Hope this is wat u need..and hope this helps you out.