bonjour tout le monde
j'ai crée un script pour l'affichage d'un tableau ,qui se connectera a ma base oracle ..
néanmoins j'ai erreur non localisé dans mon mxml
voici mon code
il génére l'erreur suivante sans pour autant spécifier l'emplacement exact :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66 <?xml version="1.0" encoding="utf-8"?> <s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:view="com.adobe.demo.view.*" width="100%" height="100%" title="Adobe Demo - Found {consultantRecords} consultants." creationComplete="loadBilan();"> <fx:Declarations> <!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). --> <s:RemoteObject id="loaderService" destination="bilanService" result="handleLoadResult(event)" fault="handleFault(event)" showBusyCursor="true" /> </fx:Declarations> <fx:Script> <![CDATA[ import com.adobe.demo.vo.Bilan; import mx.controls.Alert; import mx.managers.PopUpManager; import mx.containers.TitleWindow; import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; [Bindable] private var message:String; [Bindable] private var consultants:ArrayCollection = new ArrayCollection(); [Bindable] private var consultantRecords:int = 0; public function loadConsultants():void { loaderService.getBilan(); } private function handleLoadResult(ev:ResultEvent):void { consultants = ev.result as ArrayCollection; consultantRecords = consultants.length; } private function handleFault(ev:FaultEvent):void { message = "Error: " + ev.fault.faultCode + " - " + ev.fault.faultDetail + " - " + ev.fault.faultString; } ]]> </fx:Script> <mx:VBox width="100%" height="100%"> <mx:Label text="{message}" fontWeight="bold" includeInLayout="false" /> <mx:DataGrid id="dataGrid" width="100%" height="100%" dataProvider="{bilan}" doubleClickEnabled="false" > <mx:columns> <mx:DataGridColumn dataField="type_bilan" headerText="type bilan" width="100"/> <mx:DataGridColumn dataField="date_bilan" headerText="date_bilan" /> <mx:DataGridColumn dataField="date_purge" headerText="date_purge" /> <mx:DataGridColumn dataField="date_maj" headerText="date_maj" /> <mx:DataGridColumn dataField="type_table" headerText="type_table" /> <mx:DataGridColumn dataField="id_eec" headerText="id_eec" /> <mx:DataGridColumn dataField="entete" headerText="entete" /> <mx:DataGridColumn dataField="info" headerText="info" /> </mx:columns> </mx:DataGrid> <mx:ControlBar horizontalAlign="center"> < <mx:Button label="Reload Data" click="loadConsultants()" toolTip="Reload the consultant list from the database." /> </mx:ControlBar> </mx:VBox> </s:Panel>
merci d'avance pour votre aidecaractère ou annotation incorrect(e) détectée(e) dans un bloc de script. Essayez d'entourer le code à l'aide d'un bloc CDATA.
Partager