PDA

View Full Version : How to get the final html?



strobelight
3 May 2010, 10:47 AM
The export didn't create any final html so my web browser could render. How do I do that? I saw in a video the use of Aptana (eclipse) and was wondering what plugins or features I need to use with Aptana.

aconran
3 May 2010, 11:32 AM
When you export the project it will generate a reference xds_index.html file for you to start from.

strobelight
3 May 2010, 12:58 PM
Thanks! Didn't catch those files... time to create a subdirectory.

strobelight
3 May 2010, 1:14 PM
on to the next problem... no .show() function.

aconran
3 May 2010, 1:19 PM
What class is being generated that does not have a .show() function?

We have made the decision not to create a subdirectory as it changes the valid path for includes as well as URL paths.

strobelight
4 May 2010, 6:23 AM
It looks like the Ext.data.JsonStore is not providing the .show() function. I'm simply trying to fill a grid with data from a URL providing JSON in the following format:

[
{"cn":"One User", "mail":"one.user@junk.com"},
{"cn":"Another Person", "mail":"another.person@junk.com"}
]

The grid was set with two columns, "Name", and "Email", where "Name" is mapped to "cn", and "Email" is mapped to "mail".

The xds:

{
"name": "deptproject.xds",
"projectId": "412A308D-5A91-443C-9D21-BA03D8555A8D",
"settings": {
"urlPrefix": "http://localhost/",
"directAPI": "",
"spacesToIndent": "4",
"codeGenFormat": "Class",
"extPath": "http://localhost/ext/",
"exportPath": "."
},
"xdsVersion": "xds-1.0.0.9",
"components": [
{
"cid": "grid",
"jsClass": "Dept",
"userConfig": {
"hideHeaders": false,
"header": false,
"store": "Dept",
"width": 426,
"height": 603,
"title": "Dept"
},
"cn": [
{
"cid": "gridcolumn",
"jsClass": "MyColumn",
"userConfig": {
"header": "Name",
"dataIndex": "cn",
"hidden": false
}
},
{
"cid": "gridcolumn",
"jsClass": "MyColumn1",
"userConfig": {
"dataIndex": "mail",
"header": "Email",
"fixed": false
}
}
]
}
],
"stores": [
{
"cid": "jsonstore",
"jsClass": "Dept",
"userConfig": {
"storeId": "Dept",
"url": "http://svtrebootdata/field_data/bin/Ldap2JSON.php?ss=departmentNumber=020022425",
"autoLoad": false
},
"cn": [
{
"cid": "datafield",
"jsClass": "MyField",
"userConfig": {
"name": "cn"
}
},
{
"cid": "datafield",
"jsClass": "MyField1",
"userConfig": {
"name": "mail"
}
}
]
}
]
}

jarrednicholls
4 May 2010, 8:40 AM
Hi strobelight, can you email us your .xds project file so we can take a look and figure out a solution for you? designer.feedback@extjs.com Thanks.

strobelight
4 May 2010, 9:43 AM
Ext.data.JsonStore

aconran
4 May 2010, 11:43 AM
The problem is that you have named both your Grid and your Store with the same jsClass (DeptStore).

Try naming it DeptGrid and DeptStore.