Four Js Development Tools Forum

Discussions by product => GAS and GBC => Topic started by: Lu?s T. on December 04, 2017, 03:19:31 pm



Title: Accessing Query Parameters from the URL in 3.0
Post by: Lu?s T. on December 04, 2017, 03:19:31 pm
Hi,

In Genero 2.4/2.5 you can instruct the httpdispatcher to pass the full URL as a parameter when calling the application.

You do so putting the following in XCF file:
Code
  1. <APPLICATION Parent="defaultgwc">
  2.    <EXECUTION AllowUrlParameters="TRUE">
  3.        <PATH> [color=blue]The path where the shell script is[/color] </PATH>
  4.        <DVM>/usr/local/bin/bash</DVM>
  5.        <MODULE> [color=blue]The name of the shell script[/color] </MODULE>
  6.        <PARAMETERS>
  7.            <PARAMETER> [color=red]$(application.start.uri)[/color] </PARAMETER>
  8.        </PARAMETERS>
  9.    </EXECUTION>
  10. </APPLICATION>
  11.  

Now, in 3.0, if you use the GWC that does not work.

Can anyone tell me how to do it in Genero 3.0 for the GWC?

PS: In 3.1 is already possible but I can't yet update to 3.1


Title: Re: Accessing Query Parameters from the URL in 3.0
Post by: Sisavanh S. on December 06, 2017, 05:27:38 pm
Hi,

I've tested on GAS 3.00.31.
It works for me.
May I ask you to open a support case at your local support center ?

Thanks in advance.
Best regards,
Sisa.


Title: Re: Accessing Query Parameters from the URL in 3.0
Post by: Lu?s T. on December 07, 2017, 09:19:16 am
Thanks Sisa,

In here it works with HTML5, but not with GWC. So it works if I call the app with /wa/r/APP but not if I call it with /ua/r/APP.

Does it work with you for /us/r/APP?

Regards
Luis