Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
bfifield #1
reusing RemoteObject methods
Hi,
I'm using a RemoteObject (userService.CFC) to return data to combo-boxes.
I would like to populate several arrays using the same method with different
parameters
i.e.
userService.getUsersByDept('Marketing') or
userService.getUsersByDept('Finance')
My question is, what is the best method to handle the return set?
I don't think that something like
myArray = userService.getUsersByDept('Marketing') as Array;
will work correctly, but I can't figure out how to handle populating
different arrays with something like
<mx:method name="getUsersByDept" result="handleReturnedUserResult(event)"
..../>
and keep the function and eventhandler generic. I don't want to have to
hard-code the event handler with specific cases.
Thanks, and any suggestions will be greatly appreciated.
bri
<mx:method name="getUsersByDept" result="handleReturnedUserResult(event)" .../>
bfifield Guest
-
Reusing a Result Set
Hi, Lets say I have the following: <cfquery datasource="#data#" name="getData"> Select * from emp </query> Within the page I can use this... -
Reusing Columns in the same row
Hello, I need to do something like mentioned below: I have a table of 5 rows and 10 columns. I need to print the results (coming from db) in... -
Reusing Parameters across web methods
I have a WSDL interface written by our customer. I want to create our own web service instance that we can test our software against. So I used... -
#26350 [NEW]: Inherited methods can't access private methods
From: forseti at oak dot rpg dot pl Operating system: Windows 98 SE PHP version: 5.0.0b2 (beta2) PHP Bug Type: Zend Engine 2... -
Aliased setter methods behave differently than other methods?
Here's another question... I am aliasing and redefining certain methods, determined at runtime. Normal methods work fine, but methods ending in '='... -
Bryan Dresselhaus #2
Re: reusing RemoteObject methods
userService.cfc should return a struct with two properties. The first should
be the destination of the data (which combo box). The second should be the
query recordset.
Then when you receive the resultEvent to handleReturnedUserResult, you'll need
to check the message body's destination property to determine what combobox in
flex should have its dataProvider set. You can do this using if else
statements or some sort of dynamic evaluation.
Bryan Dresselhaus Guest



Reply With Quote

