Hi
I have a form with 5 selectItem in it,
some of selectItems work with down arrow key
but one of them doesn't open with down arrow key!
is this a bug in smartClient?
Here is my code:
timezone combo doesn't work with keyboard
I have a form with 5 selectItem in it,
some of selectItems work with down arrow key
but one of them doesn't open with down arrow key!
is this a bug in smartClient?
Here is my code:
Code:
isc._timeValueMap={ "00:00":"12:00AM", "00:30":"12:30AM", "01:00":"1:00AM", "01:30":"1:30AM", "02:00":"2:00AM", "02:30":"2:30AM", "03:00":"3:00AM", "03:30":"3:30AM", "04:00":"4:00AM", "04:30":"4:30AM", "05:00":"5:00AM", "05:30":"5:30AM", "06:00":"6:00AM", "06:30":"6:30AM", "07:00":"7:00AM", "07:30":"7:30AM", "08:00":"8:00AM", "08:30":"8:30AM", "09:00":"9:00AM", "09:30":"9:30AM", "10:00":"10:00AM", "10:30":"10:30AM", "11:00":"11:00AM", "11:30":"11:30AM", "12:00":"12:00PM", "12:30":"12:30PM", "13:00":"1:00PM", "13:30":"1:30PM", "14:00":"2:00PM", "14:30":"2:30PM", "15:00":"3:00PM", "15:30":"3:30PM", "16:00":"4:00PM", "16:30":"4:30PM", "17:00":"5:00PM", "17:30":"5:30PM", "18:00":"6:00PM", "18:30":"6:30PM", "19:00":"7:00PM", "19:30":"7:30PM", "20:00":"8:00PM", "20:30":"8:30PM", "21:00":"9:00PM", "21:30":"9:30PM", "22:00":"10:00PM", "22:30":"10:30PM", "23:00":"11:00PM", "23:30":"11:30PM" }; isc.jobIntervalValueMap = { "1" : "Weekly" , "2" : "Fortnightly", "3" : "Monthly", "4" : "Quarterly", "5" : "Annually" }; isc.DataSource.create({ ID:"merchantDS", clientOnly:true, testData:[], fields:[ {name:"id"}, {name:"name"} ] }); isc.DataSource.create({ ID:"timezoneDS", clientOnly:true, testData:[], fields:[ {name:"offset"}, {name:"name"} ] }); merchantDS.testData = [{'phone':'', 'categorycode':'', 'acquirerpaymentsetting':'', 'apipassword':'', 'merchantacquirerbins':'', 'merchantchannels':'', 'isoldmerchant':'', 'acceptchargeback':'', 'merchantgroup':'', 'updatablefields':[], 'merchantnotifications':'', 'countrycode':'', 'mobilenumber':'', 'contactperson':'', 'websiteurl':'', 'fax':'', 'creationdate':'', 'name':'merchant main', 'status':'', 'state':'', 'email':'', 'merchantschemes':'', 'imported':'', 'postcode':'', 'address':'', 'smscenter':'', 'id':'24', 'threedsenable':''},{'phone':'', 'categorycode':'', 'acquirerpaymentsetting':'', 'apipassword':'', 'merchantacquirerbins':'', 'merchantchannels':'', 'isoldmerchant':'', 'acceptchargeback':'', 'merchantgroup':'', 'updatablefields':[], 'merchantnotifications':'', 'countrycode':'', 'mobilenumber':'', 'contactperson':'', 'websiteurl':'', 'fax':'', 'creationdate':'', 'name':'merchant main2', 'status':'', 'state':'', 'email':'', 'merchantschemes':'', 'imported':'', 'postcode':'', 'address':'', 'smscenter':'', 'id':'25', 'threedsenable':''},{'phone':'', 'categorycode':'', 'acquirerpaymentsetting':'', 'apipassword':'', 'merchantacquirerbins':'', 'merchantchannels':'', 'isoldmerchant':'', 'acceptchargeback':'', 'merchantgroup':'', 'updatablefields':[], 'merchantnotifications':'', 'countrycode':'', 'mobilenumber':'', 'contactperson':'', 'websiteurl':'', 'fax':'', 'creationdate':'', 'name':'merchant main3', 'status':'', 'state':'', 'email':'', 'merchantschemes':'', 'imported':'', 'postcode':'', 'address':'', 'smscenter':'', 'id':'26', 'threedsenable':''},{'phone':'', 'categorycode':'', 'acquirerpaymentsetting':'', 'apipassword':'', 'merchantacquirerbins':'', 'merchantchannels':'', 'isoldmerchant':'', 'acceptchargeback':'', 'merchantgroup':'', 'updatablefields':[], 'merchantnotifications':'', 'countrycode':'', 'mobilenumber':'', 'contactperson':'', 'websiteurl':'', 'fax':'', 'creationdate':'', 'name':'merchant test1', 'status':'', 'state':'', 'email':'', 'merchantschemes':'', 'imported':'', 'postcode':'', 'address':'', 'smscenter':'', 'id':'27', 'threedsenable':''},{'phone':'', 'categorycode':'', 'acquirerpaymentsetting':'', 'apipassword':'', 'merchantacquirerbins':'', 'merchantchannels':'', 'isoldmerchant':'', 'acceptchargeback':'', 'merchantgroup':'', 'updatablefields':[], 'merchantnotifications':'', 'countrycode':'', 'mobilenumber':'', 'contactperson':'', 'websiteurl':'', 'fax':'', 'creationdate':'', 'name':'merchant4Acquirer test1', 'status':'', 'state':'', 'email':'', 'merchantschemes':'', 'imported':'', 'postcode':'', 'address':'', 'smscenter':'', 'id':'28', 'threedsenable':''}]; timezoneDS.testData = [{'name':'(GMT-12:00)International Date Line West', 'offset':'GMT-12:00', 'updatablefields':[]},{'name':'(GMT-11:00)Samoa', 'offset':'Pacific/Apia', 'updatablefields':[]},{'name':'(GMT-10:00)Hawaii', 'offset':'Pacific/Honolulu', 'updatablefields':[]},{'name':'(GMT-09:00)Alaska', 'offset':'America/Anchorage', 'updatablefields':[]},{'name':'(GMT-08:00)Baja California', 'offset':'America/Tijuana', 'updatablefields':[]},{'name':'(GMT-08:00)Pacific Time(US & Canada)', 'offset':'America/Los_Angeles', 'updatablefields':[]},{'name':'(GMT-07:00)Arizona', 'offset':'America/Phoenix', 'updatablefields':[]},{'name':'(GMT-07:00)Chihuahua, La Paz, Mazatlan', 'offset':'America/Chihuahua', 'updatablefields':[]},{'name':'(GMT-07:00)Mountain Time (US & Canada)', 'offset':'America/Denver', 'updatablefields':[]},{'name':'(GMT-06:00)Central America, Saskatchewan', 'offset':'America/Regina', 'updatablefields':[]},{'name':'(GMT-06:00)Central Time (US & Canada)', 'offset':'America/Chicago', 'updatablefields':[]},{'name':'(GMT-06:00)Guadalajara, Mexico City, Monterrey', 'offset':'America/Mexico_City', 'updatablefields':[]},{'name':'(GMT-05:00)Bogota, lima, Quito', 'offset':'America/Bogota', 'updatablefields':[]},{'name':'(GMT-05:00)Eastern Time (US & Canada)', 'offset':'America/New_York', 'updatablefields':[]},{'name':'(GMT-05:00)Indiana (East)', 'offset':'America/Indianapolis', 'updatablefields':[]},{'name':'(GMT-04:30)Caracas', 'offset':'America/Caracas', 'updatablefields':[]},{'name':'(GMT-04:00)Asuncion', 'offset':'America/Asuncion', 'updatablefields':[]},{'name':'(GMT-04:00)Atlantic Time (Canada)', 'offset':'America/Halifax', 'updatablefields':[]},{'name':'(GMT-04:00)Cuiaba', 'offset':'America/Cuiaba', 'updatablefields':[]},{'name':'(GMT-04:00)Georgetown, La Paz, Manaus, San Juan', 'offset':'America/La_Paz', 'updatablefields':[]},{'name':'(GMT-04:00)Santiago', 'offset':'America/Santiago', 'updatablefields':[]},{'name':'(GMT-03:30)Newfoundland', 'offset':'America/St_Johns', 'updatablefields':[]},{'name':'(GMT-03:00)Brasilia', 'offset':'America/Sao_Paulo', 'updatablefields':[]},{'name':'(GMT-03:00)Buenos Aires', 'offset':'America/Buenos_Aires', 'updatablefields':[]},{'name':'(GMT-03:00)Cayenne, Fortaleza', 'offset':'America/Guyana', 'updatablefields':[]},{'name':'(GMT-03:00)Greenland', 'offset':'America/Godthab', 'updatablefields':[]},{'name':'(GMT-03:00)Montevideo', 'offset':'America/Montevideo', 'updatablefields':[]},{'name':'(GMT-02:00)Mid-Atlantic', 'offset':'Atlantic/South_Georgia', 'updatablefields':[]},{'name':'(GMT-01:00)Azores', 'offset':'Atlantic/Azores', 'updatablefields':[]},{'name':'(GMT-01:00)Cape Verde Is.', 'offset':'Atlantic/Cape_Verde', 'updatablefields':[]},{'name':'(GMT)Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London', 'offset':'Europe/London', 'updatablefields':[]},{'name':'(GMT)Casablanca', 'offset':'Africa/Casablanca', 'updatablefields':[]},{'name':'(GMT)Coordinated Universal time', 'offset':'Etc/Universal', 'updatablefields':[]},{'name':'(GMT)Monrovia, Reykjavik', 'offset':'GMT', 'updatablefields':[]},{'name':'(GMT+01:00)Amsterdam, Berlin, Bern, Rome, Stockholm, Viena', 'offset':'Europe/Berlin', 'updatablefields':[]},{'name':'(GMT+01:00)Belgrade, Bratislava, Budapest, Ljubljana, Prague', 'offset':'Europe/Prague', 'updatablefields':[]},{'name':'(GMT+01:00)Brussels, Copenhagen, Madrid, Paris', 'offset':'Europe/Paris', 'updatablefields':[]},{'name':'(GMT+01:00)Sarajevo, Skopje, Warsaw, Zagreb', 'offset':'Europe/Belgrade', 'updatablefields':[]},{'name':'(GMT+01:00)West Central Africa', 'offset':'Africa/Luanda', 'updatablefields':[]},{'name':'(GMT+02:00)Amman', 'offset':'Asia/Amman', 'updatablefields':[]},{'name':'(GMT+02:00)Athens, Bucharest, Istanbul', 'offset':'Europe/Athens', 'updatablefields':[]},{'name':'(GMT+02:00)Beirut', 'offset':'Asia/Beirut', 'updatablefields':[]},{'name':'(GMT+02:00)Cairo', 'offset':'Africa/Cairo', 'updatablefields':[]},{'name':'(GMT+02:00)Damascus', 'offset':'Asia/Damascus', 'updatablefields':[]},{'name':'(GMT+02:00)Harare, Pretoria', 'offset':'Africa/Harare', 'updatablefields':[]},{'name':'(GMT+02:00)Helsinki, kyiv, Riga, Sofia, Tallin, Vilnius', 'offset':'Europe/Helsinki', 'updatablefields':[]},{'name':'(GMT+02:00)Jerusalem', 'offset':'Asia/Jerusalem', 'updatablefields':[]},{'name':'(GMT+02:00)Minsk', 'offset':'Europe/Minsk', 'updatablefields':[]},{'name':'(GMT+02:00)Windhoek', 'offset':'Africa/Windhoek', 'updatablefields':[]},{'name':'(GMT+03:00)Baghdad', 'offset':'Asia/Baghdad', 'updatablefields':[]},{'name':'(GMT+03:00)Kuwait, Riyadh', 'offset':'Asia/Riyadh', 'updatablefields':[]},{'name':'(GMT+03:00)Moscow, St. Petersgurg, Volgograd', 'offset':'Europe/Moscow', 'updatablefields':[]},{'name':'(GMT+03:00)Nairobi', 'offset':'Africa/Nairobi', 'updatablefields':[]},{'name':'(GMT+03:30)Tehran', 'offset':'Asia/Tehran', 'updatablefields':[]},{'name':'(GMT+04:00)Abu Dhabi, Muscat', 'offset':'Asia/Muscat', 'updatablefields':[]},{'name':'(GMT+04:00)Baku', 'offset':'Asia/Baku', 'updatablefields':[]},{'name':'(GMT+04:00)Caucasus Standard Time', 'offset':'GMT+04:00', 'updatablefields':[]},{'name':'(GMT+04:00)Port Louis', 'offset':'Indian/Mauritius', 'updatablefields':[]},{'name':'(GMT+04:00)Tbilisi', 'offset':'Asia/Tbilisi', 'updatablefields':[]},{'name':'(GMT+04:00)Yerevan', 'offset':'Asia/Yerevan', 'updatablefields':[]},{'name':'(GMT+04:30)Kabul', 'offset':'Asia/Kabul', 'updatablefields':[]},{'name':'(GMT+05:00)Yekaterinburg', 'offset':'Asia/Yekaterinburg', 'updatablefields':[]},{'name':'(GMT+05:00)Islamabad, Karachi', 'offset':'Asia/Karachi', 'updatablefields':[]},{'name':'(GMT+05:00)Tashkent', 'offset':'Asia/Tashkent', 'updatablefields':[]},{'name':'(GMT+05:30)Chennai, Kolkata, Mumbai, New Delhi', 'offset':'Asia/Calcutta', 'updatablefields':[]},{'name':'(GMT+05:30)Sri Jayawardenepura', 'offset':'Asia/Colombo', 'updatablefields':[]},{'name':'(GMT+05:45)Kathmandu', 'offset':'Asia/Kathmandu', 'updatablefields':[]},{'name':'(GMT+06:00)Astana, Dhaka', 'offset':'Asia/Dhaka', 'updatablefields':[]},{'name':'(GMT+06:00)Novosibirsk', 'offset':'Asia/Novosibirsk', 'updatablefields':[]},{'name':'(GMT+06:30)Yangon(Rangoon)', 'offset':'Asia/Rangoon', 'updatablefields':[]},{'name':'(GMT+07:00)Bangkok, Hanoi, Jakarta', 'offset':'Asia/Bangkok', 'updatablefields':[]},{'name':'(GMT+07:00)Krasnoyarsk', 'offset':'Asia/Krasnoyarsk', 'updatablefields':[]},{'name':'(GMT+08:00)Beijing, Chongqing, Hong Kong, Urumqi', 'offset':'Asia/Shanghai', 'updatablefields':[]},{'name':'(GMT+08:00)Kuala Lumpur, Singapore', 'offset':'Asia/Singapore', 'updatablefields':[]},{'name':'(GMT+08:00)Perth', 'offset':'Australia/Perth', 'updatablefields':[]},{'name':'(GMT+08:00)Taipei', 'offset':'Asia/Taipei', 'updatablefields':[]},{'name':'(GMT+08:00)Ulaanbaatar, Irkutsk', 'offset':'Asia/Ulaanbaatar', 'updatablefields':[]},{'name':'(GMT+09:00)Osaka, Sapporo, Tokyo', 'offset':'Asia/Tokyo', 'updatablefields':[]},{'name':'(GMT+09:00)Seoul', 'offset':'Asia/Seoul', 'updatablefields':[]},{'name':'(GMT+09:00)Yakutsk', 'offset':'Asia/Yakutsk', 'updatablefields':[]},{'name':'(GMT+09:30)Adelaide', 'offset':'Australia/Adelaide', 'updatablefields':[]},{'name':'(GMT+09:30)Darwin', 'offset':'Australia/Darwin', 'updatablefields':[]},{'name':'(GMT+10:00)Brisbane', 'offset':'Australia/Brisbane', 'updatablefields':[]},{'name':'(GMT+10:00)Canberra, Melbourne, Sydney', 'offset':'Australia/Sydney', 'updatablefields':[]},{'name':'(GMT+10:00)Guam, Port Moresby', 'offset':'Pacific/Guam', 'updatablefields':[]},{'name':'(GMT+10:00)Hobart', 'offset':'Australia/Hobart', 'updatablefields':[]},{'name':'(GMT+10:00)Vladivostok', 'offset':'Asia/Vladivostok', 'updatablefields':[]},{'name':'(GMT+11:00)Magadan, Solomon Is., New Caledonia', 'offset':'Pacific/Guadalcanal', 'updatablefields':[]},{'name':'(GMT+12:00)Auckland, Wellington', 'offset':'Pacific/Auckland', 'updatablefields':[]},{'name':'(GMT+12:00)Fiji', 'offset':'Pacific/Fiji', 'updatablefields':[]},{'name':'(GMT+13:00)Nuku\'alofa', 'offset':'Pacific/Tongatapu', 'updatablefields':[]}]; isc.DynamicForm.create({ ID:"jobInsertForm", top:10, cellPadding:4, margin:"20", autoDraw: false, width:350, numCols:5, fields:[ {wrapTitle:false, title:"Transaction ID", name:"id", type:"hidden"}, {wrapTitle:false, title:"Name", name:"recurringTransactionJob.name", length: 128, colSpan:"5", validators: [ {type:"requiredIf", expression:"return true", errorMessage: "Job Name is required" }, {type:"lengthRange", max:128, errorMessage: "Job Name cannot be more than 128 characters" } ] }, {wrapTitle:false, title: "Merchant", name: "recurringTransactionJob.merchant.id", editorType:"select", colSpan:"5", optionDataSource:"merchantDS", cachePickListResults:false, valueField: "id", displayField: "name", getPickListFilterCriteria: function() { return {}; }, validators: [{ type:"requiredIf", expression:"return true", errorMessage: "Merchant is required" }]}, {wrapTitle:false, title: "Time Zone", name: "timezoneoffset", editorType:"select", colSpan:"5", optionDataSource:"timezoneDS", addUnknownValues:false, cachePickListResults:false, valueField: "offset", displayField: "name", defaultValue:'Asia/Tehran', getPickListFilterCriteria: function() { return {}; }, validators: [{ type:"requiredIf", expression:"return true", errorMessage: "Time Zone is required" }]}, {wrapTitle:false, title:"Start Time", name:"starttime", type:"date", useTextField: true, defaultValue: new Date, change: "jobInsertForm.applyTimeInterval(jobInsertForm.getValue('recurringTransactionJob.interval'), value);" }, {showTitle:false, name:"starthour", editorType:"select", valueMap:isc._timeValueMap, cachePickListResults:false, colSpan:"2", width:85}, {wrapTitle:false, title:"End Time", name:"endtime", type:"date", useTextField: true, validators: [{ type:"requiredIf", expression:"return true", errorMessage: "End Time is required" } ]}, {showTitle:false, name:"endhour", editorType:"select", valueMap:isc._timeValueMap, cachePickListResults:false, colSpan:"2", width:85, validators: [{ type:"requiredIf", expression:"return true", errorMessage: "Hour is required" } ]}, {wrapTitle:false, title:"Interval for Job", name: "recurringTransactionJob.interval", editorType:"select", valueMap: isc.jobIntervalValueMap, colSpan:"5", getPickListFilterCriteria: function() { return {}; }, validators: [{ type:"requiredIf", expression:"return true", errorMessage: "Interval is required" }] }, {wrapTitle:false, title:"Save", name :"saveButton", type:"Button", colSpan:"5", icon:"demoApp/icon_add.png", iconWidth:24, align:"center", width:120 } ] });