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

Smartforms: copying pages

Former Member
0 Likes
959

Hello,

i need to create two pages for my smartform. I have successfully created page one. Now i need a second page with is similar to page one. So i copied the page one (FIRST) to my second page (NEXT).

Problem: This copy seems to be a copy by reference.

All the time i make changes on page two, page one is affected. How can i destroy the reference or what do i have to consider if i copy pages within smartforms?

Regards,

Christian

1 ACCEPTED SOLUTION
Read only

sergey_korolev
Active Contributor
0 Likes
680

If you make your changes in the MAIN window (it has type 'MAIN') then your changes will affect all pages where this window is present. This works as designed.

4 REPLIES 4
Read only

sergey_korolev
Active Contributor
0 Likes
681

If you make your changes in the MAIN window (it has type 'MAIN') then your changes will affect all pages where this window is present. This works as designed.

Read only

Former Member
0 Likes
680

Hi,

When a page is copied the main window will have the reference on the copied page. Except for main window you can individually make changes to all other windows that you create.

Just in case you dont want this reference, you can do this. (might sound silly. but works effectively)

1. Right click on the main window of the copied page and Cut it. (now its copied to the clipboard)

2. Now change the main window name (or any other small change) in the first page.

3. Now again paste your main window back in the copied page.

Now the reference wont be there anymore.

Regards,

Vijay

Read only

0 Likes
680

I know that there can only be one main window in the smartform.

I have the problems that all objects are referenced even in the other windows!

I will try Vijayakrishnan's solution...

Read only

0 Likes
680

This is default behaviour in SmartForms.

Change in windows that hava the same names in different pages affects all pages.

If you want to copy page and have separate windows you have to change their names.