0 Replies Latest reply on Oct 6, 2009 7:18 PM by RedOctober57

    Populating a combobox list with XML returned from a CF9 function.

    RedOctober57

      In the training video "Introducing data retrieval and handling using HTTPService", a combobox is having it's drop down list populated from an XML file.  I want to do the same thing, except I want to populate from XML stored in a CF9 function.  The following function does not allow FB4 to use it as a data source for the combo box in FB4, in design time. The "Configure return type" wizard always says that it returns an Object, which can't be used as a data source for the combo box.  What am I doing wrong?

       

      The CF9 Function:

       

          <!--- Fetch the list of custom search functions --->
          <cffunction name="getSrchFncNms" output="false" access="remote" returntype="any">
              <cfxml variable= "xmlFncs">
                  <?xml version='1.0' encoding='utf-8' ?>
                  <xmlFnc>
                      <functions>
                          <fnc_nm>@AllFromPeers</fnc_nm>
                          <fnc_nm>@Past30Days</fnc_nm>
                          <fnc_nm>@Past7Days</fnc_nm>
                          <fnc_nm>@Today</fnc_nm>
                          <fnc_nm>@Yesterday</fnc_nm>
                          <fnc_nm>@AddedOnDate:</fnc_nm>
                          <fnc_nm>@AddedInDateRange:</fnc_nm>
                          <fnc_nm>@PhotosBy:</fnc_nm>
                      </functions>
                  </xmlFnc>
              </cfxml>
          <cfreturn xmlFncs>
          </cffunction>

       

      Thanks in advance.