Clarity

  • 1.  Parameterised Lookup

    Broadcom Employee
    Posted May 25, 2016 06:45 AM

    Hi All,

     

    Can any one please let me know the syntax to use multi valued attribute as a parameter in the lookup.

     

    Thanks in Advance.



  • 2.  Re: Parameterised Lookup

    Posted May 25, 2016 07:00 AM

    Perhaps use the object id as the parameter and use that in your NSQL to read the multi-valued attributes from the database table (ODF_MULTI_VALUED_LOOKUPS)



  • 3.  Re: Parameterised Lookup

    Broadcom Employee
    Posted May 25, 2016 07:12 AM

    But I may get more than one value from the multi valued table and the '=' will not work when equating to the respective field.



  • 4.  Re: Parameterised Lookup

    Posted May 25, 2016 07:25 AM


  • 5.  Re: Parameterised Lookup

    Posted May 25, 2016 08:27 AM

    navzjoshi00 wrote:

     

    Same as this ?

     

    https://communities.ca.com/message/12792918#comment-12792918

     

    NJ

    No - that other discussion is using multi-valued lookups in portlets, this discussion is about parametrised lookups I think (i.e. on an object).



  • 6.  Re: Parameterised Lookup
    Best Answer

    Posted May 25, 2016 08:26 AM

    SQL for equality of multiple values is "IN" not "="

     

    To be clear, I am suggesting that the parameter is still a single value (the object id), the SQL in the lookup is where you would use the "IN" (when referring to values in the ODF_MULTI_VALUED_LOOKUPS table).



  • 7.  Re: Parameterised Lookup

     
    Posted Jun 07, 2016 05:14 PM

    Hi Jaya - Did Dave's response answer your question? If so please mark it as Correct Answer. Thanks!