]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * This example shows how to load a grid with SOAP data, and how to use a SOAP reader to\r | |
3 | * parse records from an xml response that contains namespace prefixes.\r | |
4 | *\r | |
5 | * SOAP support is available only in the Enterprise Edition.\r | |
6 | */\r | |
7 | Ext.define('KitchenSink.view.enterprise.SoapGrid', {\r | |
8 | extend: 'Ext.grid.Panel',\r | |
9 | xtype: 'soap-grid',\r | |
10 | \r | |
11 | //<example>\r | |
12 | otherContent: [{\r | |
13 | type: 'Model',\r | |
14 | path: 'classic/samples/model/SoapBook.js'\r | |
15 | },{\r | |
16 | type: 'Data',\r | |
17 | path: 'data/enterprise/soap.xml'\r | |
18 | }],\r | |
19 | //</example>\r | |
20 | width: 600,\r | |
21 | height: 350,\r | |
22 | \r | |
23 | frame: true,\r | |
24 | title: 'Soap Grid Example',\r | |
25 | store: {\r | |
26 | model: 'KitchenSink.model.SoapBook',\r | |
27 | autoLoad: true,\r | |
28 | proxy: {\r | |
29 | type: 'soap',\r | |
30 | url: 'data/enterprise/soap.xml',\r | |
31 | api: {\r | |
32 | read: 'ItemSearch'\r | |
33 | },\r | |
34 | soapAction: {\r | |
35 | read: 'http://webservices.amazon.com/ItemSearch'\r | |
36 | },\r | |
37 | operationParam: 'operation',\r | |
38 | extraParams: {\r | |
39 | 'Author': 'Sheldon'\r | |
40 | },\r | |
41 | targetNamespace: 'http://webservices.amazon.com/',\r | |
42 | reader: {\r | |
43 | type: 'soap',\r | |
44 | record: 'm|Item',\r | |
45 | idProperty: 'ASIN',\r | |
46 | namespace: 'm'\r | |
47 | }\r | |
48 | }\r | |
49 | },\r | |
50 | columns: [\r | |
51 | {text: "Author", flex: 1, dataIndex: 'Author'},\r | |
52 | {text: "Title", width: 180, dataIndex: 'Title'},\r | |
53 | {text: "Manufacturer", width: 115, dataIndex: 'Manufacturer'},\r | |
54 | {text: "Product Group", width: 125, dataIndex: 'ProductGroup'}\r | |
55 | ]\r | |
56 | });\r |