Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1499] Error Notification for DateType picker not appropriate.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-10-28T08:31:29.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsTCSupportTriage
ReporterVishal Kumar Singh
AssigneeMauro Parra-Miranda
Created2014-07-26T16:43:06.000+0000
Updated2016-03-08T07:37:57.000+0000

Description

When specifying the "type" attribute of Picker to Ti.UI.PICKER_TYPE_DATE The error shown is name of the Picker is not defined. For eg if my Alloy app says index.xml =========== index.tss =========== "#datepicker":{ type: Ti.UI.PICKER_TYPE_DATE } The error shown is Reference variable not defined "datepicker" I fixed the issue by correcting the type mentioned to "Titanium.UI.PICKER_TYPE_DATE" If only the error message would have been appropriate, it would have been much easier for me to fix it.

Comments

  1. Harish Mridha 2014-08-27

    Hello [~mpmiranda]! ,

    Test Case

    index.xml
       <Alloy>
         <Window class="container">
           <Picker id ="datepicker"></Picker>
         </Window>
       </Alloy>
       
    index.tss
       ".container": {
       	backgroundColor:"black"
       }
       "#datepicker": { 
       	type: Ti.UI.PICKER_TYPE_DATE 
       	//type: Titanium.UI.PICKER_TYPE_DATE //Both works as expected.
       }
       
    Thanks

JSON Source