1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    982
    Vote Rating
    47
    ssamayoa has a spectacular aura about ssamayoa has a spectacular aura about

      0  

    Default Feature request: custom VTypes

    Feature request: custom VTypes


    For now Designer only allows standard vtypes in text fields and I have various custom vtypes.

    To use them I had to create custom components.

    Regards.
    UI: Sencha Architect 2.x / ExtJS 4 MVC
    Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
    Application Server: Glassfish 3.1.x
    Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5

    If you like my answer please vote!

  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,282
    Vote Rating
    34
    Phil.Strong has a spectacular aura about Phil.Strong has a spectacular aura about

      0  

    Default


    Can you use overrides in this case?
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    982
    Vote Rating
    47
    ssamayoa has a spectacular aura about ssamayoa has a spectacular aura about

      0  

    Default


    Quote Originally Posted by Phil.Strong View Post
    Can you use overrides in this case?
    Yes if you create a custom component, trickly if you do at container level.

    Regards.
    UI: Sencha Architect 2.x / ExtJS 4 MVC
    Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
    Application Server: Glassfish 3.1.x
    Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5

    If you like my answer please vote!

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2011
    Posts
    36
    Vote Rating
    1
    maikhorma is on a distinguished road

      0  

    Default


    +1 for this. I've got a fairly large project and I prefer not to have to make extra classes just to set one property. Right now I'm using a slightly different workaround (below), but this feature would obviously be better.

    On my fields that need custom validator i create a 'beforereneder' event handler and put:
    var me = abstractcomponent;
    me.vtype = 'customValidator';


    Works for me so far, and it's in one place.

  5. #5
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    23
    Vote Rating
    4
    bill@perdasys.com is on a distinguished road

      0  

    Default


    This is such a simple change for Senca to make in Architect. Just allow users to type in a vtype name in addition to selecting from the drop-down list. Having to code a before-render event just to force in a vtype is a pain and makes for messy code.

    Please Sencha, Add this to the next build.

  6. #6
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,282
    Vote Rating
    34
    Phil.Strong has a spectacular aura about Phil.Strong has a spectacular aura about

      0  

    Default


    this feature is included in the 2.2 release (next release)
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team