CA Service Management

Expand all | Collapse all

How retrieve parameters on popup window?

  • 1.  How retrieve parameters on popup window?

    Posted 09-25-2015 10:51 AM

    I'm trying retrieved arguments on popup window and i can see on URL link all parameters, but i cannot retrieve.

     

    It's a custom object BREL.

     

    I created a list form and i input on detail_in like a new TAB

     

    On detail form object it's everything ok until for retrieving.

     

    All variables is returns blank

    ${args.COMMON_NAME}

    $args.persistent_id

     

    What can i do?



  • 2.  Re: How retrieve parameters on popup window?

    Posted 09-25-2015 04:53 PM

    I can do it using this javascript code. I know isn't the best way BUT... could do it and use.

     

     

     

     

    var params = {};

     

     

    if (location.search) {

        var parts = location.search.substring(1).split('+');

     

     

        for (var i = 0; i < parts.length; i++) {

            var nv = parts[i].split('=');

            if (!nv[0]) continue;

            params[nv[0]] = nv[1] || true;

        }

    }

     

    params.<your parameter name>;

    javascript.jpg