|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Interface Summary | |
|---|---|
| IAgnostic |
This interface contains the mime type identifying it as a Agnostic formatted report, and the byte stream
to pass to the Response object so it can be displayed in the proper format on the
HTML page. |
| IAgnosticBase | This interface contains the MIME type identifying it as an agnostic formatted report, and the byte stream to pass to a Response object so it can be displayed in the proper format on the HTML page. |
This package allows you to add any type of file to an Agnostic object. After retrieving the plugin interface
for this object, you can set the SI_MIME_TYPE Property of the object using setMimeType(String mimeType).
Each object that is created with a desktop plugin is stored in either the CI_INFOOBJECTS or the CI_SYSTEMOBJECTS
category in the InfoStore, and is marked with a programmatic identifier (ProgID). Using SI_PROGID, you can query the
InfoStore for a collection of objects.
The following query selects the names, and IDs of all Agnostic objects in the APS:
IInfoObjects objs = iStore.query("SELECT SI_NAME, SI_ID FROM CI_INFOOBJECTS
WHERE SI_PROGID='CrystalEnterprise.Agnostic'");
The query method returns a collection of InfoObjects, which in this case are Agnostic plugin objects.
Like other InfoObjects, these objects are uniquely represented by their ID property.
For each object in the collection, you can access general InfoObject properties, such as the SI_NAME property,
SI_DESCRIPTION property, and
SI_ID property.
To access the IAgnostic objects returned by the query, the resulting IInfoObjects need to be
cast. This example demonstrates how to cast the returned IInfoObjects as IAgnostic objects.
for ( int i = 0; i < objs.size(); ++i )
{
IInfoObject obj = (IInfoObject) objs.get( i );
IAgnostic agnosticObj = (IAgnostic) obj;
}
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||