I have written a 'batch control' form for purchase invoices. The user can add, change or delete purchase invoices from this form, then post them as a batch once the total amounts add up to a batch control total.
I have added a function to form 51 'Purchase Invoice' , by which I pass the batch ID and the purchase header from the batch header form (if the user has selected to modify an existing invoice in the batch).
If the user clicks the 'Insert' option on the batch header, I would like to open form 51 in insert mode, ie as if the user had pressed F3 in that form.
Is this possible ?
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
set propertie "insert allowed" to false.
Make an menu button with Shortcut F3. Behind this, you set your source to insert an new Header.
Noew, if user press F3 on "batch form" the form 51 will beopend with an new No.
Regards
On the open form trigger put this code
rec.INIT;
rec.MARK(TRUE);
rec.MARKEDONLY(TRUE);
Now you open on an empty record.
The problem is that it will be the only record visible in the Form.
Hope you can use this