As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<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>
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); }