1 Reply Latest reply on Oct 10, 2006 2:20 PM by Peter Farland

    URL variables

    GeorgeWS Level 1
      How do you get the SupplierID over to the CFC?

      test.cfm?SupplierID=3

      I want to use the RemoteObject but cant seem to get it to send the argument SupplierID. I can get all of the data without issue, also if I put a where clause in my CFC. WHERE SupplierID=3 It works great. My RO is like this:
      <mx:RemoteObject id="qResult" destination"ColdFusion" source="invbl" showBusyCursor="true">
      <mx:method name="inventory" result="handleQueryResult(event)" fault="Alert.show(event.fault.message)">
      <mx:arguments>
      <supplierid>
      {Application.application.parameters.SupplierID}
      </supplierid>
      </mx:arguments>
      </mx:method>
      </mx:RemoteObject>

      Any advice or help would be great.


        • 1. Re: URL variables
          Peter Farland Level 3
          Declare local [Bindable] variables for the values you want and then bind to these instead. You can update these variables in an Application creationComplete handler as you need to wait until after initialization in order for the Application.application.parameters to be available.