Hi
I have an editable datagrid which i need to be able to save with other form fields via a cfc in coldfusion.
Basically the aim is that there are a number of locations retrieved via an RO which make up the first column the remaining columns are types of data i.e. demographics, client notes, appointments etc, the idea is that the user tick each of the checkboxes in the grid to indicate that they are happy to share the type of data with those locations. It has to be done this way as the locations may change so there could be two or four or more over time.
the code runs so far runs and looks good but the saving bit is driving me nuts!! please help. thanks in advance :) the code (abreviated for reasons of sanity) is below
public function handleconsentResult(event:ResultEvent):void {
consentDatagrid.dataProvider = event.result;
}
<mx:RemoteObject id="consentQuery"
destination="ColdFusion"
source="Build3.consent"
showBusyCursor="true">
<mx:method name="getconsent" result="handleconsentResult(event)" fault="fault(event)" />
<mx:DataGrid id="consentDatagrid" creationComplete="init()" width="98%" wordWrap="true" textAlign="center">
<mx:columns>
<mx:DataGridColumn headerText="Organisation" width="100" textAlign="left" id="Location" dataField="LocationName" wordWrap="true"/>
<mx:DataGridColumn headerText="Demographics" width="100" wordWrap="true" textAlign="center" itemRenderer="mx.controls.CheckBox" rendererIsEditor="true" editorDataField="ClientDemographics" />
<mx:DataGridColumn headerText="Appointments" width="100" wordWrap="true" textAlign="center" itemRenderer="mx.controls.CheckBox" rendererIsEditor="true" editorDataField="ClientAppointments"/>
<mx:DataGridColumn headerText="Activity" width="70" wordWrap="true" textAlign="center" itemRenderer="mx.controls.CheckBox" rendererIsEditor="true" editorDataField="ClientActivity"/>
<mx:DataGridColumn headerText="Notes" width="50" wordWrap="true" textAlign="center" itemRenderer="mx.controls.CheckBox" rendererIsEditor="true" editorDataField="ClientNotes"/>
</mx:columns>
</mx:DataGrid>