I've learned a lot from this forum. I have a question. We don't have the permission to write any trigger in the form. I want to print the report form directly from the form and tied the no in the form with the no in the report. My question is if I don't write a trigger, how can I enter the info in the form and then click the print button and all the information entered regarding the no is printed out. Otherwise I have to enter the no in the report. I want it exactly the same as we do the order and print the sales order form. Thanks in advance!
0
Comments
cont=record
Cont := Rec;
Cont.SETRECFILTER;
REPORT.RUN(REPORT::"report name",FALSE,FALSE,Cont);
I believe if you created the form, table or report you can access the code [Ranges 50000 to 50099 for example]. It's when accessing the standard navision tables & add-on's that you can't.
http://www.BiloBeauty.com
http://www.autismspeaks.org
Create A command Button
Change the PushAction property to RunObject
Change the RunObject property to Report "My Report"
??? Please clarify - thanks.
http://www.BiloBeauty.com
http://www.autismspeaks.org
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
You Are Correct, I tested it and form & table you cannot access code. Report & dataport you can.
http://www.BiloBeauty.com
http://www.autismspeaks.org
change the PushAction property to RunObject and report name etc. My question is when I run the report, this report is exactly the one I enter in the form without entering any Item No before run the report. If writing the code in the Cal Code Editor is the only way, I will give it up. I don't know why we have to pay the licence for the code in the form. We've paid a lot when we set up all the system.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
He is right, no way around it. and it does suck. For 8k, we make our users enter the number manually, we do this same thing on several forms and once they are used to it, it is easy. I have them do a right click, copy on the no field and then press the buttom and paste the number. they are so used it is seems automatic to them. and it didn't cost 8k to do.
good luck.
I cheaper solution, is to design it just how you want it, and ask your solution center to code that last part, should not cost much.