0 Replies Latest reply on Jul 21, 2008 5:52 AM by wkolcz

    Inserting via ColdFusion

    wkolcz Level 1
      I am attempting to invoke a create CFC function using the form elements in my Flex. I think I am missing [Bindable] tags (judging by some of the examples I have seen, but I am not sure). I have my RemoteObject:

      <mx:RemoteObject id="projectDAO" destination="ColdFusion" source="projectmanager.edu.umich.projectDAO" fault="Alert.show(event.fault.message), 'Error'">
      <mx:method name="create" fault="Alert.show(event.fault.message), 'Error'" result="closeWindow(event)">
      <mx:arguments>
      <projectName>{frmprojectTitle.text}</projectName>
      <teamID>1</teamID>
      <clients>{frmclient.text}</clients>
      <dateRequested>{frmRequestDate.text}</dateRequested>
      <dueDate>{frmDueDate.text}</dueDate>
      <status>{frmStatus.text}</status>
      <assigned>{frmProjectTeam.selectedItem.uniqname}</assigned>
      <projectLead>{frmProjectLead.text}</projectLead>
      <description>{frmdescription.text}</description>
      <priority>{frmPriority.text}</priority>
      <devURL>{frmdevURL.text}</devURL>
      <testURL>{frmTestURL.text}</testURL>
      <finalURL>{frmliveURL.text}</finalURL>
      </mx:arguments>
      </mx:method>
      </mx:RemoteObject>

      And I am invoking it via the click attribute of the button:

      <mx:Button label="Add New Project" click="projectDAO.create(event)"/>

      But I am getting this error:
      faultCode:Server.Processing faultString:'Unable to invoke CFC - The PROJECTNAME parameter to the create function is required but was not passed in.' faultDetail:'For details, turn on Robust Exception Information in the ColdFusion Administrator'

      Any ideas on what the problem is or where to look? Thanks!