jerrybrown5
02-20-2008, 12:38 AM
Ext Support,
This is more of a feature non-request. Please keep #'s allowed in the element field and the data store column names. In my implementation I bring fields that span multiple database tables into the same store and I need to keep the table marker to greatly ease updates. (And, I don't want to bother with mappings which will create more names for the same fields.) Since the period (.) field is hard coded for a javascript object in the XTemplate, I lost the ability to use that without completely rewriting the compile routine.
To currently support this I perform two quick override commands below, but I'm scared that as you add to Ext.XTemplate you may remove this ability; for example, the following change in Ext.XTemplate.compileTpl would cause me to do a re-write somewhere [name === '#'] to [name.indexOf('#') != -1].
Ext.Template.prototype.re=/\{([\w\#-]+)(?:\:([\w\.\#]*)(?:\((.*?)?\))?)?\}/g;
Ext.XTemplate.prototype.re=/\{([\w-\.\#]+)(?:\:([\w\.\#]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g;
Thanks in advance.
Jerry Brown
This is more of a feature non-request. Please keep #'s allowed in the element field and the data store column names. In my implementation I bring fields that span multiple database tables into the same store and I need to keep the table marker to greatly ease updates. (And, I don't want to bother with mappings which will create more names for the same fields.) Since the period (.) field is hard coded for a javascript object in the XTemplate, I lost the ability to use that without completely rewriting the compile routine.
To currently support this I perform two quick override commands below, but I'm scared that as you add to Ext.XTemplate you may remove this ability; for example, the following change in Ext.XTemplate.compileTpl would cause me to do a re-write somewhere [name === '#'] to [name.indexOf('#') != -1].
Ext.Template.prototype.re=/\{([\w\#-]+)(?:\:([\w\.\#]*)(?:\((.*?)?\))?)?\}/g;
Ext.XTemplate.prototype.re=/\{([\w-\.\#]+)(?:\:([\w\.\#]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g;
Thanks in advance.
Jerry Brown