Service Manager printing via plugin  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Service Manager printing via plugin

Postby DannyC » Tue Sep 06, 2016 10:20 am

Hi,

I am wanting to develop a plugin to print when the job status changes to closed. I have done similar for Sales Orders so I am looking for similar methods in the Service Manager module.
I can't find getCandidateReportsToPrint so I can locate the correct form I need to use, and in addition I can't find the Print method either.
I have looked through both the Job and the Task but I can't find anything which would allow me to somehow automate printing (or emailing if possible too).
I use VB .Net.

Is there something different I need to be looking at?

Cheers

Danny
User avatar
DannyC
Senpai
Senpai
 
Posts: 718
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 31

Re: Service Manager printing via plugin

Postby SBarnes » Thu Nov 03, 2016 6:52 am

Hi Danny,

Have a look at the ReportDefinitionCollection on the form, this will contain the reports that have be defined for the form, then call PrintRecord on the form handing through the report definition you want to print.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Service Manager printing via plugin  Topic is solved

Postby Mike.Sheen » Sun Nov 13, 2016 12:22 pm

Hi Danny,

As Stuart mentioned above, the ReportDefinitionCollection property of the form has the list of defined reports for that form. The Service Manager business logic doesn't handle printing like sales orders does, it's driven purely from the form.

The form has a method you can invoke to print a particular report:

Code: Select all
Public Overrides Sub PrintRecord(ReportDefinition As JiwaApplication.PrintGroup.FormReports.ReportDefinition)


So, you can just invoke that.

Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 1 guest