Search:

Type: Posts; User: KJedi

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. [CLOSED] Error reading data

    There is also a problem with reading nested data. So I had to override read method as well. This code fixed both setAssocName(model) and loading nested data.

    Ext.define('CJ.model.HasOneFix', {
    ...
  2. [CLOSED] Updated JSFiddle URL, new one really contains fix...

    Updated JSFiddle URL, new one really contains fix from the post
    http://jsfiddle.net/bLnv9/1/
  3. [CLOSED] Proposed fix

    Fix demo: http://jsfiddle.net/bLnv9/1/

    Ext.data.association.HasOne::createSetter should be updated and look like this:


    createSetter: function () {
    var me = this,
    ...
  4. [CLOSED] HasOne association is broken! HasOne and Belongs To associations have the same setter

    This example shows the bug clearly: http://jsfiddle.net/YF9sB/1/

    Now let's go a bit deeper into how it should work and why.

    First of all, let's define the terms:
    1) User has many orders means...
  5. Sharing models is not straightforward, but...

    Sharing models is not straightforward, but possible: http://www.sencha.com/forum/showthread.php?280310-Using-shared-models-for-two-apps
    I think same applies to stores.
    So the only open question is...
  6. Replies
    2
    Views
    584

    Guys, I found the solution. In case you need to...

    Guys, I found the solution. In case you need to do something similar, you need to reference model by full name AND require it in the store so it looks like this:
    ...
  7. Replies
    2
    Views
    584

    Using shared models for two apps

    I have set up the sencha workspace and created two apps: frontend and backend. I also have a folder for common components. Here's what directory structure looks like:

    /
    .sencha
    ...
    ...
  8. Sorry, forgot to mention. In order to establish...

    Sorry, forgot to mention. In order to establish dependency, I've edited app/Application.js:

    Ext.define('CJF.Application', {
    name: 'CJF',

    extend: 'Ext.app.Application',

    uses: [
    ...
  9. Build for frontend and backend with shared components

    Hi guys!

    We're building an app that has public part and main one for internal use. They share quite complex form and some utility components and data models.
    I create a workspace, within that...
  10. Replies
    5
    Views
    1,769

    I think that the problem is the way how he...

    I think that the problem is the way how he attaches store to the component. Try creating inline store in the component, something really simple like:

    Ext.define('Myapp.myview', {
    extends:...
  11. Replies
    2
    Views
    647

    Hi, combo in the my.view.A definition is an...

    Hi,

    combo in the my.view.A definition is an instance of Ext.form.field.ComboBox. When you instantiate the my.view.A, you put another instance of the combobox. There is no inheritance.

    If you...
  12. I don't think this is possible in combobox. Can...

    I don't think this is possible in combobox. Can you provide a context please? Why do you need this feature? I'm sure there is another way of achieving what you need.
  13. Replies
    9
    Views
    1,742

    Hi, Unfortunately Sencha doesn't work well...

    Hi,

    Unfortunately Sencha doesn't work well with associations. It does descent job loading them in one go (with a structured package from the server), but cannot save them back. In previous apps we...
  14. Replies
    3
    Views
    1,567

    slemmon is right, ExtJS and browser manages this....

    slemmon is right, ExtJS and browser manages this.
    Are you sure you need 20K records in the store at the same time? I'd better load them from the server on demand or, at worst, used localStorage and...
  15. Replies
    6
    Views
    1,169

    Do you have closeAction: 'hide' in your popup...

    Do you have closeAction: 'hide' in your popup window? And yes, full example would really help. Try jsfiddle for it.
  16. Hi, First of all, I'd stay away from setting...

    Hi,

    First of all, I'd stay away from setting 'id' of the component. This limits usage to only one place. In order to use down() method, assign itemId to the chart or look for it by xtype e.g.
    ...
  17. No, because model being submitted doesn't have...

    No, because model being submitted doesn't have fields with structured data like in your input. I think the only way is to do something about DataWriter that creates the structure to be written and...
  18. Replies
    3
    Views
    1,367

    Mitchell is right. XSS should be filtered out on...

    Mitchell is right. XSS should be filtered out on the server or escaped on the client. While ExtJS offers escaping on the client, I'm advocating for filtering on the server. Ideally - at your...
  19. Replies
    3
    Views
    924

    Hi Dennis, Did you try listening to 'check'...

    Hi Dennis,

    Did you try listening to 'check' event mentioned here: http://dev.sencha.com/playpen/docs/output/Ext.form.Checkbox.html#event-check
  20. Replies
    8
    Views
    3,641

    Where is SDK fro linux???

    I've installed it previously, but now can't find SDK for linux!
    What is the reason for discontinuing the support for linux?
  21. I confirm this. Not sure this has anything to do...

    I confirm this. Not sure this has anything to do with the card layout. I think Sencha guys use macs and iphones and simply ignore this problem which is already there for 1.5 years.

    Not sure how to...
  22. I have the same issue. Cordova works fine, but...

    I have the same issue. Cordova works fine, but all phonegap plugins must be ported, so you have to stick to Phonegap 1.4.1.
    I think, problem with Phonegap is in Sencha as well, because it has some...
  23. Replies
    3
    Views
    1,051

    I've just tested this on mac mini 2.4 core 2 duo...

    I've just tested this on mac mini 2.4 core 2 duo with 2 GB memory.
    Yes, it's not brand-new, but this is only tab switching!!!!
  24. Replies
    3
    Views
    1,051

    Rendering is slow. You cannot make it faster....

    Rendering is slow. You cannot make it faster.
    What's going on there? AJAX query when you switch the tab?

    I just think that you there use brand-new Macs and do not notice your apps are def slow on...
  25. Replies
    11
    Views
    4,760

    Well, segmented button is a bit overkill... BU I...

    Well, segmented button is a bit overkill... BU I will go this way if I don't find a different one.

    Mitchell, pressedCls is a class that Sencha adds to the button element when user clicks on it....
Results 1 to 25 of 145
Page 1 of 6 1 2 3 4