Hello Praveen,
Thank you for your update. I can not use your suggestion because I can not fill the default property with callback function.
I have found a way, its working, but not sure this is the best approach. Could you please check my code below:
note:
The idea is I intercept using popupOpen, then to distinguish new quick info or new editor, I check the args.data.Guid is null or not by using ej.base.isNullOrUndefined(args.data.Guid). Is it correct? please give me feedback
popupOpen: (args) => {
var guid = args.data.Guid;
if (args.name === 'popupOpen' && (args.type === 'Editor' || args.type === 'QuickInfo') && ej.base.isNullOrUndefined(guid)) {
indo.numberSequences.numberSequence
.getNextNumber(16)
.then(function (data) {
if (args.type === 'QuickInfo') {
var input = document.getElementsByClassName('e-subject e-field e-input');
input[0].value = data;
}
if (args.type === 'Editor') {
document.getElementById('name').value = data;
}
args.data.IsAllDay = false;
});
}
Best regards,
Ismail