Support

Expand all | Collapse all

Lookup Type List

  • 1.  Lookup Type List

    Posted 6 days ago
    Hello,

    before update to new Velocity I was using HibLookupTypeDaoImpl::getLookupTypeList(int scope, int refId) function to get all Pick Lists defined across organization. I tried to get the same by calling $documentSource.getLookupTypeList(int scope, int refId) but it seems not to have this function. Does anybody know how to retrieve same info now?

    Thank you for any advice.
    Kind regards,
    Roman

    ------------------------------
    Roman Sickaruk
    ON Semiconductor
    roman.sickaruk@onsemi.com
    ------------------------------


  • 2.  RE: Lookup Type List

    Posted 5 days ago
    Hi Roman:

    I would try $documentSource.getLookupList(int type)

    Best,

    ------------------------------
    Chloe Elliott
    Jama Software
    Portland OR
    ------------------------------



  • 3.  RE: Lookup Type List

    Posted 4 days ago
    Hello @Chloe,

    Thank you for your advice.
    I ended up using this exact function.
    I get the Item Type Map for the Organization, iterate over item types and fields looking for Lookup or Multi fields and retrieving the int type parameter as LookupId.

    This way I get all used Lookups (Pick Lists)​. However, with function mentioned in post root I was able to retrieve all (even unused) Lookups. Is there a way to achieve same result, please?

    Thank you again.
    Kind regards,
    Roman

    ------------------------------
    Roman Sickaruk
    ON Semiconductor
    roman.sickaruk@onsemi.com
    ------------------------------



  • 4.  RE: Lookup Type List

    Posted 4 days ago
    Roman:

    Hmm, I don't seem to have a direct answer for this. There seems to be about three calls that have to do with lookups in the $documentSource, I wonder if there is something there to be used?

    Best,

    ------------------------------
    Chloe Elliott
    Jama Software
    Portland OR
    ------------------------------