EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  EGL RUI get Paramater from URL

    Posted Mon June 12, 2017 02:57 AM

    Hi,

    We want to pass a paramater to the RUI like this:

    http://XXX.XXX.XXX.XXX:XXX/web/web-de.html?param=test

     

    How to get the passed paramater in the EGL RUI program?

     

    Kind Regards!

    Marcel-D


  • 2.  Re: EGL RUI get Paramater from URL

    Posted Mon June 12, 2017 01:22 PM

    With the command "document.location", you can load the URL and so you work with the best you need ..

    Helped ??

     

    Regards

     

    Osvaldo Menezes

    ojomenezes


  • 3.  Re: EGL RUI get Paramater from URL

    Posted Tue June 13, 2017 01:58 AM

    Hi Osvaldo,

    thank you.

    Yes this is a solution but I thought there is maybe an EGL function to get the paramaters.

     

    This works:

            "getParameterFromUrl" : function(Parameter) {                var url_string = window.location.href;                var url = new URL(url_string);                Parameter = url.searchParams.get(Parameter);                return Parameter;        },

     

     

     



    Kind Regards!

    Marcel-D


  • 4.  Re: EGL RUI get Paramater from URL

    Posted Mon September 11, 2017 04:02 AM

    Morning, Marcel-D!

     

    I didn't completely understood the question... This URL must be dynamic, or it's static?  For static URLs I'm using the sysLib.getProperty function, you simply store the strings as they are in Property on the server, and by using this function from the SysLib, it's always available...

    I hope I have helped...

     

    Good day to all!

     

    Filip
     

    FilipKeser