Create a function in the form/report and assign the invoice no. to a global variable. Then declare a variable for the form/report and call the function first. You can also pass a record variable down if required.
when you have an invoice card open (or any card to that matter) on the menu button Print I added a menu item for a report I wrote. There is a required filter for the field No. from the invoice header. I want it so when you select that menu item, the invoice no. will default to the current invoice opened in the card. right now its blank on the filter field
Open a posted shipment or something and hit the print button, with the debugger on. Follow all the steps and oyu will see how the Shipment Number ends up in the request form of the report. You can then apply the same principle to your report.
Now I understand. This is quite straightforward. Create a record variable for the sales header e.g. SalesHeader. Set you filters on it i.e. Invoice no. then call the report with the record variable
Does Your license allow you to enter c/al code?
If you go to the form & goto designer - right click on the button - you should see menu items.
Select Menu Items & you should see all the menu choices. Put your cursor on the menu you want to adjust - hit f9 - it should bring you to the cal editor if your allowed.
This is common problem when you have only Report Designer granule. You cannot add the code to the form. In your case, you need someone with the developer license to add the code into the object (your Microsoft Partner).
If you want to permanently replace the report by your own report when you hit the Print button on invoice then you can change it under
Sales & Marketing -> Order Processing -> Setup -> Report Selections.
Harjot
Comments
Is it a report or form you created?
Create a function in the form/report and assign the invoice no. to a global variable. Then declare a variable for the form/report and call the function first. You can also pass a record variable down if required.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
when you have an invoice card open (or any card to that matter) on the menu button Print I added a menu item for a report I wrote. There is a required filter for the field No. from the invoice header. I want it so when you select that menu item, the invoice no. will default to the current invoice opened in the card. right now its blank on the filter field
make sense?
RIS Plus, LLC
Now I understand. This is quite straightforward. Create a record variable for the sales header e.g. SalesHeader. Set you filters on it i.e. Invoice no. then call the report with the record variable
i.e. (off the top of my head)
Hope this helps
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
thats why i am confused.
basically i just admended the invoice and saved it under the 50000 series the original still pulls the invoice no. but the new one doesnt.
Where are you putting your code? ON the OnPush of the menu item?
http://www.BiloBeauty.com
http://www.autismspeaks.org
posted
If you go to the form & goto designer - right click on the button - you should see menu items.
Select Menu Items & you should see all the menu choices. Put your cursor on the menu you want to adjust - hit f9 - it should bring you to the cal editor if your allowed.
http://www.BiloBeauty.com
http://www.autismspeaks.org
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
If you want to permanently replace the report by your own report when you hit the Print button on invoice then you can change it under
Sales & Marketing -> Order Processing -> Setup -> Report Selections.
Harjot
oh well, employees can just copy and paste the number in there
guess this is solved
rj
ps
what a crappy thing that you cant use the properties for the push of a parameter.
Then when you have a bunch of little changes, submit them to your solution center so they can knock them all out at once.
http://www.BiloBeauty.com
http://www.autismspeaks.org