The Crystal Reports Web capture option is a Web capture option that has been adapted for the unique requirements of Crystal Reports. It is intended to support Crystal Reports generated by the Business Objects XI server, release 1. (For additional capture strategies, see “Business Objects capture strategy”).
The crystal capture strategy is one instance of custom capture. It invokes crystal-main.jsp. This in turn includes crystal-standard.jsp, which performs the actual extraction. The two jsps exist to allow further customization of Crystal capture as explained below.
In some cases, the default Crystal capture fails because the HTML contains extra data. In this case, it is necessary to extract only the relevant parts of the entire HTML. This can be done by using Custom strategy and using a custom JSP that performs the extraction.This custom JSP needs to define a preprocess method that is passed to the entire HTML, and returns the extract. See crystal-omit-tree-panel.jsp in SYBASE\tomcat\webapps\onepage\portlets\jsp\custom for an example of this approach.
Unwired Accelerator provides the sample JSP for Crystal Reports, crystal-standard.jsp, which includes crystal-main.jsp, but allows users to modify it to do some additional pre-processing of the Crystal HTML before doing the main analysis. Both crystal-main.jsp and crystal-standard.jsp are located in SYBASE\tomcat\webapps\onepage\portlets\jsp\custom.
Using Crystal Web capture
In Mobile Web Studio, open the Application Builder, and click Add. The New Web Element window displays.
In Address, enter the Web address, such as http://localhost:4040/index.jsp
.
Select Crystal from the drop-down list. The “JSP file” field displays.
In “JSP file”, enter the JSP file
name, such as crystal-standard.jsp
.
In the Select window, choose the grid, and click Next.
On the Define and Filter windows, make changes, and click Next.
On the Parameters window, you will see the parameters that were used to reach the report you selected. You can click the select box next to them, and customize as needed.
Click Next.
On Window Preview, enter a name for the element. Click Finish to save the element.
In Application Builder, follow the normal Save procedure to name your application, specify List/Detail fields, and mark the application for offline use, and so on.