Results 1 to 3 of 3

Thread: field definitions in Mixin behave different than written in a plain model definition

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2014
    Posts
    81

    Default field definitions in Mixin behave different than written in a plain model definition

    I've a source code generator, which generates ExtJS source code for Models. I've added a new source code generation option - the generator produces can two files:

    a) the plain model file containing the class - but more or less empty. It just uses file b)

    b) a mixin file containing all field definitions for a model

    The stuff is working ok, but then I noticed an error. I have a field definition like below. When created in the plain model file the system works without problems. When written in the Mixin file the values are not converted and errors occur. I added convert methods, but they are NOT called (when written in the mixin).

    The ExtJs version used here is

    6.0.1.250
    {
    name: 'lastActivity',
    type: 'date',
    dateFormat: 'time'
    }

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579

    Default

    Do you have an example of how the mixin is being defined and used?
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  3. #3

Similar Threads

  1. Importing model definitions
    By Dumas in forum Ext Designer: Help & Discussion
    Replies: 10
    Last Post: 30 Jul 2012, 11:30 AM
  2. [FIXED] Model field Definitions
    By markofsine in forum Sencha Architect 2.x: Bugs
    Replies: 1
    Last Post: 6 Mar 2012, 11:29 AM
  3. [FIXED] Model definitions are not editable and do not follow same pattern as view and store
    By markofsine in forum Sencha Architect 2.x: Bugs
    Replies: 2
    Last Post: 28 Feb 2012, 11:27 PM
  4. Plugin or Mixin That allows a DataView to behave like a carousel
    By oddz in forum Sencha Touch 2.x: Discussion
    Replies: 3
    Last Post: 16 Feb 2012, 11:15 AM
  5. Model field definition requiring another class....
    By bodyboarder20 in forum Ext: Q&A
    Replies: 2
    Last Post: 29 Sep 2011, 11:26 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
  •