Forum Discussion

FICO's avatar
FICO
Community Manager
15 years ago

Key-Value

Key-Value

Hi All,

If i select one integer means it'll give another integer,

for eg., it has list of two list of integer, if i select 1000 in one list means it has to give that appropriate value as  35 in another list .

how to develop this one. pls give some ideas....

Thanks,

MohKum

3 Replies

  • FICO's avatar
    FICO
    Community Manager

    Hi,

    Association provider? Decision table?

    You have a lot of context for that question, we do not. You will get better help if you provide more information about your problem.

    One essential piece of information is what you are making: an RMA or a rules service.

    Regards,

    Jostein

  • FICO's avatar
    FICO
    Community Manager

    Hi Jostein,

    Thanks for ur reply,

    In RMA, if we select one integer number in list means it has to display that appropriate number.

    for eg, if we select 1000 in tat list means i want to display 35 and if select 100 means it'll display 55, like this .....

    give some ideas ......

  • FICO's avatar
    FICO
    Community Manager

    I'm quite sure I don't understand your actual problem here, so I'm only going to focus on the technical part;

    1. Create a value list (key/value) provider. The key is the value you want to display, the value is the value you want to select.
    2. Create a code template with one value holder, cardinality Single argument, type string. Add a placeholder for the value holder to the display version.
    3. Create a code template with a value holder whose provider/type is the value list provider you just created, and a second value holder whose provider/type is the code template from step 2.
    4. In the arguments for the second value holder, add a dynamic override from the first value holder.
    5. Instantiate & play 

    HTH,

    Jostein