alfr Posted May 25, 2019 Share Posted May 25, 2019 Hi, For system reasons the time value when change a ttime field by using the TUniDbDateTimePicker need to be hh:59 instead of the default values in the listbox hh:00, hh:15, hh:30, hh:45. How is it possible with js-code to replace the default listvalues with i . e "00:59","01:59","02:59"......"23:59"? UniGui Professional version 1.70.0.1489 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 26, 2019 Share Posted May 26, 2019 On 5/25/2019 at 12:28 PM, alfr said: "00:59","01:59","02:59"......"23:59"? Hi, Can you try this approach? function time.beforeInit(sender, config) { config.increment=60; } function time.boxready(sender, width, height, eOpts) { this.getStore().data.items.forEach(function(dt) { dt.data.date.setMinutes(59); dt.data.disp = Ext.Date.format(dt.data.date, 'H:i:s'); }); } Quote Link to comment Share on other sites More sharing options...
alfr Posted May 27, 2019 Author Share Posted May 27, 2019 Wow! Thanks! I really appreciate your help! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.