Sha256: 3a84c777fe67b3c77f4e16a0d70133a630606d9bd9454794bcb6736ea1980db0
Contents?: true
Size: 846 Bytes
Versions: 5
Compression:
Stored size: 846 Bytes
Contents
module BOSDK # Creates a wrapper around a Webi based ReportEngine. class WebiReportEngine # The underlying ReportEngine. attr_reader :webi_report_engine # Creates a new ReportEngine using the provided EnterpriseSession and an # optional locale setting. # WebiReportEngine.new(enterprise_session) def initialize(enterprise_session, locale = "en_US") report_engines = enterprise_session.getService("ReportEngines") @webi_report_engine = report_engines.getService(ReportEngines::ReportEngineType::WI_REPORT_ENGINE) @webi_report_engine.setLocale(locale) #enterprise_session.setAttribute("widReportEngine", @webi_report_engine) end # Opens the webi document specified by the docid. def open(docid) @webi_report_engine.openDocument(docid) end end end
Version data entries
5 entries across 5 versions & 1 rubygems