1. #1
    Sencha User strobelight's Avatar
    Join Date
    Apr 2010
    Posts
    21
    Vote Rating
    0
    strobelight is on a distinguished road

      0  

    Default How to get the final html?

    How to get the final html?


    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.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,190
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    When you export the project it will generate a reference xds_index.html file for you to start from.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User strobelight's Avatar
    Join Date
    Apr 2010
    Posts
    21
    Vote Rating
    0
    strobelight is on a distinguished road

      0  

    Default


    Thanks! Didn't catch those files... time to create a subdirectory.

  4. #4
    Sencha User strobelight's Avatar
    Join Date
    Apr 2010
    Posts
    21
    Vote Rating
    0
    strobelight is on a distinguished road

      0  

    Default


    on to the next problem... no .show() function.

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,190
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    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.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  6. #6
    Sencha User strobelight's Avatar
    Join Date
    Apr 2010
    Posts
    21
    Vote Rating
    0
    strobelight is on a distinguished road

      0  

    Default


    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"
    }
    }
    ]
    }
    ]
    }

  7. #7
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD.
    Posts
    1,745
    Vote Rating
    5
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    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.

  8. #8
    Sencha User strobelight's Avatar
    Join Date
    Apr 2010
    Posts
    21
    Vote Rating
    0
    strobelight is on a distinguished road

      0  

    Default


    Ext.data.JsonStore

  9. #9
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,190
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    The problem is that you have named both your Grid and your Store with the same jsClass (DeptStore).

    Try naming it DeptGrid and DeptStore.
    Aaron Conran
    @aconran
    Sencha Architect Development Team