Good Morning Taifun
My problem is not to close screens but to retrieve the URL address of the web page displayed in Afficheur_web1 before clicking on the link to display the PDF. Once recovered I can store it in tinyDB to reuse it to return to the correct address by closing my page where my PDFs are displayed
A few relevant screenshots might help...
How do you open screen Show_PDF?
Would it probabky be possible to stay on the screen to show the pdf? Look into using a virtual screen, see tip 1 General Tips and Tricks for App Inventor
The url address you are looking for, is it the same information whjch is passed to screen Show_PDF, or is it something else?
Provide an example of those...
Taifun
It's working now...
I'm going to try to explain better but... I'm French and it's complicate...
1st
On my app i have a page called Occasions_GPS where i display on "Afficheur_web" one ASP page who take into MS ACCESS database some informations.
This page is heavy and i display just 4 items by page with possibility on asp page to move on pages upto number 64...
She is all the time display into web viewer of APP inventor.
I call her one time and after i move into the asp page. Thus asp page is all time time the same but some querystring move to inform of page number with others querystring informations.
2nd
The code of my Occasions_GPS page is :
3rd
Sample of screen phone copy :
If i'm connected, some buttons appear into this asp page to provide links to see movie and sometimes pdf of the machine presented.
Like
On picture above you see pdf logo.
If customer clic on, now, its open "Show_PDF" page like :
And Pdf appear
Before, when I closed "Show_PDF" page, I was coming back on my "Occasion_GPS" page but at begining of my ASP page...
Now, with this programmation, when i close PDF, i come back on good page when PDF link is present and where the machine is present too...
Thus perfect !!!
Just... I should clic several times on my button "Fermer" (close screen) to close the pdf ?!
You are using a mixture of different methods to switch screens... in this case you are opening Show_PDF and in that screen instead of closing the current screen you open again screen Occassion_GPS, which keeps screen Show_PDF open. After a while you then have several screens Show_PDF open at the same time
Switch screens correctly! But in your case let me suggest to use virtual screens and show the pdf directly in scren Ocassion_GPS
Taifun
If i well understand well, you say me to remove my page "Show_PDF" to open the pdf into virtual screen directly into my page "Occasions_GPS" ?!
How you close this virtual page to shut down the PDF ?
They are one button to do it on virtual page ?
Herewith a simple example of using a virtual screen to display the PDF
getPDFThenShow.aia (44.6 KB)
Insert your own web page url
Just ise 2 vertical arrangements
1 is your Ocassions_GPS screen, 2 is to Show the Pdf... you can have buttons in both arrangements
Taifun
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.