Home Discussions Questions & Answers Custom LOV Creation and Filtering Configuration

Custom LOV Creation and Filtering Configuration

Avatar photoCustomer December 10, 2020 at 9:19 am

I need to create a list of values for a specific parameter based on a complex custom SQL query. I don’t want this LOV to be shared with any other report, and I need to define the validation query right here in the report setup. Which parameter type should I use?

Viewing 8 reply threads
  • Author
    Replies
    • Support December 12, 2020 at 2:12 am  

      You should select the ‘LOV Custom’ parameter type . This type is specifically used to create an ad hoc LOV based on an SQL statement solely for the validation of the current report parameter . Once selected, you double-click the ‘LOV Query’ field to enter the required SQL statement . This ensures that any modification to this LOV will not impact other reports, unlike shared LOVs of type ‘LOV’ .

    • Avatar photoCustomer December 13, 2020 at 3:06 am  

      What are the required columns for the LOV SQL, and how is the returned data used in the main report execution?

    • Support December 13, 2020 at 5:44 am  

      The LOV SQL must include the columns `value` and `description` . It may optionally start with an `id` column . If an `id` column is included in the select clause, the value from this column is used as the parameter’s bind value for the main report execution . If the `id` column is excluded, the value from the `value` column is used for binding the parameter restriction .

    • Avatar photoCustomer December 15, 2020 at 4:01 am  

      I have a large LOV with thousands of potential values. When users open the report, the run window loads slowly because it tries to fetch all values upfront. How can I optimize this?

    • Support December 16, 2020 at 8:33 am  

      To mitigate performance issues with large LOVs, you should check the ‘Filter Before Display’ setting . By default, this setting is unchecked, and Blitz Report queries all possible parameter values in the background upon selecting the report . Checking ‘Filter Before Display’ forces the user to enter a (partial) value before the LOV is displayed, thereby restricting the dataset queried by the form, which significantly improves the initial load time .

    • Avatar photoCustomer December 17, 2020 at 5:05 am  

      What is the primary difference between using ‘LOV Custom’ and ‘LOV Oracle’ parameter types?

    • Support December 18, 2020 at 7:53 am  

      Both are used for parameter validation . However, the key limitation of ‘LOV Oracle’ is that you cannot directly edit the underlying LOV query from the Blitz Report form, as the value set must be maintained via the standard Oracle Forms interface . Conversely, ‘LOV Custom’ allows immediate, ad hoc SQL modification directly within the Blitz Report interface .

    • Avatar photoCustomer December 19, 2020 at 8:14 pm  

      If I create an LOV Custom and later realize I want to share it, can I convert it to a shared LOV?

    • Support December 20, 2020 at 4:25 pm  

      Yes, if you decide that your custom LOV query would be useful for other report parameters, you can easily promote it to a shared LOV . To do this, click on the ‘Save as shared LOV’ button within the LOV definition window .

Viewing 8 reply threads
  • You must be logged in to reply to this post.

Login with: