Forum Discussion

Cosimo's avatar
Cosimo
Contributor II
3 years ago

Prompting for parameters for Tableview

I've got a Tableview embedded in an Excel workbook and would like to be able to prompt the user to select an entity and period that is then used to filter records. Is this possible?

  • Yes, this is possible.

    You define your parameters in a list.  "SelectEntity" could be a normal parameter i.e., Member List, Member Dialog etc. 

    Then retrieve them in your Table View rule using the strings in your SQL query.

    You'll then get prompted for these parameters on refreshing the Table View.

     

  • LeeB's avatar
    LeeB
    Contributor II

    Yes, this is possible.

    You define your parameters in a list.  "SelectEntity" could be a normal parameter i.e., Member List, Member Dialog etc. 

    Then retrieve them in your Table View rule using the strings in your SQL query.

    You'll then get prompted for these parameters on refreshing the Table View.

     

  • Cosimo's avatar
    Cosimo
    Contributor II

    Thanks Lee. It works! What threw me off is that the documentation describes that you can create a list of parameters but fails to include that we should be returning the list back to the table view i.e. missing the "Return list" line in the code. 

     

     

  • GorkemSenol's avatar
    GorkemSenol
    New Contributor III

    Hi both,

    Maybe a silly question but when I add the parameter it just gives me a textbox to input a value for the dimension. Is it possible to present the user with a memberdialog or a list?

    • Cosimo's avatar
      Cosimo
      Contributor II

      Hi Gorkem,

      You certainly can by 1st defining a dashboard parameter (be it delimited, member list or member dialog) and then use it in cube views, table views, books, etc. Below is one example which I then call using |!DepartmentSelect!| elsewhere:

       

       

       

      • GorkemSenol's avatar
        GorkemSenol
        New Contributor III

        Thanks Cosimo,

        I realized there was something wrong with how I set up the parameter. I'm also struggling to get the result of the parameter selection and use it to filter the SQL. Can you let me know how did you achieve that? I want OS to filter the SQL based on the year and scenario selection from user.

         

  • Mubarak_H's avatar
    Mubarak_H
    New Contributor II

    Hello,

    I have a doubt about table view custom parameter. Let's say we have defined two parameters namely "Param_1" and "Param_2". the requirement is my "Param_2" values should be based on "Param_1" is it possible to achieve?

    When I select a Value in "Param_1" the available items in "Param_2" should change.