Set database logons for a report

This tutorial shows you the basic steps required to programmatically set a database logon. Almost all reports rely on a database to retrieve information, with the large majority of database connections requiring a user logon. While the viewer prompts the user for database logon information when it is needed, it is often desirable to set the database logon information for a report, as it simplifies the user's viewing experience.

It is assumed that you have already created a report source. If you haven't, see How to create a report source for details.

Note:    For any report used with this tutorial sample, you must have the appropriate JDBC data source configured so that it can be accessed by your application server. The report used in this example is not included with the tutorials.

The tutorial contains the following sections:

Related sample code

Example 1 - Set Database Logon

Example 2 - Set Database Logon with Subreport

Related API members


Business Objects
http://www.businessobjects.com/
Support services
http://www.businessobjects.com/services/support/