Welcome! Log In Create A New Profile

Advanced

[WB25] Check if specific page exist

Posted by ericus 
[WB25] Check if specific page exist
January 29, 2021 04:47PM
Good afternoon

Before using PageDisplay I want to check if the specific page does exist. This is for a WebDev dynamic site.

How would I do that please?

Thanks in advance


Ericus Steyn
Re: [WB25] Check if specific page exist
January 31, 2021 06:42PM
Your answer is in your question.

PageExist()

DW
Re: [WB25] Check if specific page exist
February 01, 2021 10:32PM
According to the manual PageExist() will tell you whether a page is currently displayed in the browser.

I want to know if a specific page exist i.e. PAGE_InvoiceXXXX where I have different looking Invoicing pages depending on the client's requirements.

If PAGE_InvoiceXXXX does not exist I want to know before calling PageDisplay.

Regards


Ericus Steyn
Re: [WB25] Check if specific page exist
February 02, 2021 01:39PM
Hi Ericus,

You can use enumElement to get a list of all pages in your project.
Then filter out all pages that start with PAGE_Invoice.
Store in an array and search the array before opening.

Best regards,
Piet
Re: [WB25] Check if specific page exist
February 03, 2021 03:35PM
Thanks Piet.

Good idea.

Regards
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: