1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    330
    Vote Rating
    0
    Jack_S is on a distinguished road

      0  

    Default UX - DataTime field - Air Violation - add UX to precompile formats?

    UX - DataTime field - Air Violation - add UX to precompile formats?


    Hello All,

    I'm using SAKI's date&time field ux. I'm getting problems with the Air acces violation.

    I know this has to do with the precompiled formats for the component itself.

    Code:
    Date.precompileFormats("D n/j/Y|n/j/Y|j/n/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|YmdHis|m/d/Y|m/d/y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|Y-m-d H:i:s|d/m/y|d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|l|D m/d|D m/d/Y|F d, Y|l, F d, Y|H:i:s|g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H|gi a|hi a|giA|hiA|gi A|hi A|y|Y-m|m|D|Y|F|M|F Y|M Y|M y|Y/m/d H:i|m/y|m Y|m/d/Y H:i|YmdHi|Ymd|d/m/Y H:i:s|c");
    // parse all formats and altFormats of TimeField and DateField
    Date.precompileFormats(Ext.form.TimeField.prototype.initDateFormat + " " + (Ext.form.TimeField.prototype.format + "|" + Ext.form.TimeField.prototype.altFormats).split("|").join("|" + Ext.form.TimeField.prototype.initDateFormat + " "));
    Date.precompileFormats(Ext.form.TimeField.prototype.format + "|" + Ext.form.TimeField.prototype.altFormats);
    Date.precompileFormats((Ext.form.DateField.prototype.format + "|" + Ext.form.DateField.prototype.altFormats).split("|").join(" " + Ext.form.DateField.prototype.initTimeFormat + "|") + " " + Ext.form.DateField.prototype.initTimeFormat);
    Date.precompileFormats([
    	Ext.form.TimeField.prototype.format,
    	Ext.form.TimeField.prototype.altFormats,
    	Ext.form.DateField.prototype.format,
    	Ext.form.DateField.prototype.altFormats,
    	Ext.grid.DateColumn.prototype.format,
    	Ext.grid.PropertyColumnModel.prototype.dateFormat,
    	Ext.DatePicker.prototype.format,
    	Ext.ux.form.DateTime.dateFormat,
    	Ext.ux.form.DateTime.altFormats
    For some reason its doesn't want to identify the ux for precompilation. Can anybody offer some advise.

    Here is the UX

    http://www.sencha.com/forum/showthre...DateTime-Field


    Here is my code

    Code:
    {xtype: 'xdatetime', name:'maintenance_date',fieldLabel:'Date & Time', tooltip: 'Date Format: YYYY-MM-DD',anchor:'-18',timeFormat:'H:i:s',timeConfig: {altFormats:'H:i:s',allowBlank:true },dateFormat:'Y-m-d',dateConfig: {altFormats: 'd/m/Y|d/m/Y', allowBlank: true},
    Thanks

    J.

  2. #2
    Sencha User
    Join Date
    Apr 2008
    Posts
    330
    Vote Rating
    0
    Jack_S is on a distinguished road

      0  

    Default


    Used a work around: removed dateFormat option and forced standard formats. Not ideal, as this limits localization.

  3. #3
    Sencha User makana's Avatar
    Join Date
    Apr 2008
    Location
    Dresden, Germany
    Posts
    527
    Vote Rating
    19
    makana has a spectacular aura about makana has a spectacular aura about

      0  

    Default


    Please use
    Code:
    Date.precompileFormats([
    	Ext.ux.form.DateTime.prototype.dateFormat,
    	Ext.ux.form.DateTime.prototype.altFormats
    ]);
    But I recommend to not change the air adapter source. Use it in your application files. After including the Ext.ux.form.DateTime files.
    Programming today is a race between software engineers striving to build bigger and better іdiot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)

    Enhanced ExtJS adapter for Adobe AIR

Similar Threads

  1. ExtJS - date format - Air security violation
    By Jack_S in forum Ext.air for Adobe AIR
    Replies: 2
    Last Post: 28 Jan 2010, 11:24 PM
  2. Replies: 7
    Last Post: 30 Dec 2009, 6:19 PM
  3. [Tip] Easy way to precompile extra date formats
    By murrah in forum Ext.air for Adobe AIR
    Replies: 0
    Last Post: 14 Jul 2009, 1:47 AM
  4. AIR runtime security violation with sandbox issu!! plz help me.
    By Erica in forum Ext.air for Adobe AIR
    Replies: 8
    Last Post: 20 Feb 2009, 3:23 PM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi