Results 1 to 5 of 5

Thread: Migrating from 5.1.1 to 6.2.0 GPL, ComponentQuery changes?

  1. #1
    Sencha User
    Join Date
    Jul 2018
    Posts
    3
    Vote Rating
    0
      0  

    Default Migrating from 5.1.1 to 6.2.0 GPL, ComponentQuery changes?

    The ExtJS app I'm working on uses electron and has to get 'app-main' in many places in the code. ComponentQuery.query no longer returns most items, it won't return app-main, most panels, or much else. Querying by xtype or id or anything is effectively nonfunctional.

    The behavior worked fine in 5.1.1, but there's nothing in the guide or the forums on what's changed that prevents this from working or how to fix it.

    I'd like to update, but this particular part is acting as a hard blocker without any prescribed way to migrate the code.

    Many bits and missing pieces are fixed in 6.5.0 or newer, but using that isn't an option without a GPL version.

  2. #2
    Sencha User
    Join Date
    Jul 2018
    Posts
    3
    Vote Rating
    0
      0  

    Default

    I could really use some help here. I don't think I'm trying to do anything oddball or strange here, if I need a workaround, I'll use a workaround. If I need to redesign something, I'll redesign something, but nothing about ExtJS or Sencha, neither the programs or documentation, or forum posts or Google, are giving any kind of guidance or possible solutions.

  3. #3
    Sencha Premium User
    Join Date
    Sep 2016
    Location
    Kennewick, WA
    Posts
    80
    Answers
    7
    Vote Rating
    6
      0  

    Default

    Do you have examples of how your using Ext.ComponentQuery.query()? Maybe a Fiddle? Something to give more information about the trouble you are experiencing?

  4. #4
    Sencha User
    Join Date
    Jul 2018
    Posts
    3
    Vote Rating
    0
      0  

    Default

    Trying to get the fiddle to do anything when run seems confusing, but as said it's just using 'app-main' as an xtype, and then wanting to match it using query, like query('app-main'). That's how it works in ExtJS 5.x, and doesn't work in 6.2.0.

    ComponentQuery also matches many more things in 5.1.1. I can query for almost anything. For example, in 5.1.1, if I query for xtype panel, I get 33 results. If I do the same on 6.2.0, I get 1 result, and it's not relevant to anything.
    Given that changes to ComponentQuery weren't documented, it's very confusing as to how to replace this with something that works.
    Last edited by TheGoddessInari; 30 Aug 2018 at 1:24 PM. Reason: Further explanation

  5. #5
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,155
    Answers
    744
    Vote Rating
    986
      0  

    Default

    It's going to be difficult unless you post code that demonstrates your problem. Saying that your code doesn't work leaves a whole bunch of possibilities as to the reason.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. Migrating Ext JS 3.4 to 4.1.3 Need Help
    By pareshlahade@gmail.com in forum Ext: Discussion
    Replies: 1
    Last Post: 7 Oct 2015, 10:57 AM
  2. Migrating Ext JS 3 to Ext JS 5
    By houngj in forum Ext 5: Q&A
    Replies: 2
    Last Post: 8 Apr 2015, 2:09 PM
  3. Migrating away from GWT-Ext
    By costa_basil in forum Community Discussion
    Replies: 7
    Last Post: 23 Nov 2009, 11:45 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •