tags:

views:

14

answers:

0

I've got flex 4 and am trying to connect to a php dataservice. I've got paging enabled and have tweaked the default paging method so I can filter the results, ala "SELECT name, form FROM $this->tablename WHERE id='$q' LIMIT ?, ?". When I test the call via the built-in test function in Flex I get the results I want when I put in a filter variable.

However, I am now trying to attach the results to a datagrid. I've got the following code:

public var myCustomID:String='90210';

protected function GetCustomers(event:Event):void { getSecByIDResult.token = dataMonkey.get_paged_filtered(myCustomID); }

I am getting the error "1061: Call to a possibly undefined method get_paged_filtered through a reference with static type service..."

Why does it work in the test but not when I try to put it in a datagrid.