Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
<F9> - Save does not work
Hi
When I use the NDW_DATEPICKER funtion with the option function it stops the key from working.
the only way I can save the record is when I close the window and then save the changes.
DateFrom = Dialog_Box('NDW_DATEPICKER', @Window)
not sure how I can get this to work.
Thanks Anton
When I use the NDW_DATEPICKER funtion with the option function it stops the key from working.
the only way I can save the record is when I close the window and then save the changes.
DateFrom = Dialog_Box('NDW_DATEPICKER', @Window)
not sure how I can get this to work.
Thanks Anton
Comments
Thanks Anton
As evidenced by the code you shared in your original post, NDW_DATEPICKER is being called as a modal dialog box (this is how the Dialog_Box function works). Since this is a modal dialog, it is suspending the parent form from all user input. That is the nature of a modal process. Hence, the F9 associated with your MDI Frame is inaccessible, as are all other keyboard shortcuts that are built into the MDI Frame. This is just basic OI and modal dialog behavior.
There are a few ways, perhaps, to provide a behavior you want but I would like to better understand your use case. Is the NDW_DATEPICKER being displayed as a psuedo-dropdown for an editline control? Is this editline control in a larger data entry form or is it in a small window that is acting as a data collector? Were you hoping to allow the user to pick a date from the DatePicker and then press F9 to save the date to the editline or were you hoping that F9 would pick the date and simultaneous save the data record in the data entry form. Each of these scenarios can be accomplished, but the implementation will vary. Thus, I'm trying to better understand the big picture.
Once we select with the NDW_DATEPICKER the date and it populate the data in the form and date NDW_DATEPICKER is closed it will not allow to use the save (F9) key to save the record. The (F8) clear the form is still working. The only way to save the record is to close the window then use the message .. to you want to save the record.
Thanks Anton
it works with the ribbon save button but not with the function Key (F9)
Thanks
We've duplicated the issue and are currently working to resolve. We'll respond ASAP when we have a solution.
SelectDate: rv = Dialog_Box("NDW_DATEPICKER", @Window) Send_Event(@Window, "ACTIVATED") If Len(rv) then Set_Property(@Window:".EDL_DATE", "INVALUE", rv) return
This way it is working.
Thanks Anton