LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to jump to anther page by click a button in webvi

How to jump to anther page by click a button in webvi?

0 Kudos
Message 1 of 8
(2,737 Views)

There are a couple of options:

  1. If it makes sense in the application, use the Hyperlink Control to create a link on the panel that the user can click. Links are the primary way users should navigate in web applications. It gives the user the most control. They can hover over the link to see the target page. They can right click the link and open it in a new window. Prefer using the Hyperlink control when possible.
  2. If you must programmatically redirect with a button press instead of letting users use a hyperlink, the URL for WebVI example code has a Window Location Set VI that can update the window location to navigate to a new URL.

Milan
0 Kudos
Message 2 of 8
(2,694 Views)

Thank you for your reply! Now, I had used Onclick function to do it.

0 Kudos
Message 3 of 8
(2,668 Views)

Hello MilanR,

 

I am using G web development software 2022 Q3, i need to use URL for WebVI library to jump another page by clicking button. But when importing URL.comp to my project, g web development software does not respond. Is it not supported 2022 Q3 or what's wrong? I downloaded version3. Thanks.

0 Kudos
Message 4 of 8
(2,189 Views)

Hi grkmsngr,

 

I am not aware of any issue using the URL for WebVI Release 3 library with G Web Development Software 2022 Q3. Do you have any example project and steps to reproduce the issue?

 

I tested the library with G Web Development Software 2022 Q3 like follows and it seems to work as expected:

urlforwebvigweb2022q3.gif


Milan
0 Kudos
Message 5 of 8
(2,170 Views)

When opening new project and then add URL.gcomp to project as you did, there is no problem. But add to my project software does not respond and locked after 3 seconds. I have attached my test project.

0 Kudos
Message 6 of 8
(2,142 Views)

Hi grkmsngr,

 

I tried opening the provided example and included the URL.gcomp that was included in the project and it appears to work for me with G Web 2022 Q3:

 

urlforwebvigweb2022q3example.gif

 

If you are still having an issue loading URL.gcomp some things to try:

  • Attempt to include the URL.gcomp and let it process for a few minutes, it may be trying to update the local .cache.
  • Attempt to clear the project .cache folder by doing the following:
    • Make sure G Web Development Software is shut down
    • Create a backup of your project folder directory
    • In the project folder, delete the .cache directory
    • Open G Web Development software
    • Open your project (may take a couple minutes to rebuild the .cache before the run arrow is available again)
    • Attempt to add the URL.gcomp library as shown above
  • Check if there is an antivirus program that may be interfering with the files when G Web Development Software is loading them.

 


Milan
0 Kudos
Message 7 of 8
(2,104 Views)

Hello again MilanR,

 

Thanks for your soluiton. It is ok now when delete the .cache directory. 

0 Kudos
Message 8 of 8
(2,086 Views)