Topic
  • 4 replies
  • Latest Post - ‏2014-04-03T02:47:04Z by CQAdmin
RATNAKAR
RATNAKAR
67 Posts

Pinned topic Add dynamic list value using choice list hook

‏2014-03-29T14:13:51Z |

I want to know how to code the logic in red for a choice list hook. I coded such logic long ago and now I forget how I did this :(

    Field_A= GetFieldValue("Citrix_Access").GetValue()
        If Field_A= "Yes" Then   
        choices.additem("Choice 1")
        choices.additem("Choice 2")
        choices.additem("Choice 3")
        else

Get the values from a dynamic list named "List"

End If

  • GlennSkinner
    GlennSkinner
    58 Posts

    Re: Add dynamic list value using choice list hook

    ‏2014-03-31T15:24:31Z  

    Hi Ratnakar

    You would use the GetListMembers command

    sessionObj.GetListMembers(list_name)

     

    Glenn

  • CQAdmin
    CQAdmin
    103 Posts

    Re: Add dynamic list value using choice list hook

    ‏2014-04-02T04:56:55Z  

    This tech note will surely give you an idea-

    http://www-01.ibm.com/support/docview.wss?uid=swg21655161

  • RATNAKAR
    RATNAKAR
    67 Posts

    Re: Add dynamic list value using choice list hook

    ‏2014-04-03T02:05:58Z  

    Hi Ratnakar

    You would use the GetListMembers command

    sessionObj.GetListMembers(list_name)

     

    Glenn

    Yes! GetListMembers followed by for loop to consider all result set worked!

     

    Thank you

  • CQAdmin
    CQAdmin
    103 Posts

    Re: Add dynamic list value using choice list hook

    ‏2014-04-03T02:47:04Z  
    • RATNAKAR
    • ‏2014-04-03T02:05:58Z

    Yes! GetListMembers followed by for loop to consider all result set worked!

     

    Thank you

    That's Great.

    :-)