Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Passing Parameter (arguments) in uri  (Read 11925 times)
yap b.
Posts: 17


« on: September 02, 2009, 10:59:22 pm »

How do i access parameter values passed in URI when accessing a GWC application in Genero?
For example, accessing the application using http://myserver.com/gas/wa/r/myapp?Arg=john&Arg=doe

how can i access the values "john" and "doe"?
is that the correct way to pass parameter in URI using the same "Arg" as key?

Thanks very much in advance!

regards, BY
 
Reuben B.
Four Js
Posts: 1047


« Reply #1 on: September 02, 2009, 11:44:46 pm »

How do i access parameter values passed in URI when accessing a GWC application in Genero?
For example, accessing the application using http://myserver.com/gas/wa/r/myapp?Arg=john&Arg=doe

how can i access the values "john" and "doe"?
is that the correct way to pass parameter in URI using the same "Arg" as key?

Thanks very much in advance!

regards, BY
 

That is the correct way to pass parameters.  (see example 4 https://4js.com/techdocs/genero/gas/devel/DocRoot/User/URI.html#URI_EXAMPLES)

You can access them using the base.Application methods https://4js.com/techdocs/genero/fgl/devel/DocRoot/User/ClassApplication.html#cmd-line-args

What I suspect you also need to do as it is not immediately obvious and I get asked the question a few times is configure the .xcf file to allow parameters to be passed, that is done with the AllowURLParameteres attribute in the EXECUTION component https://4js.com/techdocs/genero/gas/devel/DocRoot/User/ASAppList.html#APPLICATION_EXECUTION

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
yap b.
Posts: 17


« Reply #2 on: September 03, 2009, 03:36:12 pm »

Reuben,
  Thank you very much!
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines