Package com.microstrategy.web.objects
Interface WebDrillInstance
- 
 public interface WebDrillInstanceThis interface should be used to drill on a report. A drill instance can be used to access the drilling related related functionalities corresponding to aWebReportInstance. A WebDrillInstance can be obtained from a report instance usingWebViewInstance.getDrillInstance(). Using a drill instance one can create drill actions(can be nested) and drill on a report (or just on a template unit within the report) and execute the drill action on IServer. Alternatively, one can ask the drill instance to load drill actions using a selected drill path and submit drill action on IServer corresponding to it.- Since:
- MicroStrategy Web 7.3.1 or earlier
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description WebReportInstancedrill()Drills on the base report instance and returns the report instance thus generated.WebReportInstancedrill(java.lang.String drillXML)Drills on the base report instance using the drillXML and returns the report instance thus generated.WebReportInstancegetBaseInstance()Returns the base report instance.WebDrillActionsgetDrillActions()Returns the collection of Drill Actions within this object as aWebDrillActionsobject.WebDrillElementsgetDrillElements()Returns aWebDrillElementsobject that can be filled as a user filterWebDrillMapgetDrillMap()Returns the drill map (collection ofWebDrillPathobjects) for the base report instance.WebTemplateUnitgetDrillTemplateUnit()Returns the template unit that has been set for this drill instance.java.lang.StringgetDrillXML()Returns the drill XML represented by the current state of this object.booleangetFilterOnPageBy()Returns the filterOnPageBy property, which specifies whether during drilling, the user wants to filter on the page by elements too.voidloadActionsFromDrillPath(int drillPathID)Creates and populates drill actions for this drill instance using the drill path ID passed.voidloadActionsFromDrillPath(WebDrillPath drillPath)Creates and populates drill actions for this drill instance, using the drill path object passed.voidsetDrillTemplateUnit(int axis, int position)Sets the template unit from where to drill on the base report instance.voidsetDrillTemplateUnit(WebTemplateUnit wtu)Sets the template unit from where to drill on the base report instance.voidsetFilterOnPageBy(boolean filterOnPageBy)Sets the filterOnPageBy property, which specifies whether during drilling, the user wants to filter on the page by elements too.
 
- 
- 
- 
Method Detail- 
drillWebReportInstance drill() throws WebObjectsException Drills on the base report instance and returns the report instance thus generated.- Returns:
- A WebReportInstanceobject
- Throws:
- WebObjectsException- If the Intellingence Server encountered problems in drilling on the report using the properties set on this object.
 
 - 
drillWebReportInstance drill(java.lang.String drillXML) throws WebObjectsException Drills on the base report instance using the drillXML and returns the report instance thus generated.- Parameters:
- drillXML- The XML to be used for drilling.
- Returns:
- A WebReportInstanceobject.
- Throws:
- WebObjectsException- If the Intellingence Server encountered problems in drilling on the report using the properties set on this object.
 
 - 
getDrillTemplateUnitWebTemplateUnit getDrillTemplateUnit() throws WebObjectsException Returns the template unit that has been set for this drill instance.- Returns:
- The WebTemplateUnitobject set on this object.
- Throws:
- WebObjectsException
 
 - 
setDrillTemplateUnitvoid setDrillTemplateUnit(WebTemplateUnit wtu) Sets the template unit from where to drill on the base report instance.- Parameters:
- wtu- The- WebTemplateUnitfrom where to drill.
 
 - 
setDrillTemplateUnitvoid setDrillTemplateUnit(int axis, int position)Sets the template unit from where to drill on the base report instance.- Parameters:
- axis- The Axis on which the- WebTemplateUnit, from where to drill. lies. Possible enumerations are listed in- EnumDSSXMLAxisName
- position- The position of the- WebTemplateUnit, from where to drill.
 
 - 
setFilterOnPageByvoid setFilterOnPageBy(boolean filterOnPageBy) Sets the filterOnPageBy property, which specifies whether during drilling, the user wants to filter on the page by elements too.- Parameters:
- filterOnPageBy- the boolean value for filterOnPageBy to be set.
 
 - 
getFilterOnPageByboolean getFilterOnPageBy() Returns the filterOnPageBy property, which specifies whether during drilling, the user wants to filter on the page by elements too.- Returns:
- the boolean value for filterOnPageBy.
 
 - 
getDrillElementsWebDrillElements getDrillElements() Returns aWebDrillElementsobject that can be filled as a user filter- Returns:
- A WebDrillElementsobject.
 
 - 
getBaseInstanceWebReportInstance getBaseInstance() Returns the base report instance.- Returns:
- The original WebReportInstanceobject that created this WebDrillInstance object.
 
 - 
getDrillXMLjava.lang.String getDrillXML() throws WebObjectsExceptionReturns the drill XML represented by the current state of this object.- Returns:
- the current drill XML.
- Throws:
- WebObjectsException- thrown by some drill action classes if adequate arguments are not provided e.g. WebNewObjectDrillAction if the target object is not set.
 
 - 
getDrillActionsWebDrillActions getDrillActions() Returns the collection of Drill Actions within this object as aWebDrillActionsobject.- Returns:
- the WebDrillActionsfor this instance.
 
 - 
loadActionsFromDrillPathvoid loadActionsFromDrillPath(int drillPathID) throws java.lang.IllegalArgumentException, WebObjectsExceptionCreates and populates drill actions for this drill instance using the drill path ID passed. If a drill template unit is already set on the drill instance it will search across the drill paths corresponding to that template unit. If no template unit is set, it will search on the drill paths for the report(drill path for a report or report-level drill path uses the entire report as source template unit).- Parameters:
- drillPathID- the drill path ID.
- Throws:
- WebObjectsException- if the Intelligence Server encounters an error in getting the drill paths.
- java.lang.IllegalArgumentException- if there is no drill path with ID passed.
 
 - 
loadActionsFromDrillPathvoid loadActionsFromDrillPath(WebDrillPath drillPath) Creates and populates drill actions for this drill instance, using the drill path object passed.- Parameters:
- drillPath-- WebDrillPathobject.
 
 - 
getDrillMapWebDrillMap getDrillMap() throws WebObjectsException Returns the drill map (collection ofWebDrillPathobjects) for the base report instance.- Returns:
- WebDrillMapobject for the base report instance.
- Throws:
- WebObjectsException- if the Intelligence Server encounters an error in getting the drill paths for the report.
 
 
- 
 
-