-
3 Jan 2012 11:33 AM #1
Data Model Validations: Format Validation
Data Model Validations: Format Validation
Does not have a Property for matcher regex.
-
10 Jan 2012 3:20 PM #2
Please post a code snippet of what you are looking to define in the Designer that you are unable to.
Aaron Conran
@aconran
Sencha Architect Development Team
-
12 Jan 2012 7:01 AM #3
http://www.sencha.com/learn/using-va...n-sencha-touch
format with a "matcher"
There is no matcher property on the Format Validation Component.
Code:Ext.ns('MyApp'); MyApp.Product = Ext.regModel('Product', { fields: [ {name: 'id', type: 'int'}, {name: 'user_id', type: 'int'}, {name: 'name', type: 'string'}, {name: 'price', type: 'float'}, {name: 'sku', type: 'string'} ], validations: [ {type: 'presence', name: 'name'}, {type: 'format', name: 'sku', matcher: /[0-9]{4}[A-Z]+/}, {type: 'length', name: 'name', min: 3} ], proxy: { type: 'localstorage', id : 'products' } });
-
14 Mar 2012 11:16 AM #4
Tried adding matcher with the filter box
Tried adding matcher with the filter box
I tried adding a matcher by typing it in the filter list box and clicking the add button, it puts the value inside tics though so regular expressions don't work. Manually taking the tics out in the code works but of course designer saves over it. Adding it to the file outside of designer works but then designer doesn't see it when the project is loaded.
Is there a way to add something with the filter box without designer putting quotes around it in the code?
You found a bug! We've classified it as
DSGNR-1120
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.



Reply With Quote