[AC-1499] Error Notification for DateType picker not appropriate.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2014-10-28T08:31:29.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | TCSupportTriage |
| Reporter | Vishal Kumar Singh |
| Assignee | Mauro Parra-Miranda |
| Created | 2014-07-26T16:43:06.000+0000 |
| Updated | 2016-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.
Hello [~mpmiranda]! ,
Test Case
index.xmlindex.tss<Alloy> <Window class="container"> <Picker id ="datepicker"></Picker> </Window> </Alloy>Thanks".container": { backgroundColor:"black" } "#datepicker": { type: Ti.UI.PICKER_TYPE_DATE //type: Titanium.UI.PICKER_TYPE_DATE //Both works as expected. }