I have a dialog window with a date field. When I manually type a date and immediately click the OK button, the value is passed as null, because at the moment I click OK, the focus is still on the Transaction Date field. However, if I select the date using the calendar picker, everything works correctly. CommitChanges = True.
Best answer by aleksejslusar19
Hi, @bihalivan15
I tried to reproduce the issue, but couldn't :) I set the CommitChanges property to true & false - it doesn't affect the result.
public PXAction<MasterTable> ShowDialog; [PXUIField(DisplayName = "Show dialog", Enabled = true)] [PXButton] public virtual IEnumerable showDialog(PXAdapter adapter) { if (DetailsView.AskExt() == WebDialogResult.OK) { // Process OK result var smartPanelDateTime = DetailsView.Current?.DateTime; }
public PXAction<MasterTable> ShowDialog; [PXUIField(DisplayName = "Show dialog", Enabled = true)] [PXButton] public virtual IEnumerable showDialog(PXAdapter adapter) { if (DetailsView.AskExt() == WebDialogResult.OK) { // Process OK result var smartPanelDateTime = DetailsView.Current?.DateTime; }