I have copied the getView_ByID function and recoded the copy to filter by a
specific field rather than the ID by changing the following...
public function getView_heatingByID($itemID) {
-to->
public function getView_heatingByName($itemID) {
$stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where
heating_id=?");
-to->
$stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where
heating_name=?")
mysqli_stmt_bind_param($stmt, 'i', $itemID);
-to->
mysqli_stmt_bind_param($stmt, 's', $itemID);
...and the service runs fine as far as the Test goes with in Flash Builder 4's
Test Operation panel.
-But->
The callResponder does not return a ValueObject like it would if I had simply
requested it by using service.getView_heatingByID?
<s:CallResponder id="getView_heatingByNameResult" result="callResponder2();"/>
protected function callResponder2():void
{
var x:Object = getView_heatingByNameResult.lastResult;
view_heating = x as View_heating;
}
What I should get is...
valueObjects.View_heating (@113479e9)
[inherited]
_115792uid "view_heatingRPCDataManager:#:1"
_1464461640heating_name "Forced Air"
_1471128022_model
_View_heatingEntityMetadata (@11226fb1)
not...
mx.utils.ObjectProxy (@af3bf29)
dispatcher flash.events.EventDispatcher (@af3bf71)
listeners null
heating_id 1
heating_name "Forced Air"
_id null
Can someone explaine how I can get the valueObject as this object can not be
force to conform to a valueObject as I have tried with no luck.
Thanks for any help recieved, this one is a puzzler!
- Stephen