Set URL Parameter (to go with GetURLParameter) - Forum

Forum Navigation
You need to log in to create posts and topics.

Set URL Parameter (to go with GetURLParameter)

Recently, at my request, Luis added the GetURLParameter command to VisualNEOWeb; much appreciated.

Not a high priority, but it would be of great help if the developer could specify "a parameter string" that should be appended each time a Run in Web Browser is requested for the current Project.

Perhaps a Menu Item (say Set URL Parameter) under the Menu Header Project ? ... followed by a Dialog Box that allows text like ...

continent=Africa&Country=Kenya

 

Good idea!. I will try to add it on the next update.
Thanks!

Did this every get implemented?

If not how do you set URL parameters in VisualNeo Web when testing?

 

Regards

Andy

Hi @andy-marshman, no, it has not been implemented. You can do it manually.

Suppose this is your current app URL when testing:
file:///C:/path/myapp/index.html#!/NewPage

You can include your own parameters this way:
file:///C:/path/myapp/index.html#!/NewPage?param1=value1&param2=value2&param3=value3

Just press enter after manually writing the URL parameters to reload the app using them.

Regards.

Hi @luishp,

This just isn't working for me. I have the following on the page-enter event of the initial page.

GetURLParameter "param1" [param1]

ConsoleLog "param1: [param1]"

If [param1] == "123"
   SetVar [PageHeader] "Test Page 1"
   GotoPage "Apprentice"
EndIf
If [param1] == "456"
   SetVar [PageHeader] "Test Page 2"
   GotoPage "Graduate"
EndIf

 

Edit: It's ok it's working now I had to put the code in the startup of the app rather than the page-enter.

 

Regards

Andy

 

luishp and Darbdenral have reacted to this post.
luishpDarbdenral