Hello everyone, I have a very complicated issue that I would like help with. I’m new to AX developing so bare with me. I need to know how to do this and I will definitely need pretty clear step by step instructions to implement this.
Here is the situation. We have a form where users can pick PO’s, or TR’s, or many different things and then hit a button that calls a class. This class gets a bunch of information from a bunch of different tables and saves that info to a file. This was developed by a third party developer before I worked at this company.
I have another department that wants to print labels with just the item (and maybe a little more) on it. So basically they only need 1 little thing from all that info that is grabbed. But then they want to choose how many labels they want to print for each item chosen and ideally, what size label (2 choices).
I created a new button on that form which calls the same class as before (PurchGreenLabelsPrint) but passes in a new enum. I check for that enum and if it’s true, I copy the item from the current TempTable(WMSTmp) to my new TempTable(RecievingLabelsTmp). I then call a form(ReceivingLabels) and pass it my ReceivingLabelsTmp Table as the datasource. In the init method of that datasource, I set the TempTable and I can display the items on the form. So far, so good!
On that form, I’m hoping to have 2 more columns named Small Label and Big Label. Everything will default to 0 and the user can go through and change any item and label size to the number they want to print. They will then click a button at the top (Print Labels) and I want to send all this info to a report (or 2 reports respectively). For now please help me with just one. Let’s say the small label. So I want the user to fill out the small label column and when they hit print, it will open a report with all the item labels ready to go. EG, if item 1234 and 5678 are on the form and they choose 2 labels each, the report will open with 4 labels total (2 for each). I hope that makes sense.
My road block is getting the info from the form/temp table to the report. I created a DP(ReceivingLabelsDP) that references ReceivingLabelsTmp and a report ReceivingLabels that uses the DP as a datasource but the temptable is empty by the time I call the report. If I hardcode an item into it in the ProcessReport method of the DP, it does show up in the report, but that doesn’t help me.
Can someone please help me with what I’m trying to accomplish. If I’m going about this the wrong way, please point me in the right direction. And like I said, I’m still pretty new to the AX development screen so go easy on me