Hallo,
I have a couple of small problems.
When a user posts an invoice (Shift + F11), a dialog window appears asking for Yes / No , and the default value is "No" . How I can I change this value to yes (to make a dummy's user life less complicated
) ?
The second question is : I have added a command button. How can I associate this button with a F key (e.g F11) without having to create a menu item?
Thanks in advance!
Comments
Find the following code in the "Post yes/no" codeunit Change FALSE to TRUE and you should be all set.
Question 2:
You can't. You can only associate a function key to a selection on a menu button. You could put a very small menu button on your form and hide it behind another control though, and program it to do the same thing as your command button.
RIS Plus, LLC
RIS Plus, LLC
(function)SalesLineCheck(SalesLine : Record "Sales Line")
IF CheckItemAvail.SalesLineShowWarning(SalesLine) THEN BEGIN
OK := CheckItemAvail.RUNMODAL = ACTION::Yes;
CLEAR(CheckItemAvail);
IF NOT OK THEN
ERROR(Text000);
END;
How can I then send a default yes to the Checkitemavail report?
The default "No" in the Check Availability form is set in its OnOpenForm trigger. So if you want to default the highligthing of the "Yes" button just add a name for the "Yes" button and change the code to:
Regards