Home Discussions Questions & Answers Using Parameter Values for Default Value SQL (Dependent Parameters)

Using Parameter Values for Default Value SQL (Dependent Parameters)

Avatar photoCustomer August 30, 2023 at 3:55 pm

I need to set the default value for Parameter B based on the user’s selection for Parameter A (e.g., defaulting a specific supplier list based on the chosen Operating Unit). How do I reference Parameter A in the default value SQL for Parameter B?

Viewing 4 reply threads
  • Author
    Replies
    • Support September 1, 2023 at 11:35 am  

      To define parameter dependencies in default values, you must use the syntax: :$flex$.parameter_or_lov_name.

    • Avatar photoCustomer September 1, 2023 at 6:23 pm  

      So if Parameter A is ‘Operating Unit’, and I want to append ‘suppliers’, what would the default value SQL look like?

    • Support September 2, 2023 at 5:09 pm  

      The default value should start with ‘select’ if it is derived dynamically. An example using concatenation might be: select :$flex$.operating_unit||’ suppliers’ from dual.

    • Avatar photoCustomer September 3, 2023 at 6:13 am  

      When referencing the parameter name, should I use the exact name, including spaces?

    • Support September 4, 2023 at 8:16 pm  

      The parameter name must be the name in the installed base language (usually US), prefixed with a colon, and with spaces or other non-word characters replaced with a single underscore (e.g., :$flex$.operating_unit).

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

Login with: