This topic is locked

Multiple Add pages

8/4/2018 1:34:12 AM
ASPRunner.NET General questions
jadach authorDevClub member

So far version 10 looks really promising. Thanks Sergey and team!!
I am having difficulty figuring out how to add multiple add pages. On the list page I duplicated add new button to point to add1 page. The url shows add and add1 correctly based on the button I clicked, but the layout on both pages are identical. I have one add page showing fields vertically and the other horizontally. However, like I said, doesn't matter, all I get in the published app are two identical layouts.
Is there a step by step configuration in the help? I can't find it.
Thanks

admin 8/7/2018

Not sure what might be wrong, seems to be working from here:

http://demo.asprunner.net/kornilov_gmail_com/Project1v1003/categories_list.php

See two Add button there pointing to two different Add pages.
Or you saying only layout is not being applied but all other changes are applied?

A
Arkie 8/8/2018

ok... I can create an "ADD1" page by clicking the + at the top and selecting an ADD page. So now I have an ADD and an ADD1 page and I can arrange variables to go on each of these pages.

On the LIST page, I can select the ADD NEW button and create a copy of it. But how do I point this new button to the ADD1 page?? Somewhere It needs to point to page=ADD1, but I don't see how to do that.
Jerry, please help me get my ADD buttons pointed to ADD and ADD1.
I think I've conquered the workings of tabs so I may use those instead of pages.
Thanks

~Joe

jadach authorDevClub member 8/8/2018



ok... I can create an "ADD1" page by clicking the + at the top and selecting an ADD page. So now I have an ADD and an ADD1 page and I can arrange variables to go on each of these pages.

On the LIST page, I can select the ADD NEW button and create a copy of it. But how do I point this new button to the ADD1 page?? Somewhere It needs to point to page=ADD1, but I don't see how to do that.
Jerry, please help me get my ADD buttons pointed to ADD and ADD1.
I think I've conquered the workings of tabs so I may use those instead of pages.
Thanks

~Joe


In page designer, click the button on list page. On the right panel, you can see a drop down where to select the page. My issue is, the published app just uses the same exact add page. At least that is how it looks to me.

jadach authorDevClub member 8/8/2018



Not sure what might be wrong, seems to be working from here:

http://demo.asprunner.net/kornilov_gmail_com/Project1v1003/categories_list.php

See two Add button there pointing to two different Add pages.
Or you saying only layout is not being applied but all other changes are applied?


Sergey, I pushed my test app to demo: http://demo.asprunner.net/jadach_jerryadach_com/Test10/'>http://demo.asprunner.net/jadach_jerryadach_com/Test10/
The layout of add and add1 are different in the designer, but not in the published app. Perhaps I am just missing something.
http://demo.asprunner.net/jadach_jerryadach_com/Test10/'>http://demo.asprunner.net/jadach_jerryadach_com/Test10/

A
Arkie 8/9/2018

Thanks Jerry... talk about missing something, I sure missed the page selection for the ADD pages.
I may have your orientation figured out. As far as I can tell, whatever orientation you set for the last ADDx page is also taken by the other pages. The content of each page can be different as only the orientation is affected.
I didn't test every possible configuration, but I think this may be it. I created 3 ADD pages and whatever orientation was on page 3 also showed up on the other pages.

~Joe

jadach authorDevClub member 8/10/2018

Arkie, thanks for the tip. Maybe I don't understand the use of additional pages.
I re-worked my test app and this time I copied add page to an add1 page. I then removed one field from add1. After building, it did show 2 different add pages. One with 3 fields and one with 2.
I then added a code snippet to add1 page. That code snippet does not show on my published add1 page.
I also noticed that events shows only 1 add page. So if, for example, my add page has 3 fields and my add1 page has 2 fields - could this possibly cause issues if I am using all fields in a javascript onload? One page will be missing a field.
I guess I am just wanting to fully understand the intent so I can leverage this new functionality properly.

A
Arkie 8/10/2018

Yep.. understanding more about the ADD pages is the key to using them. I started out thinking they would be used very much like the tab pages we've had for several versions. It would give some flexibility for page designs.

But... then the questions started coming such as yours; and where do we put the key fields?
Oh well... time will tell...

admin 8/13/2018

@jadach
the same Javascript OnLoad code will be applied to all Add pages. If some fields may not appear on some pages your code need to be adjusted to account for that situation. For instance, if field named "CategoryName" is not there you code will break and you need to make sure it exists before using it. Here is an example:

var ctrl = Runner.getControl(pageid, 'CategoryName');

if (ctrl)

alert(ctrl.getValue());
admin 8/13/2018

@Arkie,
not really sure how key columns are relevant here.

jadach authorDevClub member 8/14/2018



@jadach
the same Javascript OnLoad code will be applied to all Add pages. If some fields may not appear on some pages your code need to be adjusted to account for that situation. For instance, if field named "CategoryName" is not there you code will break and you need to make sure it exists before using it. Here is an example:

var ctrl = Runner.getControl(pageid, 'CategoryName');

if (ctrl)

alert(ctrl.getValue());



Thanks for the insight. I just want to make sure I understand correctly.

S
stefansuba 8/30/2018

Hi Guys ,

I am trying to understand how the multipage under page designer is working . So far no luck. I can see the demo app (http://demo.asprunner.net/jadach_jerryadach_com/Test10/dbo_Alert/list?a=return) have two "add new" buttons but my project has only one . Even after clicking to create new page "add 1" is not shows after build or during the project construction. I have no "add 1" page under events either. This functionality is very "briefly" explained in HELP.

e.g "You can work with different types of objects on the Page designer screen: pages, cells and elements. Each type has different set of options and properties. To see functionality that is available for the current object you need to click on it on the Page designer tab.".

Could someone please give me a step by step guide in case I am missing something here.

Thx ,SS

S
stefansuba 8/31/2018



Hi Guys ,

I am trying to understand how the multipage under page designer is working . So far no luck. I can see the demo app (http://demo.asprunner.net/jadach_jerryadach_com/Test10/dbo_Alert/list?a=return) have two "add new" buttons but my project has only one . Even after clicking to create new page "add 1" is not shows after build or during the project construction. I have no "add 1" page under events either. This functionality is very "briefly" explained in HELP.

e.g "You can work with different types of objects on the Page designer screen: pages, cells and elements. Each type has different set of options and properties. To see functionality that is available for the current object you need to click on it on the Page designer tab.".

Could someone please give me a step by step guide in case I am missing something here.

Thx ,SS


In page designer:

  1. Click on + to create the new page (e.g Add new)
  2. On the List page copy the Add new Button. (Click the"Add new" button on list page then on the right panel under add new properties click on create copy)
  3. Click the new "Add new" button on list page. On the right panel, you can see a drop down where to select the page.
    Hope this will help others too.

    SS