Greg, I added trace and I checked both event.message.body and
event.result and both are correct but the structure is different so I
missed the values.
first one is XML, trace (event.result);
second : trace (event.message.body);
May be I should check the why the Tree object s not populated correctly
with the XML.
protected function
treePanelService_resultHandler(event:ResultEvent):void {
trace("treePanelService_resultHandler");
//RO: var treeXml:XML = XML(event.result);
trace (event.result);
trace (event.message.body);
var treeXml:XML = XML(event.message.body);
var treeOpenItems:Object;
treeOpenItems = liveTree.openItems;
try {
liveTreeDP = new XMLList(treeXml);
liveTree.validateNow();
for each(var item:XML in treeOpenItems) {
if(item.name() == "list") {
// trace(treeOpenItems);
liveTree.expandItem(liveTreeDP[0], true);
} else {
liveTree.expandItem(liveTreeDP..jobGroup.(@id == item.@id)[0], true);
}
}
liveTree.validateNow();
} catch(err:Error) {
Alert.show(resourceManager.getString("messages", "jobDetailsError") +
errorString);
trace(err);
}
setSelectedNode();
}
Thanks,
Serkan
9.11.2019 23:57 tarihinde Serkan Taş yazdı:
Hi Greg,
I checked the event.message.body and it is not empty. The value I was
expecting from event.result is stored in body.
Can we say that royale is behaves different from flex implementation ?
Should I switch to body rather than result to get the data ?
Thanks,
Serkan
9.11.2019 21:06 tarihinde Greg Dove yazdı:
Hi Serkan,
Just a quick question.
I understand that you are confirming that event.result is empty in
the result handler. Is event.message.body empty? If it is not, is is
possible for you to post that content please.
thanks
Greg