• Mohammad Afaneh
    May 15, 2016 at 12:34 pm #1795

    The list of name value pairs (complex objects) bound with the Single Select control of SPARK doesn’t retain the selected value while it works fine for simple strings list.

    Rackley Boren
    May 22, 2016 at 8:55 pm #1840

    Hi Mohammad,

     

    Take a look at the Single Select KB article, specifically example 4. It may help you sort out your binding issues. I checked and have no issues binding to either a  String variable or a NameValuePair variable when selecting from a list of NameValuePair.

     

    Regards,

    Rackley Boren

    Jacob Edelman
    September 15, 2016 at 1:02 pm #2650

    I am having a similar issue.  I am binding my Single Select control to a String BO.  The values for population are configured to use a service that returns a List of NVP.

     

    The BO is initialized to a Value of Existing, which is one of the options returned from the AJAX service.  Upon initial coach load, nothing appears in the control as selected.  But I can see the choices when I click the control down arrow.

     

    This works fine if I use a local list instead of AJAX and configure using the “Items from Config Option”

    SPARK Support
    September 15, 2016 at 3:54 pm #2654

    Hello Jacob,

    I am attempting to recreate your issue in our Test Environment. I have the Single Select control bound to a String in a Business Object, with an AJAX service populating the List of Items. In my test harness, I am using the On Service Items event to set the selected item with me.setSelectedItem(“Choice 1”);. This populates the initial choice when the items are loaded.

    Can you provide a screen shot of how you are configuring the control and service?

    Regards,

    Stephen P.

    Jacob Edelman
    September 16, 2016 at 11:25 am #2664

    Nevermind, I found my issue (an extra line break in my Resource Bundle)…

    SPARK Support
    September 16, 2016 at 12:25 pm #2667

    Hi Jacob,

    I’m glad you found it.

    Regards,

    Stephen P.

    Mohammad Afaneh
    September 18, 2016 at 10:42 pm #2674

    Hello Jacob,

     

    Can you please show me what was the problem?

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

You must be logged in to reply to this topic.

Start typing and press Enter to search