Go To Second Page

toe

Member
Licensed User
Longtime User
I added a module but am unable to find how to show the second page, should it appear as a tab next to the "Main" tab in the Designer?

sSheetCover2.bal is also missing from the files tab....:confused:

4som.jpg


thx
toe
 

giga

Well-Known Member
Licensed User
Longtime User
I added a module but am unable to find how to show the second page, should it appear as a tab next to the "Main" tab in the Designer?

sSheetCover2.bal is also missing from the files tab....:confused:

4som.jpg


thx
toe

There are several ways of getting to a second page. You could use a button and Sub to that "layout".

sSheetCover2.bal, Did you create this file and save it in the designer?
 
Upvote 0

toe

Member
Licensed User
Longtime User
There are several ways of getting to a second page. You could use a button and Sub to that "layout".

sSheetCover2.bal, Did you create this file and save it in the designer?

No idea what you mean by did i create the file.

I added a new module and gave it a name and am trying to open/view it.

toe
 
Upvote 0

toe

Member
Licensed User
Longtime User
Take a look at THIS example.

That example dosnt seem to answer my question, when creating a new module is a new .bal file created or do i need to manually create one, cannot i add views to a module, maybe i shouldnt be using a module.

I am just wanting to be able to navigate/load/show FORM/WINDOW/PAGE 2.

toe
 
Last edited:
Upvote 0

giga

Well-Known Member
Licensed User
Longtime User
No idea what you mean by did i create the file.

I added a new module and gave it a name and am trying to open/view it.

toe
In designer make sure you save a design as sSheetCover2

If you already created the sSheetCover2.bal it would show in the File (dropdown) top left in designer not next to Main tab.
It would also show when you click on the Files tab at the bottom right as an added file.


Once verified there.
try this in your first module
make a Button Sub (if you want to get to this page by a button click)
B4X:
Activity.LoadLayout("sSheetCover2")

If correct you would go to your sSheetCover2

Good Luck
 
Upvote 0

toe

Member
Licensed User
Longtime User
In designer make sure you save a design as sSheetCover2

If you already created the sSheetCover2.bal it would show in the File (dropdown) top left in designer not next to Main tab.
It would also show when you click on the Files tab at the bottom right as an added file.


Once verified there.
try this in your first module
make a Button Sub (if you want to get to this page by a button click)
B4X:
Activity.LoadLayout("sSheetCover2")

If correct you would go to your sSheetCover2

Good Luck

Hi giga,

I added this code to a button but it doesnt navigate to the sSheetLayout page.
B4X:
Sub button1_click
Activity.LoadLayout("sSheetingLayout")
End Sub

Also shouldnt there NOW be another tab next the the "Main" tab?

The reason i ask is i cannot find a option to go to the code view for the NEW sSheetLayout page...:confused:

a5q8.jpg


thx
toe
 
Upvote 0

toe

Member
Licensed User
Longtime User
ok, all sorted.

It turns out you not only need to do the above but as giga stats you also need to add a module named the same as what you call the new page i created via the "designer window you select "File/New/Save" procedure.

thx
 
Upvote 0

giga

Well-Known Member
Licensed User
Longtime User
ok, all sorted.

It turns out you not only need to do the above but as giga stats you also need to add a module named the same as what you call the new page i created via the "designer window you select "File/New/Save" procedure.

thx
Glad you got it working.:icon_clap:
 
Upvote 0
Top