BPM, Workflow, and Case

 View Only
  • 1.  How to get Selection type BO items in a NameValuePair list?

    Posted Fri May 13, 2022 03:43 AM
    Hi All,

    Is there any trick to get the items of a Selection validation of a Selection type BO into a NameValuePair list at runtime? I mean this list:

    Thx,

    ------------------------------
    Laszlo
    ------------------------------


  • 2.  RE: How to get Selection type BO items in a NameValuePair list?

    IBM Champion
    Posted Fri May 13, 2022 08:09 AM
    Hi Laszlo,

    First of all, selection type is a simple type not exactly a list of complex object.
    In coach, the variable would appear as a dropdown when associated with a coach view. 
    I don't think it is possible to get the values in a NameValuePair list.


    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 3.  RE: How to get Selection type BO items in a NameValuePair list?

    Posted Fri May 13, 2022 08:22 AM
    Yes, I know, but hoped that there is a built-in function to get the choices from the BO schema...

    ------------------------------
    Laszlo
    ------------------------------



  • 4.  RE: How to get Selection type BO items in a NameValuePair list?

    IBM Champion
    Posted Fri May 13, 2022 09:33 AM
    There is no official API I believe but nothing is impossible technically :)
    You can query LSW_CLASS table with the BO name and get either XML_DATA/JSON_DATA, then you can parse the result to get the list of values.

    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 5.  RE: How to get Selection type BO items in a NameValuePair list?

    Posted Fri May 13, 2022 09:36 AM
    Well, that's a good idea.
    Thx,

    ------------------------------
    Laszlo
    ------------------------------