Long story short, I created a button on JobEntry that when clicked needs to open up JobTraveler and pass/load the JobNum that was in JobEntry at the time of clicking the button to the JobTraveler for quick printing. I have everything ironed out, but the JobNum value is entered in JobTraveler as a Filter not a parameter:
If it was a parameter, all I’d have to do is set the dataview ReportParam equal to the JobNum passed to the screen, but since it’s a filter, i need to populate the dataview row with the JobNum and that’s where I’m failing at this. I’m hoping someone could share some code where they populate a filter on a report.
I’ve used the code edvjobList.dataView.Table.Rows.Add(); which gives me the blank row as shown in the screenshot above, but for the life of me I can’t populate the row.
Do you guys know if there is anyway I can send a BaseToolBars ToolClick command with c#? Basically, I added a button on JobEntry that does the same exact thing as clicking on Actions --> Print --> Job Traveler. If I could just find out a way to mimic clicking the Job Traveler button with code, I think I’ll be in good shape as the Epicor code would take over and I wouldn’t need to use LaunchFormOptions.
Nevermind, I just hacked it. I Was able to use LFOs passing to JobTraveler, then I created code that added the filter line, then code to manually select the JobNum cell and populate it. If anyone else runs into this, this method is easier than reflections. It may not work with all reports, but it definitely works with the Job Traveler: