Application Development 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: 

issue with smartform

Former Member
0 Kudos

Hi All!

I do have the following requirement.

IN the main window i have a table which is dynamic and runs into multiple pages.After the main window is stopped i wanted to go into the next subsequent window and for this i had designed 3rd page and incorporated command node after the main window for the smartform handle to move into the 3rd page.

Now my problem is the 3rd window is also need to be dynamic and it is not restricted to a single page and can move to several pages.IS it possible to do in smartforms .Pease advise.I mean two mains in different windows or else any other way to accomplish this.

Regards

Praneeth

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Praneeth,

In Smartforms you can use only one MAIN WINDOW. But you can use same MAIN WINDOW in several pages.

I had requirement same like yours. So i just use the same MAIN WINDOW for 7 times and my form having 10 page formats (7 pages are dynamic and can go for several prints).

Here the concept in MAIN WINDOW is, when the control moves down in the MainWindow, it cannot go up again.

So, based on this concept, i implement very very big smartform for Siemens, Paris.

Come to your case: Just follow my steps and you will finish your requirement with as easy as possible.

ets say, you have the PAGE1 which containes MAINWINDOWS and it flows to several pages.

WITH IN THE TABLE NODE (lets say TABLE1) of MAINWINDOW of PAGE1.

Create your text elements and conditions to display your text.

After your cosmotic text display, you will have to WRITE peace of code in Program Lines. So, create a PROGRAM LINES and write the code to check whether your internal table is reached its last record. If yes, flag = X.

Now, create COMMAND to go for NEXTPAGE PAGE2 if the flag = X (keep flag = x in the conditions tab of COMMAND).

Now, flag = X you will branch to Next Page PAGE2.

WITH IN THE PAGE2:

Create your Next Page with windows, text elements and MAIN WINDOW (just copy MAINWINDOW from PAGE1).

We are using same Main window for the second page as well. So you have to create TABLE node (TABLE2) after the TABLE NODE TABLE1.

let me know if you have any questions.

ram.

pls reward points if you satisfy with my explanation.

6 REPLIES 6

Former Member
0 Kudos

Why can't you move the contents of the third page into the MAIN window and include a command for a page break after whatever internal table you currently have on the main window.

Regards,

Ravi

Former Member
0 Kudos

Hi Praneeth,

In Smartforms you can use only one MAIN WINDOW. But you can use same MAIN WINDOW in several pages.

I had requirement same like yours. So i just use the same MAIN WINDOW for 7 times and my form having 10 page formats (7 pages are dynamic and can go for several prints).

Here the concept in MAIN WINDOW is, when the control moves down in the MainWindow, it cannot go up again.

So, based on this concept, i implement very very big smartform for Siemens, Paris.

Come to your case: Just follow my steps and you will finish your requirement with as easy as possible.

ets say, you have the PAGE1 which containes MAINWINDOWS and it flows to several pages.

WITH IN THE TABLE NODE (lets say TABLE1) of MAINWINDOW of PAGE1.

Create your text elements and conditions to display your text.

After your cosmotic text display, you will have to WRITE peace of code in Program Lines. So, create a PROGRAM LINES and write the code to check whether your internal table is reached its last record. If yes, flag = X.

Now, create COMMAND to go for NEXTPAGE PAGE2 if the flag = X (keep flag = x in the conditions tab of COMMAND).

Now, flag = X you will branch to Next Page PAGE2.

WITH IN THE PAGE2:

Create your Next Page with windows, text elements and MAIN WINDOW (just copy MAINWINDOW from PAGE1).

We are using same Main window for the second page as well. So you have to create TABLE node (TABLE2) after the TABLE NODE TABLE1.

let me know if you have any questions.

ram.

pls reward points if you satisfy with my explanation.

0 Kudos

Hi RAM

THanks for the long explanation.I have the following queries..

1)My problem is the whole page format will differ for both the tables.i mean other window positions will change for the table1 and table 2.

2)The next window will not be same for table 1 and table 2.

Please advise.Thanks again for your time

Praneeth

0 Kudos

Hi Praneeth,

Yes, you can use it. You can have different internal table formats, different page formats, different windows and its sizes. But you should use same MAIN WINDOW and same width in all pages. But you can change heigh of MAIN WINDOW.

for your questions.

1> You can change page formats for different pages.

2> I written the code for all types of possibilities whether it is same internal table or different internal table.

Let me know if you have any questions.

Just go on to develope your smartform with my logic. I am 100% sure my logic works perfectly for you as well.

If you have any questions, pls do not hesitate to contact me. Are you in India or some where else. It would be too good if you are in UK

Regards,

Ram.

Pls reward points, if you satisfy with my explanation.

0 Kudos

Ram,

Thanks for the swift reply..

Unfortunately I am in Bangalore, India.

I will try out your logic and implement it and will inform you if any issues.Please provide me your mail id so that I can be in touch with you.

Regards

Praneeth

Message was edited by: Praneeth kumar

0 Kudos

RAm,

What will happen if my first table runs into the second page.Will this logic work for the same.

Regrads

Praneeth