Home
Analytics
Default PDF Output in Maximo
Vineet Joshi
Hi All,
i am using maximo 7.1.1.9 .
when i run the birt report through maximo,the output should be in PDF format rather than in BIRT Viewer or HTML.
Any help would be appreciated.
Regards
Find more posts tagged with
Comments
vijay_kota
Hi ,
Add a new parameter by name __format
Deploy the design in maximo.
if you want the report out put should be viewd in pdf, give __format value as pdf, if you want in doc give doc.
Vineet Joshi
<blockquote class='ipsBlockquote' data-author="'vijay_kota'" data-cid="100677" data-time="1337364695" data-date="18 May 2012 - 11:11 AM"><p>
Hi ,<br />
<br />
Add a new parameter by name __format<br />
<br />
Deploy the design in maximo.<br />
<br />
if you want the report out put should be viewd in pdf, give __format value as pdf, if you want in doc give doc.<br /></p></blockquote>
<br />
<br />
Hi Vijay ,<br />
<br />
Are you talking of writing Script inside report design .i dont know if this is possible inside maximo .<br />
let me make myself clear , when i click on preview button from inside report administration there should be PDF output instead of HTML.<br />
<br />
<br />
Regards
vijay_kota
Hi Jack,
Have a try.
1. Add a new parameter by name __format, make this as a mandatory(testing purpose)
2. Import the report design in maximo.
3. Run the report
The report parameter window appears.
4. Give value as pdf in __format parameter field.
5. Submit the report.
Once you submit the report, __format parameter is passed in the url with the value pdf.
This intern open a pdf format report output in the browser. From here either you can save the o/p directlu in pdf or directly print the pdf o/p.
Vineet Joshi
<blockquote class='ipsBlockquote' data-author="'vijay_kota'" data-cid="101275" data-time="1337865654" data-date="24 May 2012 - 06:20 AM"><p>
Hi Jack,<br />
<br />
Have a try.<br />
<br />
1. Add a new parameter by name __format, make this as a mandatory(testing purpose)<br />
2. Import the report design in maximo.<br />
3. Run the report<br />
The report parameter window appears.<br />
4. Give value as pdf in __format parameter field.<br />
5. Submit the report.<br />
<br />
Once you submit the report, __format parameter is passed in the url with the value pdf.<br />
<br />
This intern open a pdf format report output in the browser. From here either you can save the o/p directlu in pdf or directly print the pdf o/p.<br /></p></blockquote>
<br />
<br />
hi vijay ,<br />
<br />
i tried doing so ,but the result came as HTML only .i might have missed something .can you please send me the details.<br />
<br />
<br />
Regards
vijay_kota
Hi Jack,
Can you attach the design file here...
Will go through that. Let you know what exactly the issue is..
Tarangini
<p>Hi ,</p><p>am facing the similar issue __format parameter is not getting added to URL in maximo 7.5 and giving output in Report vIewer only instead of pdf directly.</p><p> </p><p> </p><p> </p><p> </p><p> </p><p>Thanks in advance</p>
wwilliams
<p>So you are using underscoreunderscoreformat __format?</p><p>I am using 7.5.0.1 and Birt 2.3.2 and it works fine for me.</p>
Tarangini
<p>Yes am using double underscore format(__format)....its not working in BIRT as well as in maximo.</p><p>when i append &__format=pdf in Maximo output URL its working.</p><p>but am not getting why its not getting appended to URL by default.</p><p>if anyone have sample rptdesign file plz provide.</p>
wwilliams
<p>
rdpeterson
<p>Thanks for the suggestion. I used this method as well to set the default output format for Maximo reports to PDF format with the ability to clear the parameter value to get the Maximo default web view. The vast majority of our reports are designed for PDF output. However, I can't get this method to work with our reports run directly from a button on the Maximo tool bar based on selected record(s). First of all, Maximo won't allow any parameters for tool bar reports. I discovered a work around by simply giving the parameter some default value in BIRT, temporarily removing the tool bar and direct print options for the report in Maximo, importing the revised report design file, deleting the parameter, then reenabling the tool bar and direct print options. This works for the 'userName' Maximo system parameter, and other custom parameters. In the case of the '__format' parameter, however, this doesn't seem to work. I even added an initialization statement to the report just in case the default value setting for the parameter was ignored:</p><p> </p><p>params["__format"].value = "pdf";</p><p> </p><p>Is there any other way to "force" pdf output format without having to define that parameter? I tried the following in initialize actions for the report but it didn't work:</p><p> </p><p>reportContext.setOutputFormat() = "pdf";</p><p> </p><p>Thanks!</p>
mvangene
<p>I used the __format parameter in a report and it worked like a charm in Maximo 7.5.0.3. We are in the process of updating to Maximo 7.5.0.6 and it no longer works properly...when I try and run the report, I get the maximo parameter window like I expected however when I click Submit, the BIRT parameter window pops up and the report does not run properly. As soon as I remove the __format parameter, the report runs fine. Has anyone issues with this in Maximo 7.5.0.6?</p>
rdpeterson
<p>I use that parameter as well in many, but not all my reports. We're still using 7.5.0.3. I set a default value of "pdf" in the Maximo parameter field after publishing the report, and uncheck the box to make it a required parameter. The BIRT parameter window pops up for me only if I have a parameter marked as required in the BIRT design file, I hide (delete) it after publishing it in Maximo and generating the request page, then I run the report. When I hit the submit button from the Maximo report request page in this case, the BIRT report design parameter page then appears.</p>
rdpeterson
<p>We just started testing upgrade to Maximo 7.5.0.6 and I can now confirm the same problem as user "mvangene" above. This functionality works fine in 7.5.0.3, but not in 7.5.0.6.</p>
rdpeterson
<p><u><strong>Update on last post</strong></u>: I've created an IBM/Tivoli/Maximo service request for this issue, they responded, and they're working with our Maximo system programmers to solve the problem. Our programmers derived a fix on their own, whereas IBM has yet to derive their own. In fact, they're trying ours presumably to derive a more permanent solution. I hesitate to share it until it's been fully tested and vetted through IBM, but it involves commenting out some of IBM's new code lines in file "openreport.jsp", then rebuilding and redeploying the applicable Maximo EAR file. The fix basically causes the URL generated when a report is executed in Maximo to include the "__format" parameter explicitly.</p>
Singh271288
<p>Hi All,</p>
<p> </p>
<p>I do have requirement of same concept where a BIRT report can directly be resulted in PDF or any other format rather than BIRT viewer or html , I have tried above mentioned method but passing __format=pdf is not working for me either .</p>
<p> </p>
<p>please note the above requirement is for IBM TRIRIGA application , Is there is any other method for TRIRIGA where it can accept report format parameter .</p>
<p> </p>
<p>Please help me on this ,thanks.,</p>
<p> </p>
<p>Sanjay</p>