This topic is locked
[SOLVED]

Dialog API and datecontrol API

1/18/2022 2:22:57 PM
PHPRunner General questions
mbintex author

Hi at all,

is it possible to SetAllowedInterval from the datecontrol API in conjunction with a date field in a Dialogue built with the Dialog API?

Would something like

var ctrl = controls[n];
var js_start = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);
ctrl.setAllowedInterval( js_start, null, 'error message' );

where controls[n] is the date field in the dialog work in the dialog after create function ?

An example would be nice :-)

mbintex author 2/4/2022

Asked support and was told that Dialog API and Date Control API don“t work together. One should use add or edit pages based on views, if Date Control API is needed and that works of course.