• June 29, 2015 at 12:49 pm #303

    How do I populate a list for the Single Select Control?

    June 29, 2015 at 12:53 pm #308

    1) Ajax Service
    2) Data Mapping
    3) Static List

    Ajax: In order to use the Ajax Service you must first select “Items From Service” under Item Lookup Mode.  Then you would attach an Ajax service to List items Service.  Within the Ajax service you would use a script to pass out data.

    Data Mapping: You can create a list for the single select with data mapping, you would map simple type(list) or complex object(list) to the field Item List.  Under data mapping, put in the properties using the variables that you have defined.

    Static List – drop down the static list in the configuration options and input values in Name and Value

    Stuart Jones
    July 30, 2015 at 9:21 am #539

    Hello,

    On the same subject, I think … I have 2 single select controls. I currently populate both with a List Items Service. I need the contents of the 2nd select control list to be dependent on the value selected for the 1st select. Is there a ‘correct’ pattern for this? I have built a List Items Service for select #2 but, of course, it runs on first load and I need it to run after the first selection is done.

    Thanks

    Stuart Jones

     

    Stuart Jones
    July 30, 2015 at 1:33 pm #541

    Hello,

    I figured this out form an example in the JS Doc. I used an On Change event for List 1, coded as follows:

    ${SubOrganization}.reloadServiceItems(me.getSelectedItem());   … where SubOrganization is the ControlID of my other Single Select Control. I had intended to use the following, but it didn’t work:

    ${SubOrganization}.reloadServiceItems(${SubOrganization}.getServiceInputData());

    Any thoughts as to why this second style doesn’t work?

    Thanks

    Elliot
    July 31, 2015 at 8:25 am #542

    Hey Stuart,

    My first guess why things are not working is that you have the same single select being called twice. I think you meant to do the other one for the first control ID:  ${SubOrganization}.reloadServiceItems(${SubOrganization}.getServiceInputData());

     

    I was wondering if you were using an Ajax Service on your selection to create a return list for the second drop-down? If not, you can use the input of the first selection as the Service Input Data for the List Items Service that we be used to get your second conditional drop-down.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search

istanbul escort ilanlari istanbul escort istanbul escort bayanlarla sevgili tadinda etkilesimler. istanbul escort bayanlar istanbul escort istanbul escort hizmeti icin ideal web sitesi.