2 Replies Latest reply on Feb 13, 2009 9:48 AM by buyusedtoyota

    flex & cf 6, am i missing something - code snippet

      So my first attempt at this, and I wondering if I'm missing something....

      Flex Builder 3 app, calling a cfm proc on a CF6 server. Code snippet below. Just a simple call to return some CGI vars as a test.

      I'm not getting my datagrid populated, not sure if it's just not communicating, or what. Thanks for any suggestiongs, or help.

      ---- mxml code ----

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="userRequest.send()">

      <mx:HTTPService id="userRequest" url=" http://xxxxxx.com/test/cgi-vars-for-flex.cfm"
      useProxy="false" method="POST">

      <mx:DataGrid id="dgUserRequest" x="10" y="10" dataProvider="{userRequest.lastResult.cgi.vars}" height="142">
      <mx:DataGridColumn headerText="CGI Variable" dataField="name"/>
      <mx:DataGridColumn headerText="Value" dataField="value"/>

      <mx:Form x="10" y="10" width="100">
      <mx:Button label="Refresh" click="userRequest.send()" x="10" y="160"/>


      ---- cgi-vars-for-flex.cfm ----

      <cfprocessingdirective pageencoding = "utf-8" suppressWhiteSpace = "Yes">
      <cfxml variable="cgiXML">

      <!--- <cfdump var=#cgiXML#> --->