Posted in: SPARK UI Use Cases
Mohammad AfanehMay 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 BorenMay 22, 2016 at 8:55 pm #1840
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.
Rackley BorenJacob EdelmanSeptember 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 SupportSeptember 15, 2016 at 3:54 pm #2654
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?
Stephen P.Jacob EdelmanSeptember 16, 2016 at 11:25 am #2664
Nevermind, I found my issue (an extra line break in my Resource Bundle)…SPARK SupportSeptember 16, 2016 at 12:25 pm #2667
I’m glad you found it.
Stephen P.Mohammad AfanehSeptember 18, 2016 at 10:42 pm #2674
Can you please show me what was the problem?
You must be logged in to reply to this topic.