Skip to Content

Is it possible to fill Universe Query Prompts via action script?

I have a query that has a beginning and ending date range that I've setup with prompts. I would like to fill these prompts with action script based on a cleaner popup window that I will present to the user. Is this possible? I've checked to see if prompts get mapped as global variables automatically but they don't seem to.

Maybe there is a better way to do this but it seems to me that setFilter only handles = and inlist operations not ranges or inequalities so I was trying to fill the prompt which does support those operations.

Thanks,

Bob

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2014 at 12:25 PM

    Hi Bob,

    that works out of the box me. UNX Query Specification:


    When you use setVariableValue you will see the list of prompts from the query specification:

    APPLICATION.setVariableValue("psYearFrom", DROPDOWN_1.getSelectedValue());

    APPLICATION.setVariableValue("psYearTo", DROPDOWN_2.getSelectedValue());

    Application unsing dropdowns filling prompts from the UNX Query Specification:

    Best regards,

    Victor


    DS_3.JPG (17.6 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 22, 2016 at 11:07 PM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.