Select to view content in your preferred language

Passing esri:query results to coldfuion cfc

596
2
07-08-2011 06:04 AM
JohnMcNally
Emerging Contributor
I'm looking to pass values retrieved from a esri:query to a coldfusion cfc in order to retrieve related data from a table that is stored in another data source. has anyone had any success in doing this type of work using and esri:query and coldfusion.

Any insight on the matter would be appreciated.
Tags (2)
0 Kudos
2 Replies
ZahidChaudhry
Deactivated User
I'm looking to pass values retrieved from a esri:query to a coldfusion cfc in order to retrieve related data from a table that is stored in another data source. has anyone had any success in doing this type of work using and esri:query and coldfusion.

Any insight on the matter would be appreciated.

Yes. It is very simple and straightforward. Here is very article to get you going.. you need to do somthing like this

var deptInfo:Object = new Object();
var newDept:Boolean = chNewDept.selected ? true : false;
deptInfo = {
  DepartmentID : cbEditDept.selectedItem.DepartmentID,
  Department : tiEditDeptName.text,
  Division : cbEditDivision.selectedItem.Division,
  newDept : newDept};

ro.saveDepartment(deptInfo);

and here is the cfc part
<cffunction name="saveDepartment">
  <cfargument name="deptInfo" type="struct" required="true">
  ...
</cffunction>

0 Kudos
JohnMcNally
Emerging Contributor
Very helpful! Thanks very much for pointing me in the right direction.
0 Kudos