1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    gergar28 is on a distinguished road

      0  

    Default About bug codename: TOUCH-1351

    About bug codename: TOUCH-1351


    Hi everyone, i'm a college guy and i try to make a little project. I want read (and parse) pentaho solution repository webservice (pentaho/SolutionRepositoryService?component=getSolutionRepositoryDoc) and build this repository with nestedList and treeStore, but the treeStore, reader.Xml or nestedList don't work. The result is a simple list of all elements in repository (don't recognize tree structure). I know this has already been reported in this thread. I ask to Ed Spencer on twitter and he said that TOUCH-1351 bug is in the 2.1 list :S (ouch! for me). And the question is: ¿Can anyone helpme to find some way to avoid this bug?.
    Atte. Gerardo garrido. Chile
    PD: I read thx xml in the same way it does in the thread of the bug (
    TOUCH-1351
    )
    PD2: I convert xml to json and its works (sencha love json)
    PD3: sorry for my bad bad bad english.



  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,004
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The only way to not have this happen is the nested elements in your XML must not match. The targeting of the correct level in the XML reader has this bug. In the bug report thread you referred to they use <category> at two different levels and this is where the bug in XML reader presents itself.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    gergar28 is on a distinguished road

      0  

    Default


    Yes, pentaho webservice repository have this structure:
    HTML Code:
    <repository>
         <file name="I'm directory" isDirectory="true">
                <file name="I'm file" isDirectory="false" />
                <file name="I'm file 2" isDirectory="false" />
         </file>
         <file name="I'm directory 2" isDirectory="true">
                <file name="I'm file 3" isDirectory="false" />
         </file>
         ...
         ...
     </repository>
    It's similar structure of the bug that i meant. Maybe i'm death.
    You have any idea form solving this issue?
    ​Thanks in advance!

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    gergar28 is on a distinguished road

      0  

    Default


    Bump

  5. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,004
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The core dev assigned the bug has not worked on it yet.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  6. #6
    Sencha User
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    gergar28 is on a distinguished road

      0  

    Default


    i trying to solved this issue converted the response xml to json object.


    but i dont know how put this object into the treestore, can you tell if this solution is possible and how put the object in treestore


    var data = function RespuestaJson(){
    Ext.Ajax.request({
    url: 'url',
    params: {
    component: 'getSolutionRepositoryDoc',
    userid: 'joe',
    password: 'password'
    },
    method: 'GET',
    success: function(response, opts) {
    me.respJson = me.ConvertXmlToJson(response.responseXML);
    }
    });
    };


    the function ConvertXmlToJson return object json


    please any help about this issue i will be greatful


    regards

Thread Participants: 1

Tags for this Thread