06-22-2008 09:36 AM
06-22-2008 11:36 AM
06-22-2008 03:49 PM
06-23-2008 06:02 AM
<mxcript>
<![CDATA[
import …..
[Bindable]
private var searchFeed:ArrayCollection;
public function rechercher():void
{
var urltring = "http://localhost:8080/alfresco/service/proinvest/search";
var webScript:WebScriptService = new WebScriptService(url, WebScriptService.GET, onSearchSuccess);
// Build the parameter object
var paramsbject = new Object();
params.q = searchTerms.text;
// Execute the web script
webScript.execute(params);
}
public function onSearchSuccess(eventuccessEvent):void
{
event.result.resultset as ArrayCollection ;
}
]]>
</mxcript>
<mx:HBox>
<mx:Label text="Terme a rechercher:" />
<mx:TextInput id="searchTerms"
enter="rechercher()" />
<mx:Button label="ok"
click="rechercher()" />
</mx:HBox>
<mx:TileList width="100%" height="100%"
dataProvider="{searchFeed}"
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
width="125" height="125"
horizontalAlign="center"
horizontalScrollPolicy="off" verticalScrollPolicy="off"
paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="5">
<mx:Text text="{data.credit}" />
</mx:TileList>
</mx:Application>
06-24-2008 07:29 AM
06-24-2008 09:12 AM
protected var nodeCollection:ArrayCollection;
var xmlData:XML = result as XML;
var nodeXMLCollection:XMLListCollection = new XMLListCollection(xmlData.node)
nodeCollection = new ArrayCollection();
for each (var xmlNode:XML in nodeXMLCollection)
{
var node:Node = new Node();
node.name = xmlNode.name;
….
nodeCollection.addItem(node);
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.