Export file to shared folder  Topic is solved

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

Re: Export file to shared folder

Postby Riyaz » Tue Nov 16, 2021 10:58 pm

Hi Stuart

Have tried on other events too, such as Save end it doesnt work

Having said that, if the report is under System Settings > Report Configuration .... then it works fine , but SO invoices etc are not under Report Configuration,

moreover printReportObject will only accept a configuration report. Am just going in circles I think
Riyaz
Kohai
Kohai
 
Posts: 254
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Export file to shared folder

Postby SBarnes » Wed Nov 17, 2021 10:25 am

Change

Code: Select all
JiwaFinancials.Jiwa.JiwaApplication.Report.Configuration.Report report = m_Reports[salesOrderReport.RecID];   



to

Code: Select all
JiwaFinancials.Jiwa.JiwaApplication.Report.Configuration.Report report = m_Reports[salesOrderReport.ReportDefinition.Report.RecID];   


Which will make the collection find the right report but you are also missing the code to set the parameters to the invoice itself once you have the report.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Previous

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 5 guests