Hi

I get an error message "Uncaught TypeError: Cannot call method 
'charCodeAt' of undefined" in the removeListenerById function.  If I 
remove the second converter from the second binding I do not get the error.

What I am trying do is take data from a database where the dates are 
stored as string in "yyyymmdd" format and put them in a DateField.  Then 
when the user changes the date I want to convert the date back to a 
string so it is saved in the model in "yyyymmdd" format.  So I have a 
binding for putting the data into the Datefield from the Customer List 
and and a binding for putting the changes back into the list model. 
This system works fine on other items like a TextField or ComboBox but 
is failing on the DateField.  Can anyone tell me why?

tmConfig ={Table: "ARMaster", Field: "LASTDOT", Form: this}



qx.Class.define("dcbase.txtDate",
{
    extend : qx.ui.form.DateField,
    construct : function (tmConfig) {
        this.base(arguments);
         this.setMinWidth(120);
         this.setMinHeight(22);
         this.setDateFormat(new qx.util.format.DateFormat("EEE MMM dd, 
yyyy"));
        this.setToolTipIcon("dcbase/tooltip16.png");
         if (tmConfig.Field !=null)
         {
 
tmConfig.Form["__nav"+tmConfig.Table].__lstView.bind("selection[0]."+tmConfig.Field,this,"value",{converter:
 
function (data) {return qx.core.Init.getApplication().PToD(data);}});
 
this.bind("value",tmConfig.Form["__nav"+tmConfig.Table].__lstView,"selection[0]."+tmConfig.Field,{converter:
 
function (data) {return 
data.getFullYear().toString()+data.getMonth().toString()+data.getDate().toString()}});
         }
    }
});


------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to