1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
|
---|
3 | xmlns:reports="gov.va.med.edp.view.debug.*"
|
---|
4 | width="100%" height="100%">
|
---|
5 | <mx:Script>
|
---|
6 | <![CDATA[
|
---|
7 | import gov.va.med.edp.vo.DebugVO;
|
---|
8 | import gov.va.med.edp.control.reports.ReportEvent;
|
---|
9 | import gov.va.med.edp.model.TrackingModelLocator;
|
---|
10 | import gov.va.med.edp.util.ChangeWatcher;
|
---|
11 |
|
---|
12 | [Bindable]
|
---|
13 | private var model: TrackingModelLocator = TrackingModelLocator.getInstance();
|
---|
14 |
|
---|
15 | private function displayXML(): void
|
---|
16 | {
|
---|
17 | if (networkCallsGrid.selectedItem != null){
|
---|
18 | responseTextBox.text = DebugVO(networkCallsGrid.selectedItem).results;
|
---|
19 | parametersTextBox.text = DebugVO(networkCallsGrid.selectedItem).parameters;
|
---|
20 | requestTextBox.text = DebugVO(networkCallsGrid.selectedItem).request;
|
---|
21 | }
|
---|
22 | }
|
---|
23 |
|
---|
24 | private function clearDebugList(): void
|
---|
25 | {
|
---|
26 | responseTextBox.text = "";
|
---|
27 | parametersTextBox.text = "";
|
---|
28 | requestTextBox.text = "";
|
---|
29 | model.debug.cspServiceCallList.removeAll();
|
---|
30 | }
|
---|
31 |
|
---|
32 | ]]>
|
---|
33 | </mx:Script>
|
---|
34 |
|
---|
35 | <mx:LinkButton label="Clear List" click="{clearDebugList()}" />
|
---|
36 | <mx:DataGrid id="networkCallsGrid" width="100%" height="40%"
|
---|
37 | dataProvider="{model.debug.cspServiceCallList}"
|
---|
38 | click="displayXML()">
|
---|
39 | <mx:columns>
|
---|
40 | <mx:DataGridColumn dataField="url" headerText="Url" />
|
---|
41 | <mx:DataGridColumn dataField="command" headerText="Command"/>
|
---|
42 | </mx:columns>
|
---|
43 | </mx:DataGrid>
|
---|
44 |
|
---|
45 | <mx:TabNavigator id="tn" width="100%" height="100%" creationPolicy="all">
|
---|
46 | <mx:VBox label="Parameters" width="100%" height="100%">
|
---|
47 | <mx:TextArea id="parametersTextBox" width="100%" height="100%"/>
|
---|
48 | </mx:VBox>
|
---|
49 |
|
---|
50 | <mx:VBox label="Request" width="100%" height="100%">
|
---|
51 | <mx:TextArea id="requestTextBox" width="100%" height="100%"/>
|
---|
52 | </mx:VBox>
|
---|
53 |
|
---|
54 | <mx:VBox label="Response" width="100%" height="100%">
|
---|
55 | <mx:TextArea id="responseTextBox" width="100%" height="100%"/>
|
---|
56 | </mx:VBox>
|
---|
57 | </mx:TabNavigator>
|
---|
58 |
|
---|
59 | </mx:VBox>
|
---|