Package com.microstrategy.web.objects.rw
Interface RWManipulation
- 
public interface RWManipulationThe manipulation object contains manipulation methods that require immediate call to backend. Whenever any of methods on this object called all accumulated deltas (included deltas generated by this call are send to backend.- Since:
 - MicroStrategy Web 8.0.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAttributeForm(java.lang.String keyContext, java.lang.String attributeID, java.lang.String formID, int index)Add an attribute form to a gridgraph in an RWRWInstanceaddControlSort(java.lang.String keyContext, int sortType, boolean isAscending, int subTotalsPosition, java.lang.String unitID, int unitType, java.lang.String formID, boolean applyChanges)Adds a sort to the specified controlRWInstanceaddDataSet(java.lang.String[] _id, int _type, boolean _setDefault)Adds data setRWInstanceaddDataSet(java.lang.String[] _id, int _type, boolean _setDefault, boolean applyNow)Adds data setRWInstanceaddDataSet(java.lang.String _id, int _type)Adds data setRWInstanceaddDataSet(java.lang.String _id, int _type, boolean _setDefault)Adds data setRWInstanceaddDataSetAndTemplate(java.lang.String _dsId, int _dsType, java.lang.String _templateKey, int populateOption)Adds specified data set to document and copies it's template to specified document templatevoidaddDeltaXML(java.lang.String deltaXml)Append the DeltaXML to the current manipulator DeltaRWInstanceaddDerivedAttributeToDataSet(java.lang.String dataSetId, java.lang.String name, java.lang.String formula, java.lang.Integer bft, java.lang.Boolean isTokenStream)add derived attribute to dataset only with id form, you can add other forms byRWInstanceaddDerivedAttributeToTemplate(java.lang.String key, java.lang.String name, int axisName, int position, java.lang.String formula, java.lang.Integer bft, java.lang.Boolean isTokenStream)Adds derived attribute to a template inside documentRWInstanceaddDerivedMetricToDataSet(java.lang.String id, java.lang.String formula, java.lang.String name, boolean aggFromBase)Adds derived mettic to document data setRWInstanceaddDerivedMetricToDataSet(java.lang.String id, java.lang.String formula, java.lang.String name, boolean aggFromBase, boolean isTokenStream)Adds derived metric to document data setRWInstanceaddDerivedMetricToTemplate(java.lang.String key, java.lang.String formula, int position, java.lang.String name)Adds derived mettic to a template inside documentRWInstanceaddDerivedMetricToTemplate(java.lang.String key, java.lang.String formula, int position, java.lang.String name, java.lang.Boolean aggFromBase)Adds derived mettic to a template inside documentRWInstanceaddDerivedMetricToTemplate(java.lang.String key, java.lang.String formula, int position, java.lang.String name, java.lang.Boolean aggFromBase, java.lang.Boolean isTokenStream)Adds derived metric to a template inside documentRWInstanceaddDocumentView(java.lang.String name, int resolutionX, int resolutionY, int density, int orientation, int index, boolean applyChanges)Add a new document by duplicating an existing document.RWInstanceaddFormToDerivedAttribute(java.lang.String attributeId, java.lang.String dataSetId, java.lang.String formId, java.lang.String name, java.lang.Integer index, java.lang.String formula, java.lang.Integer bft, boolean applyChanges)add one attribute form to derived attributeRWInstanceaddLayout(java.lang.String key, java.lang.String beforeKey, java.lang.String name)voidaddMetric(java.lang.String keyContext, java.lang.String unitDisplayName, java.lang.String unitID, int unitType, int unitPosition)Add a metric to a gridgraph in an RWRWInstanceaddPercentToTotalMetric(java.lang.String key, WebPercentToTotalMetric metric)Adds percent-to-total metric to specified gridRWInstanceaddQuickCalculationGroup(java.lang.String key, java.lang.String deName, java.lang.String attId, int depth, int[] ordinals, int function, java.lang.String sliceId)RWInstanceaddQuickListGroup(java.lang.String key, java.lang.String deName, java.lang.String attId, int depth, int[] ordinals, java.lang.String sliceId)RWInstanceaddRankMetric(java.lang.String key, WebRankMetric metric)Adds new rank metric to specified gridRWInstanceaddShortcutMetric(java.lang.String datasetID, java.lang.String datasetType, java.lang.String nodeKey, java.lang.String treeType, int functionType, int functionType2, java.util.List<WebObjectInfo> unitsInfo)Add shortcut metric to a given dataset and optionally a given templateRWInstanceaddTemplateFromDataSet(java.lang.String dataSetId, java.lang.String key, java.lang.String parentKey, java.lang.String name, java.lang.String left, java.lang.String top, java.lang.String width, java.lang.String height, java.lang.String zIndex, int displayMode)Adds a template unit containing a copy of the data set's templateRWInstanceaddTemplateFromDataSet(java.lang.String dataSetId, java.lang.String key, java.lang.String parentKey, java.lang.String name, java.lang.String left, java.lang.String top, java.lang.String width, java.lang.String height, java.lang.String zIndex, int displayMode, boolean linked, java.lang.String styleId)Adds a template unit containing a copy of the data set's templateRWInstanceaddTemplateFromDataSet(java.lang.String dataSetId, java.lang.String key, java.lang.String parentKey, java.lang.String name, java.lang.String left, java.lang.String top, java.lang.String width, java.lang.String height, java.lang.String zIndex, int displayMode, boolean linked, java.lang.String styleId, boolean applyToAllViews)Adds a template unit containing a copy of the data set's templateRWInstanceaddTransactionReport(java.lang.String keyContext, java.lang.String transactionElementID, int transactionElementType, boolean applyChanges)Associate a transaction report with a rwGridGraph unit or rwFieldGroupUnitRWInstanceadvSort(java.lang.String nodeKey, int treeType, boolean clearSorts, WebSortConfig config, boolean applyNow, boolean isAdvSort)Apply multiple sort rules to the gridRWInstanceapplyAttributeLinking(boolean unlink, java.lang.String srcAttrID, java.lang.String srcFormIDs, java.lang.String tgtAttrIDs, java.lang.String tgtFormsIDs)Apply linking or unlinking attributesRWInstanceapplyAttributeRemapping(java.lang.String datasetID, int datasetType, java.lang.String tarDatasetID, int tarDatasetType, java.lang.String srcID, java.lang.String tarID)Apply or cancel attribute re-mappingRWInstanceapplyChanges()Applys all accumulated changesRWInstanceapplyGraphControlAction(java.lang.String nodeKey, int sliceID, int x, int y)Sects control selection based on graph areaRWInstanceapplySegment(java.lang.String segmentID, java.lang.String keyContext, boolean applyChanges)Apply a Segment to the RWInstanceRWInstanceapplyStyleByID(java.lang.String key, java.lang.String id)Apply a style by style DSSID.RWInstanceapplyTheme(java.lang.String themeID, boolean applyChanges)Apply theme to this RWInstanceRWInstanceapplyThemeOnNode(java.lang.String themeID, RWUnitDef unit, boolean isLink, boolean applyChanges)Apply theme on specified nodeRWInstancecancel(int stateID)Cancels current updates and resets object to specified stateRWInstancechangeDerivedAttributeName(java.lang.String attributeId, java.lang.String dataSetId, java.lang.String name)change derived attribute nameRWInstancechangeDerivedMetric(java.lang.String metricId, java.lang.String dataSetId, java.lang.String formula, java.lang.String alias)Changes derived metricRWInstancechangeDerivedMetric(java.lang.String metricId, java.lang.String dataSetId, java.lang.String formula, java.lang.String alias, java.lang.Boolean isTokenStream, java.lang.Boolean aggregateFromBase)Changes derived metricRWInstancechangeTemplateLinkToDataSet(java.lang.String key, java.lang.String dataSetID, boolean linked)Changes the property of the template from being linked to unlinked or vise-versavoidchangeUnitName(java.lang.String keyContext, java.lang.String unitID, int unitType, java.lang.String unitName)RWInstanceclearAllSorts(java.lang.String nodeKey, int treeType)RWInstanceclearControlSorts(java.lang.String keyContext, boolean applyChanges)Clears all sorts for a givent controlvoidcopyToClipboard(java.lang.String[] keys)Copies units to clipboardRWUnitDefcopyUnit(java.lang.String fieldKey, java.lang.String newKey, java.lang.String newParentKey, java.lang.String beforeKey)Copyes specified unit to specified sectionvoidcutToClipboard(java.lang.String[] keys)Cuts units to clipboardRWInstancedrill(java.lang.String drillKey, java.lang.String[] drillElements, java.util.Map drillProperties)Drills on the current RW instance using the drill path key and settings passed as arguments.RWInstanceduplicatePanel(RWUnitDef panel, java.lang.String name)RWInstanceduplicatePanelStacks(java.lang.String[] keys, java.lang.String[] names, float offset)RWInstanceeditDocumentView(java.lang.String name, int resolutionX, int resolutionY, int density, int orientation, int index, boolean applyChanges)Edit a document viewRWInstancefilterOnSelections(java.lang.String[] drillElements, java.util.Map drillProperties, java.lang.String nodeKey)RWInstanceforceApplyChanges()If we have delta on the manipulator, we must force to apply changesWebPercentToTotalMetricgetNewPercentToTotalMetric(java.lang.String key, WebMetric metric)Returns a new instance of theWebPercentToTotalMetricobject.WebRankMetricgetNewRankMetric(java.lang.String key, WebMetric metric)Returns a new instance of theWebRankMetricobject.WebSortConfiggetNewSortConfig(int sortType)RWInstanceimportDocument(java.lang.String id, java.lang.String beforeKey, boolean isTemplate)RWInstanceimportDocument(java.lang.String id, java.lang.String beforeKey, int importDocumentOption)RWInstancemakeTabular()Makes all grids within this document tabular.RWInstancemoveLayout(java.lang.String key, java.lang.String beforeKey)RWUnitDefmoveUnit(java.lang.String key, java.lang.String newParentKey, java.lang.String beforeKey)Moves a unit to a new ownerRWUnitDef[]pasteFromClipboard(java.lang.String newParentKey, java.lang.String[] newKeys)Pastes units from clipboard to a subsectionRWInstanceperformActionOnActionSelector(java.lang.String keyContext, int action, boolean applyChanges)Perform and action on an ActionSelector.voidpivotTemplateUnit(java.lang.String keyContext, java.lang.String unitID, int unitType, int dAxis, int dPos)Pivot the template unit specified to a new axis and positionRWInstancepopulateTemplateFromDataSet(java.lang.String _dsId, int _dsType, java.lang.String _templateKey, int _populateOption)Populates document template unit with data set templateRWInstanceredo(int stateID)RWInstancerefresh()Convenience method.RWInstancerefresh(boolean reprompt)Refreshes the current state of the instance.RWInstancerefresh(boolean reprompt, boolean rerun)Refreshes the instance.RWInstancerefresh(boolean reprompt, boolean rerun, boolean regenerate)RWInstancerefresh(boolean reprompt, boolean rerun, boolean regenerate, int stateID)RWInstancerefresh(java.lang.String promptAnswerXML)Uses the prompt answer to refresh the report.RWInstanceremoveDocumentView(int index, boolean applyChanges)Remove a document view at specified indexRWInstanceremoveFormFromDerivedAttribute(java.lang.String attributeId, java.lang.String dataSetId, java.lang.String formId)remove attribute form from derived attributeRWInstanceremoveLayout(java.lang.String key)RWInstanceremoveLayout(java.lang.String key, boolean isCurrent)RWInstanceremoveThemeOnNode(RWUnitDef unit, boolean applyChanges)remove theme on specified nodeRWInstanceremoveTransactionInfoOnField(java.lang.String keyContext, java.lang.String fieldKey, boolean applyChanges)Clear the transaction information for text fieldsRWInstanceremoveTransactionInfoOnGridObject(java.lang.String keyContext, java.lang.String objectID, int objectType, java.lang.String attributeFormID, boolean applyChanges)Clear the transaction information for attribute form/metric on a gridRWInstanceremoveTransactionReport(java.lang.String keyContext, boolean applyChanges)RWUnitDefremoveUnit(java.lang.String key)Removes a unit with specified keyRWInstancereplaceDataSet(java.lang.String oldDataSetID, java.lang.String newDataSetID, int oldDSType, int newDSType)replace the old dataset with the new oneRWInstancereplaceDataSet(java.lang.String oldDataSetID, java.lang.String newDataSetID, int oldDSType, int newDSType, boolean applyChanges)replace the old dataset with the new oneRWInstancereplaceDataSetKeepDerivedObjects(java.lang.String oldDataSetID, java.lang.String newDataSetID, boolean clearAliasAndFormatting, boolean applyChanges)Function providing the ability to replace a dataset while retaining all of the derived metrics and their definitionsRWInstancereplaceDataSetReplaceMap(java.lang.String oldDataSetID, java.lang.String newDataSetID, boolean clearAliasAndFormatting, java.util.HashMap<java.lang.String,java.lang.String> resolutionMap, boolean applyChanges)Function providing the ability to replace a dataset, replacing or removing objects on the document based on the HashMap.RWInstanceresetSelections(java.lang.String keyContext)Reset document selectionsRWInstancesetAutomaticTransactionRecordNumber(java.lang.String keyContext, int recordNumber, boolean applyChanges)Set the number of rows that will be automatically transactedRWInstancesetAvailableActionTypesForControl(java.lang.String keyContext, int actionType, boolean applyChanges)Set the available control types in a controlRWInstancesetControlAttributeForms(java.lang.String keyContext, java.util.List<java.lang.String> formIDs, boolean applyChanges)Set forms for custom control formsRWInstancesetControlAttributeFormsDelimeter(java.lang.String keyContext, java.lang.String delimiter, boolean applyChanges)Set delimiter for custom control formsRWInstancesetControlAttributeFormsDisplayType(java.lang.String keyContext, int displayType, boolean applyChanges)Set display type for control formsRWInstancesetControlCurrentElementStatusToUnset(java.lang.String keyContext, boolean applyChanges)Sets the control status to unsetRWInstancesetControlDisplayText(java.lang.String keyContext, java.lang.String displayText, boolean applyChanges)Set the display text for the action selectorRWInstancesetControlExpression(java.lang.String keyContext, int controlType, WebExpression expression, boolean applyChanges)Set the expression for a conditional selectorRWInstancesetControlSubsquentAction(java.lang.String keyContext, int action, boolean applyChanges)Set the subsequent action in the action control after submit.RWInstancesetControlSubsquentActionObject(java.lang.String keyContext, int controlType, java.lang.String objectID, int objectType, java.lang.String objectName, boolean applyChanges)Set the subsequent action in the action control after submit.RWInstancesetControlSubsquentDisplayMessage(java.lang.String keyContext, java.lang.String displayMessage, boolean applyChanges)Set message to display after perform the action using action selector.RWInstancesetControlTexts(java.lang.String keyContext, java.util.List<java.lang.String> texts, boolean applyChanges)Sets current control's text selectionsRWInstancesetControlUnsetStatus(java.lang.String keyContext, int unsetStatus, int unsetCount, boolean applyChanges)Set the unset status of the control specified by keyContextRWInstancesetCurrentControlElements(java.lang.String key, java.util.List elementIds, boolean applyChanges)Sets current control selectionRWInstancesetCurrentControlElements(java.lang.String key, java.util.List elementIds, boolean isInList, boolean applyChanges)Sets current control selection.RWInstancesetCurrentDocumentView(int index, boolean applyChanges)set the current document view with the specified indexRWInstancesetCurrentGroupByElement(java.lang.String groupKey, java.lang.String elementId)Sets current group by elementRWInstancesetCurrentGroupByElement(java.lang.String groupKey, java.lang.String elementId, boolean applyChanges)Sets current group by element.RWInstancesetCurrentGroupByElement(java.lang.String groupKey, java.lang.String elementId, int flags, boolean applyChanges)Sets current group by element.RWInstancesetCurrentGroupByElementByUnitID(java.lang.String unitID, int unitType, java.lang.String elementId, boolean applyChanges)Set the current group-by using unitIDRWInstancesetCurrentLayout(int index, boolean applyChanges)Set the current layout by 0-based indexRWInstancesetCurrentLayout(java.lang.String key)voidsetCurrentPanel(java.lang.String keyContext, java.lang.String panelKey)Sets panel stack current panelvoidsetDisplayMode(java.lang.String keyContext, int viewMode)Sets document template unit display modeRWInstancesetGridViewFilter(java.lang.String unitKey, java.lang.String filterXML)RWInstancesetNextCurrentGroupByElement(int elementAction)Movets to another group by elementRWInstancesetTemplateUnitProperties(java.lang.String nodeKey, int treeType, java.lang.String unitID, int unitType, boolean applyNow)Apply the changed properties of a template unitRWInstancesetTransactionChangeType(java.lang.String keyContext, int changeType, boolean applyChanges)Set the transaction change type in the filed group node or gridGraph node.RWInstancesetTransactionInfoOnField(java.lang.String keyContext, java.lang.String fieldKey, int mappedColumnIndex, int transactionFlags, java.lang.String inputControlKey, java.lang.String inputControlProperties, boolean applyChanges)Set transaction information for text fieldsRWInstancesetTransactionInfoOnGridObject(java.lang.String keyContext, java.lang.String objectID, int objectType, java.lang.String attributeFormID, int mappedColumnIndex, int transactionFlags, java.lang.String inputControlKey, java.lang.String inputControlProperties, boolean applyChanges)Set transaction information for attribute form/metric on a gridRWInstanceshowAllThresholds(java.lang.String nodeKey, boolean enable)Enables/disables report thresholdsvoidshowSubtotals(java.lang.String keyContext, java.lang.String unitID, int unitType, java.lang.String subtotalType, boolean isAdd)RWInstancesortGrid(java.lang.String nodeKey, int treeType, boolean clearSorts, WebSortConfig config, boolean applyNow)RWInstancetoggleDataServeMode(java.lang.String dsid, int type, int mode)RWInstanceundo(int stateID)RWInstanceupdateDerivedAttributeForm(java.lang.String attributeId, java.lang.String dataSetId, java.lang.String formId, java.lang.String name, java.lang.String formula, java.lang.Integer bft, java.lang.Boolean isTokenStream, java.lang.Boolean isDisplayForm)update form of derived attributevoidupdateTemplateUnits(java.lang.String keyContext, java.lang.String unitID, int unitType, int dAxis, int dPos, int actions)RWInstanceupdateTransactionData(java.lang.String changes, boolean applyChanges)Modify transaction data in the RWInstancejava.lang.StringvalidateExpression(java.lang.String tokenStreamXML, boolean isForMetric, int outFlags, int baseFormType)Check whether the token stream is validjava.lang.StringvalidateLocalTransactionExpression(WebTokenStream tokenStream, java.lang.String ctlKey, java.lang.String nodeKey)Check whether the token steam is valid 
 - 
 
- 
- 
Method Detail
- 
applyChanges
RWInstance applyChanges() throws WebObjectsException
Applys all accumulated changes- Returns:
 - a RW instance representing document after changes
 - Throws:
 WebObjectsException
 
- 
addDerivedMetricToTemplate
RWInstance addDerivedMetricToTemplate(java.lang.String key, java.lang.String formula, int position, java.lang.String name) throws WebObjectsException
Adds derived mettic to a template inside document- Parameters:
 key- Grid/graph unit keyformula- derived metric formulaposition- metric position in the collectionname- visible metric name- Returns:
 - a RW instance representing document after changes
 - Throws:
 WebObjectsException
 
- 
addDerivedMetricToTemplate
RWInstance addDerivedMetricToTemplate(java.lang.String key, java.lang.String formula, int position, java.lang.String name, java.lang.Boolean aggFromBase) throws WebObjectsException
Adds derived mettic to a template inside document- Parameters:
 key- Grid/graph unit keyformula- derived metric formulaposition- metric position in the collectionname- visible metric nameaggFromBase- flag to indicate whether the metric should aggregate from base.- Returns:
 - a RW instance representing document after changes
 - Throws:
 WebObjectsException
 
- 
addDerivedMetricToDataSet
RWInstance addDerivedMetricToDataSet(java.lang.String id, java.lang.String formula, java.lang.String name, boolean aggFromBase) throws WebObjectsException
Adds derived mettic to document data set- Parameters:
 id- data set IDformula- derived metric formulaname- visible metric nameaggFromBase- flag to indicate whether the metric should aggregate from base.- Returns:
 - a RW instance representing document after changes
 - Throws:
 WebObjectsException
 
- 
addDataSet
RWInstance addDataSet(java.lang.String _id, int _type) throws WebObjectsException
Adds data set- Parameters:
 _id- data set ID_type- data set type- Returns:
 - a RW instance representing document after changes
 - Throws:
 WebObjectsException
 
- 
addDataSet
RWInstance addDataSet(java.lang.String _id, int _type, boolean _setDefault) throws WebObjectsException
Adds data set- Parameters:
 _id- data set ID._type- data set type fromEnumDSSXMLObjectTypes._setDefault- if this parameter is true a new data set will be set as default.- Returns:
 - a RW instance representing document after changes.
 - Throws:
 WebObjectsException
 
- 
addDataSet
RWInstance addDataSet(java.lang.String[] _id, int _type, boolean _setDefault) throws WebObjectsException
Adds data set- Parameters:
 _id- Array of data set IDs._type- data set type fromEnumDSSXMLObjectTypes._setDefault- if this parameter is true a new data set will be set as default.- Returns:
 - a RW instance representing document after changes.
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
addDataSet
RWInstance addDataSet(java.lang.String[] _id, int _type, boolean _setDefault, boolean applyNow) throws WebObjectsException
Adds data set- Parameters:
 _id- Array of data set IDs._type- data set type fromEnumDSSXMLObjectTypes._setDefault- if this parameter is true a new data set will be set as default.- Returns:
 - a RW instance representing document after changes if applyNow is true.
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
applyStyleByID
RWInstance applyStyleByID(java.lang.String key, java.lang.String id) throws WebObjectsException, WebReportValidationException
Apply a style by style DSSID.- Parameters:
 key- the GridGraph object keyid- the DSSID of the style object to be applied.- Returns:
 - A 
WebReportInstanceobject with the applied style. - Throws:
 java.lang.IllegalArgumentException- Thrown when id is null or empty string.WebObjectsException- Singals an error when sending the changes to the Intelligence Server.WebReportValidationException- Signals a report validation error from the Intelligence Server.
 
- 
removeUnit
RWUnitDef removeUnit(java.lang.String key) throws WebObjectsException
Removes a unit with specified key- Parameters:
 key- unit key- Returns:
 - a removed unit or null
 - Throws:
 WebObjectsException
 
- 
moveUnit
RWUnitDef moveUnit(java.lang.String key, java.lang.String newParentKey, java.lang.String beforeKey) throws WebObjectsException
Moves a unit to a new owner- Parameters:
 key- unit keynewParentKey- new parent keybeforeKey- before key- Returns:
 - the moved unit
 - Throws:
 WebObjectsException
 
- 
copyUnit
RWUnitDef copyUnit(java.lang.String fieldKey, java.lang.String newKey, java.lang.String newParentKey, java.lang.String beforeKey) throws WebObjectsException
Copyes specified unit to specified section- Parameters:
 fieldKey- unit keynewKey- a key to be assigned to a new unitnewParentKey- key of the section where a copy shall be createdbeforeKey- if not null represents a key of the new parent section child before which a new unit shall be added- Returns:
 - new (copyed) unit
 - Throws:
 WebObjectsException
 
- 
copyToClipboard
void copyToClipboard(java.lang.String[] keys) throws WebObjectsExceptionCopies units to clipboard- Parameters:
 keys- array of unit keys- Throws:
 WebObjectsException
 
- 
cutToClipboard
void cutToClipboard(java.lang.String[] keys) throws WebObjectsExceptionCuts units to clipboard- Parameters:
 keys- array of unit keys- Throws:
 WebObjectsException
 
- 
pasteFromClipboard
RWUnitDef[] pasteFromClipboard(java.lang.String newParentKey, java.lang.String[] newKeys) throws WebObjectsException
Pastes units from clipboard to a subsection- Parameters:
 newParentKey- subsection keynewKeys- keys to be assigned to newly created units- Returns:
 - an array of newly created units, that are copies of units on clipboard.
 - Throws:
 WebObjectsException
 
- 
addTemplateFromDataSet
RWInstance addTemplateFromDataSet(java.lang.String dataSetId, java.lang.String key, java.lang.String parentKey, java.lang.String name, java.lang.String left, java.lang.String top, java.lang.String width, java.lang.String height, java.lang.String zIndex, int displayMode) throws WebObjectsException
Adds a template unit containing a copy of the data set's template- Parameters:
 dataSetId- data set IDkey- new node's keyparentKey- a key of the section where a new unit will be createdleft- left position of the new unit. If this parameter is empty corresponding default vaue is used.top- top position of the new unit. If this parameter is empty corresponding default vaue is used.width- width of the new unit. If this parameter is empty corresponding default vaue is used.height- height of the new unit. If this parameter is empty corresponding default vaue is used.displayMode- displayMode of the new unit. Should be a value from the enumerationEnumDSSXMLDisplayMode. If this parameter is -1, then the value is ignored- Returns:
 - RWInstance new instance
 - Throws:
 WebObjectsException
 
- 
addTemplateFromDataSet
RWInstance addTemplateFromDataSet(java.lang.String dataSetId, java.lang.String key, java.lang.String parentKey, java.lang.String name, java.lang.String left, java.lang.String top, java.lang.String width, java.lang.String height, java.lang.String zIndex, int displayMode, boolean linked, java.lang.String styleId) throws WebObjectsException
Adds a template unit containing a copy of the data set's template- Parameters:
 dataSetId- data set IDkey- new node's keyparentKey- a key of the section where a new unit will be createdleft- left position of the new unit. If this parameter is empty corresponding default vaue is used.top- top position of the new unit. If this parameter is empty corresponding default vaue is used.width- width of the new unit. If this parameter is empty corresponding default vaue is used.height- height of the new unit. If this parameter is empty corresponding default vaue is used.displayMode- displayMode of the new unit. Should be a value from the enumerationEnumDSSXMLDisplayMode. If this parameter is -1, then the value is ignoredlinked- indicates whether the template being created should be linked to the dataset. If so, the template cannot be modified from within the rwInstance- Returns:
 - RWInstance new instance
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
addTemplateFromDataSet
RWInstance addTemplateFromDataSet(java.lang.String dataSetId, java.lang.String key, java.lang.String parentKey, java.lang.String name, java.lang.String left, java.lang.String top, java.lang.String width, java.lang.String height, java.lang.String zIndex, int displayMode, boolean linked, java.lang.String styleId, boolean applyToAllViews) throws WebObjectsException
Adds a template unit containing a copy of the data set's template- Parameters:
 dataSetId- data set IDkey- new node's keyparentKey- a key of the section where a new unit will be createdleft- left position of the new unit. If this parameter is empty corresponding default vaue is used.top- top position of the new unit. If this parameter is empty corresponding default vaue is used.width- width of the new unit. If this parameter is empty corresponding default vaue is used.height- height of the new unit. If this parameter is empty corresponding default vaue is used.displayMode- displayMode of the new unit. Should be a value from the enumerationEnumDSSXMLDisplayMode. If this parameter is -1, then the value is ignoredlinked- indicates whether the template being created should be linked to the dataset. If so, the template cannot be modified from within the rwInstanceapplyToAllViews- apply format to all views- Returns:
 - RWInstance new instance
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.2.1m
 
 
- 
changeTemplateLinkToDataSet
RWInstance changeTemplateLinkToDataSet(java.lang.String key, java.lang.String dataSetID, boolean linked) throws WebObjectsException
Changes the property of the template from being linked to unlinked or vise-versa- Parameters:
 key- the key of the template nodedataSetID- the id of the dataset to which it should be linked or from which it should be unlinked- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setCurrentGroupByElement
RWInstance setCurrentGroupByElement(java.lang.String groupKey, java.lang.String elementId) throws WebObjectsException
Sets current group by element- Parameters:
 groupKey- group by keyelementId- element ID- Returns:
 - an instance containing new group by page
 - Throws:
 WebObjectsException
 
- 
setCurrentGroupByElement
RWInstance setCurrentGroupByElement(java.lang.String groupKey, java.lang.String elementId, boolean applyChanges) throws WebObjectsException
Sets current group by element. If the applyChanges parameters istrue,applyChanges()is executed and a new RWInstance containing the selected group-by is returned, otherwise the manipulations is only stored in deltas and the same RWInstance is returned.- Parameters:
 groupKey- group by keyelementId- element IDapplyChanges- whether to call applyChanges- Returns:
 - an instance containing new group by page
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.0.2
 
 
- 
setCurrentGroupByElement
RWInstance setCurrentGroupByElement(java.lang.String groupKey, java.lang.String elementId, int flags, boolean applyChanges) throws WebObjectsException
Sets current group by element. If the applyChanges parameters istrue,applyChanges()is executed and a new RWInstance containing the selected group-by is returned, otherwise the manipulations is only stored in deltas and the same RWInstance is returned.- Parameters:
 groupKey- group by keyelementId- element IDflags- flags controlling group by behavior:- 0
 - - apply group by changes only to the current layout;
 - 1
 - - apply group by changes to all layouts with matching group by paths;
 - 2
 - - apply group by changes to all layouts containing changed group by units;
 
applyChanges- whether to call applyChanges- Returns:
 - an instance containing new group by page
 - Throws:
 WebObjectsException
 
- 
setNextCurrentGroupByElement
RWInstance setNextCurrentGroupByElement(int elementAction) throws WebObjectsException
Movets to another group by element- Parameters:
 elementAction- action fromEnumDSSXMLCurrentElementAction- Returns:
 - a instance containing new group by page
 - Throws:
 WebObjectsException
 
- 
setCurrentGroupByElementByUnitID
RWInstance setCurrentGroupByElementByUnitID(java.lang.String unitID, int unitType, java.lang.String elementId, boolean applyChanges) throws WebObjectsException
Set the current group-by using unitID- Parameters:
 unitID-StringGUID of unitunitType- int fromEnumDSSXMLObjectTypeselementID-Stringcontaining the element IDapplyChanges- boolean specifying whether the changes should be applied after the manipulation- Returns:
 RWInstancecontaining changes if applyChanges is true. Without changes if applyChanges is false- Throws:
 WebObjectsException
 
- 
showAllThresholds
RWInstance showAllThresholds(java.lang.String nodeKey, boolean enable) throws WebObjectsException
Enables/disables report thresholds- Parameters:
 nodeKey- Grid/graph node keyenable- if true thresholds are enabled, othrerwise they are disabled- Returns:
 - a instance with new data
 - Throws:
 WebObjectsException
 
- 
getNewPercentToTotalMetric
WebPercentToTotalMetric getNewPercentToTotalMetric(java.lang.String key, WebMetric metric) throws java.lang.IllegalArgumentException, WebObjectsException
Returns a new instance of theWebPercentToTotalMetricobject. This derived metric is based on the specified metric on the template or working set.- Parameters:
 metric- TheWebMetricobject used to create the derived metric.- Returns:
 - the 
WebPercentToTotalMetricobject created. - Throws:
 java.lang.IllegalArgumentException- thrown if the metric is null or does not exist in the template or in the working set.WebObjectsException- Signals an error when sending the changes to the Intelligence Server.
 
- 
getNewRankMetric
WebRankMetric getNewRankMetric(java.lang.String key, WebMetric metric) throws java.lang.IllegalArgumentException, WebObjectsException
Returns a new instance of theWebRankMetricobject. This derived metric is based on the specified metric on the template or working set.- Parameters:
 metric- TheWebMetricobject used to create the derived metric.- Returns:
 - The 
WebRankMetricobject created. - Throws:
 java.lang.IllegalArgumentException- thrown if the metric is null or does not exist in the template or in the working set.WebObjectsException- Signals an error when sending the changes to the Intelligence Server.
 
- 
addPercentToTotalMetric
RWInstance addPercentToTotalMetric(java.lang.String key, WebPercentToTotalMetric metric) throws java.lang.IllegalArgumentException, WebObjectsException
Adds percent-to-total metric to specified grid- Parameters:
 key- Grid/graph node keymetric- metric- Returns:
 - RWInstance new instance containing added metric
 - Throws:
 java.lang.IllegalArgumentExceptionWebObjectsException
 
- 
addRankMetric
RWInstance addRankMetric(java.lang.String key, WebRankMetric metric) throws java.lang.IllegalArgumentException, WebObjectsException
Adds new rank metric to specified grid- Parameters:
 key- Grid/graph node keymetric- metric- Returns:
 - RWInstance new instance containing added metric
 - Throws:
 java.lang.IllegalArgumentExceptionWebObjectsException
 
- 
refresh
RWInstance refresh(boolean reprompt, boolean rerun) throws WebObjectsException
Refreshes the instance.- Parameters:
 reprompt- whether the prompts will be reopenedrerun- whether to re-execute the instance- Returns:
 - the new instance
 - Throws:
 WebObjectsException- if a problem occurs when attempting to rerun- Since:
 - MicroStrategy Web 8.0.1
 
 
- 
refresh
RWInstance refresh(boolean reprompt) throws WebObjectsException
Refreshes the current state of the instance. All the changes that have been accumulated thus far are going to be applied- Parameters:
 reprompt-- Returns:
 - new instance
 - Throws:
 WebObjectsException
 
- 
drill
RWInstance drill(java.lang.String drillKey, java.lang.String[] drillElements, java.util.Map drillProperties) throws WebObjectsException
Drills on the current RW instance using the drill path key and settings passed as arguments.- Parameters:
 drillKey- This is the key to the drill path to be used for drilling. The drill key can be obtained fromWebDrillPath#getKey()drillElements- This is a string array of the drill elements representing the user filter. Each drill element is represented by an identifier (String) that can be obtained fromWebHeader#getDrillElement()drillProperties- This should be a map of drill settings that the user wants to override while drilling. The keys in the map should be fromEnumWebDrillProperties. Based on the type of drill property (int/boolean), following are the object types that can be passed as values in the Map :
[1] For a drill property that can have integer values, an Integer or String object, wrapping the (integer) value, should be set.
[2] For a drill property that can have only boolean values, a Boolean or String object representing the (boolean) value should be set. The String object should have values {"true", "false", "1", "0"} only.- Returns:
 - the new instance upon drilling.
 - Throws:
 WebObjectsException- signal error encountered by IServer while executing the drill.- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
filterOnSelections
RWInstance filterOnSelections(java.lang.String[] drillElements, java.util.Map drillProperties, java.lang.String nodeKey) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
refresh
RWInstance refresh() throws WebObjectsException
Convenience method. Callsrefresh(boolean)with false- Returns:
 - new instance
 - Throws:
 WebObjectsException
 
- 
refresh
RWInstance refresh(java.lang.String promptAnswerXML) throws WebObjectsException
Uses the prompt answer to refresh the report.- Returns:
 - new instance
 - Throws:
 WebObjectsException
 
- 
changeDerivedMetric
RWInstance changeDerivedMetric(java.lang.String metricId, java.lang.String dataSetId, java.lang.String formula, java.lang.String alias) throws WebObjectsException
Changes derived metric- Parameters:
 metricId- metric IDdataSetId- data set IDformula- new metric formulaalias- new metric alias- Returns:
 - document instance
 - Throws:
 WebObjectsException
 
- 
setCurrentControlElements
RWInstance setCurrentControlElements(java.lang.String key, java.util.List elementIds, boolean applyChanges) throws WebObjectsException
Sets current control selection- Parameters:
 key- control keyelementIds- list of selected elementsapplyChanges- if true the changes will be applied immediately- Returns:
 - document instance
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
setCurrentControlElements
RWInstance setCurrentControlElements(java.lang.String key, java.util.List elementIds, boolean isInList, boolean applyChanges) throws WebObjectsException
Sets current control selection. Does not change the inList state of selector- Parameters:
 key- control keyelementIds- list of selected elementsisInList- the current isInList state of the controlapplyChanges- if true the changes will be applied immediately- Returns:
 - document instance
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
applyGraphControlAction
RWInstance applyGraphControlAction(java.lang.String nodeKey, int sliceID, int x, int y) throws WebObjectsException
Sects control selection based on graph area- Parameters:
 nodeKey- graph keysliceID- slice IDx- x cursor positiony- y cursor position- Returns:
 - documrnt instance
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
makeTabular
RWInstance makeTabular() throws WebObjectsException
Makes all grids within this document tabular.- Returns:
 - document instance
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
addDataSetAndTemplate
RWInstance addDataSetAndTemplate(java.lang.String _dsId, int _dsType, java.lang.String _templateKey, int populateOption) throws WebObjectsException
Adds specified data set to document and copies it's template to specified document template- Parameters:
 _dsId- data set ID_dsType- data set type_templateKey- document template unit keypopulateOption- populate option- Returns:
 - RWInstance document instance
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
populateTemplateFromDataSet
RWInstance populateTemplateFromDataSet(java.lang.String _dsId, int _dsType, java.lang.String _templateKey, int _populateOption) throws WebObjectsException
Populates document template unit with data set template- Parameters:
 _dsId- data set ID_dsType- data set type_templateKey- document template unit key_populateOption- populate option- Returns:
 - RWInstance document instance
 - Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
setCurrentPanel
void setCurrentPanel(java.lang.String keyContext, java.lang.String panelKey)Sets panel stack current panel- Parameters:
 keyContext- panel stak key in server-specific formatpanelKey- panel key- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
setDisplayMode
void setDisplayMode(java.lang.String keyContext, int viewMode)Sets document template unit display mode- Parameters:
 keyContext- template unit key in server-specific formatviewMode- view mode (seeEnumWebReportViewMode)- Since:
 - MicroStrategy Web 8.1.0
 
 
- 
pivotTemplateUnit
void pivotTemplateUnit(java.lang.String keyContext, java.lang.String unitID, int unitType, int dAxis, int dPos)Pivot the template unit specified to a new axis and position- Parameters:
 keyContext- String containing the tree id and grid/graph's RW keyunitID- String containing the template unit's id. Null for metricsunitType- int specifying the template unit's type (fromEnumDSSXMLObjectTypes)dAxis- int specifying the new axis name fromEnumDSSXMLAxisNamedPos- int specifying the new axis position
 
- 
updateTemplateUnits
void updateTemplateUnits(java.lang.String keyContext, java.lang.String unitID, int unitType, int dAxis, int dPos, int actions) 
- 
changeUnitName
void changeUnitName(java.lang.String keyContext, java.lang.String unitID, int unitType, java.lang.String unitName) 
- 
showSubtotals
void showSubtotals(java.lang.String keyContext, java.lang.String unitID, int unitType, java.lang.String subtotalType, boolean isAdd) 
- 
addAttributeForm
void addAttributeForm(java.lang.String keyContext, java.lang.String attributeID, java.lang.String formID, int index)Add an attribute form to a gridgraph in an RW- Parameters:
 keyContext- String containing the tree id and grid/graph's RW keyattributeID- String containing the attribute id for which the form will be addedformID- String containing the attribute's form IDindex- int specifying the new position of the form relative to the attributes template unit's position (1-starting)
 
- 
addMetric
void addMetric(java.lang.String keyContext, java.lang.String unitDisplayName, java.lang.String unitID, int unitType, int unitPosition)Add a metric to a gridgraph in an RW- Parameters:
 keyContext- String containing the tree id and grid/graph's RW keyunitDisplayName-unitID- String containing the metric's idunitType- int specifying the metric's type (fromEnumDSSXMLObjectTypes)unitPosition- int specifying the new position within the metrics collection
 
- 
addLayout
RWInstance addLayout(java.lang.String key, java.lang.String beforeKey, java.lang.String name) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
removeLayout
RWInstance removeLayout(java.lang.String key) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
removeLayout
RWInstance removeLayout(java.lang.String key, boolean isCurrent) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.1
 
 
- 
moveLayout
RWInstance moveLayout(java.lang.String key, java.lang.String beforeKey) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setCurrentLayout
RWInstance setCurrentLayout(java.lang.String key) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
setCurrentLayout
RWInstance setCurrentLayout(int index, boolean applyChanges) throws WebObjectsException
Set the current layout by 0-based index- Parameters:
 index- int 0-based index of new layout- Returns:
 - RWInstance containing changes
 - Throws:
 WebObjectsException
 
- 
importDocument
RWInstance importDocument(java.lang.String id, java.lang.String beforeKey, boolean isTemplate) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
importDocument
RWInstance importDocument(java.lang.String id, java.lang.String beforeKey, int importDocumentOption) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 10.8.0
 
 
- 
refresh
RWInstance refresh(boolean reprompt, boolean rerun, boolean regenerate) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
refresh
RWInstance refresh(boolean reprompt, boolean rerun, boolean regenerate, int stateID) throws WebObjectsException
- Throws:
 WebObjectsException
 
- 
addQuickListGroup
RWInstance addQuickListGroup(java.lang.String key, java.lang.String deName, java.lang.String attId, int depth, int[] ordinals, java.lang.String sliceId) throws WebObjectsException, WebReportValidationException
- Throws:
 WebObjectsExceptionWebReportValidationException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
addQuickCalculationGroup
RWInstance addQuickCalculationGroup(java.lang.String key, java.lang.String deName, java.lang.String attId, int depth, int[] ordinals, int function, java.lang.String sliceId) throws WebObjectsException, WebReportValidationException
- Throws:
 WebObjectsExceptionWebReportValidationException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
duplicatePanelStacks
RWInstance duplicatePanelStacks(java.lang.String[] keys, java.lang.String[] names, float offset) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
duplicatePanel
RWInstance duplicatePanel(RWUnitDef panel, java.lang.String name) throws WebObjectsException
- Throws:
 WebObjectsException- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
sortGrid
RWInstance sortGrid(java.lang.String nodeKey, int treeType, boolean clearSorts, WebSortConfig config, boolean applyNow) throws WebObjectsException
- Throws:
 WebObjectsException
 
- 
clearAllSorts
RWInstance clearAllSorts(java.lang.String nodeKey, int treeType) throws WebObjectsException
- Throws:
 WebObjectsException
 
- 
getNewSortConfig
WebSortConfig getNewSortConfig(int sortType)
 
- 
addDeltaXML
void addDeltaXML(java.lang.String deltaXml) throws WebObjectsExceptionAppend the DeltaXML to the current manipulator Delta- Parameters:
 deltaXml- : manipulator deltaxml- Throws:
 WebObjectsException
 
- 
setGridViewFilter
RWInstance setGridViewFilter(java.lang.String unitKey, java.lang.String filterXML) throws WebObjectsException, WebException
- Throws:
 WebObjectsExceptionWebException
 
- 
setControlCurrentElementStatusToUnset
RWInstance setControlCurrentElementStatusToUnset(java.lang.String keyContext, boolean applyChanges) throws WebObjectsException
Sets the control status to unset- Parameters:
 keyContext-Stringcontaining treeType, nodeKey, and controlKeyapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setControlUnsetStatus
RWInstance setControlUnsetStatus(java.lang.String keyContext, int unsetStatus, int unsetCount, boolean applyChanges) throws WebObjectsException
Set the unset status of the control specified by keyContext- Parameters:
 keyContext-Stringcontaining treeType, nodeKey, and controlKeyunsetStatus- int fromEnumDSSXMLRWSelectorUnsetStatusunsetCount- int number of elements to be retrieved on Default SelectionapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
replaceDataSet
RWInstance replaceDataSet(java.lang.String oldDataSetID, java.lang.String newDataSetID, int oldDSType, int newDSType) throws WebObjectsException
replace the old dataset with the new one- Parameters:
 oldDataSetID-StringnewDataSetID-StringoldDSType- int old data set type fromEnumDSSXMLObjectTypesnewDSType- int new data set type fromEnumDSSXMLObjectTypes- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
replaceDataSet
RWInstance replaceDataSet(java.lang.String oldDataSetID, java.lang.String newDataSetID, int oldDSType, int newDSType, boolean applyChanges) throws WebObjectsException
replace the old dataset with the new one- Parameters:
 oldDataSetID-StringnewDataSetID-StringoldDSType- int old data set type fromEnumDSSXMLObjectTypesnewDSType- int new data set type fromEnumDSSXMLObjectTypesapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
replaceDataSetKeepDerivedObjects
RWInstance replaceDataSetKeepDerivedObjects(java.lang.String oldDataSetID, java.lang.String newDataSetID, boolean clearAliasAndFormatting, boolean applyChanges) throws WebObjectsException
Function providing the ability to replace a dataset while retaining all of the derived metrics and their definitions- Parameters:
 oldDataSetID-StringnewDataSetID-StringclearAliasAndFormatting- Whether to clear the alias and number formatting, false = Don't Clear, true = ClearapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
replaceDataSetReplaceMap
RWInstance replaceDataSetReplaceMap(java.lang.String oldDataSetID, java.lang.String newDataSetID, boolean clearAliasAndFormatting, java.util.HashMap<java.lang.String,java.lang.String> resolutionMap, boolean applyChanges) throws WebObjectsException
Function providing the ability to replace a dataset, replacing or removing objects on the document based on the HashMap. Any Derived object not explicitly removed will be placed on the newDataSet- Parameters:
 oldDataSetID-StringnewDataSetID-StringclearAliasAndFormatting- Whether to clear the alias and number formatting, false = Don't Clear, true = ClearapplyChanges- boolean specifying whether to apply the changes nowresolutionMap- a HashMap which will provide a mapping for reconciliation,. If a targetGUID is null we can assume we are removing the object from the dataset. - Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setControlExpression
RWInstance setControlExpression(java.lang.String keyContext, int controlType, WebExpression expression, boolean applyChanges) throws WebObjectsException
Set the expression for a conditional selector- Parameters:
 keyContext-Stringcontaining either control key or treeType|nodeKey|controlKeycontrolType- int fromEnumDSSXMLRWControlTypeexpression-WebExpressionobject containing expression informationapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
addTransactionReport
RWInstance addTransactionReport(java.lang.String keyContext, java.lang.String transactionElementID, int transactionElementType, boolean applyChanges) throws WebObjectsException
Associate a transaction report with a rwGridGraph unit or rwFieldGroupUnit- Parameters:
 nodeKey-Stringthe key of the rwGridGraph unit/RWfieldGroupUnittransactionElementID-Stringtransaction element IDtransactionElementType- int transaction element TypeapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
removeTransactionReport
RWInstance removeTransactionReport(java.lang.String keyContext, boolean applyChanges) throws WebObjectsException
- Parameters:
 keyContext-StringapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setTransactionInfoOnGridObject
RWInstance setTransactionInfoOnGridObject(java.lang.String keyContext, java.lang.String objectID, int objectType, java.lang.String attributeFormID, int mappedColumnIndex, int transactionFlags, java.lang.String inputControlKey, java.lang.String inputControlProperties, boolean applyChanges) throws WebObjectsException
Set transaction information for attribute form/metric on a grid- Parameters:
 keyContext-StringobjectID-StringattributeID/metricIDobjectType- int the dssType of this unitattributeFormID-Stringthe attribute formID if it is for attributeFormmappedColumnIndex- int the columnIndex in the transactionReport this object mapped totransactionFlags- int the new transaction flags refer toEnumDSSXMLUnitTransactionFlagsinputControlKey-Stringthe controlKey for the inputControlinputControlProperties-Stringthe control format properties for the inputControlapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
removeTransactionInfoOnGridObject
RWInstance removeTransactionInfoOnGridObject(java.lang.String keyContext, java.lang.String objectID, int objectType, java.lang.String attributeFormID, boolean applyChanges) throws WebObjectsException
Clear the transaction information for attribute form/metric on a grid- Parameters:
 keyContext-StringobjectID-StringattributeID/metricIDobjectType- int the dssType of this unitattributeFormID-Stringthe attribute formID if it is for attributeFormapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setTransactionInfoOnField
RWInstance setTransactionInfoOnField(java.lang.String keyContext, java.lang.String fieldKey, int mappedColumnIndex, int transactionFlags, java.lang.String inputControlKey, java.lang.String inputControlProperties, boolean applyChanges) throws WebObjectsException
Set transaction information for text fields- Parameters:
 keyContext-StringfieldKey-StringnodeKey of the textFieldmappedColumnIndex- int the columnIndex in the transactionReport this object mapped totransactionFlags- int the new transaction flags refer toEnumDSSXMLUnitTransactionFlagsinputControlKey-Stringthe controlKey for the inputControlinputControlProperties-Stringthe control format properties for the inputControlapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
removeTransactionInfoOnField
RWInstance removeTransactionInfoOnField(java.lang.String keyContext, java.lang.String fieldKey, boolean applyChanges) throws WebObjectsException
Clear the transaction information for text fields- Parameters:
 keyContext-StringfieldKey-StringnodeKey of the textFieldapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setAvailableActionTypesForControl
RWInstance setAvailableActionTypesForControl(java.lang.String keyContext, int actionType, boolean applyChanges) throws WebObjectsException
Set the available control types in a control- Parameters:
 keyContext-StringactionType- int refer toEnumDSSXMLRWControlActionTypeapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setControlSubsquentAction
RWInstance setControlSubsquentAction(java.lang.String keyContext, int action, boolean applyChanges) throws WebObjectsException
Set the subsequent action in the action control after submit.- Parameters:
 keyContext-Stringaction- intEnumDSSXMLRWControlSubsequentActionapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setControlSubsquentActionObject
RWInstance setControlSubsquentActionObject(java.lang.String keyContext, int controlType, java.lang.String objectID, int objectType, java.lang.String objectName, boolean applyChanges) throws WebObjectsException
Set the subsequent action in the action control after submit.- Parameters:
 keyContext-StringcontrolType- intEnumDSSXMLRWControlTypeobjectID-Stringthe dssID of the object to be executed after submitobjectType- int the dssType of the object to be executed after submitobjectName-Stringthe name of the object to be executed after submitapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setControlSubsquentDisplayMessage
RWInstance setControlSubsquentDisplayMessage(java.lang.String keyContext, java.lang.String displayMessage, boolean applyChanges) throws WebObjectsException
Set message to display after perform the action using action selector.- Parameters:
 keyContext-StringdisplayMessage-Stringthe message to display after perform the action using action selectorapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setControlDisplayText
RWInstance setControlDisplayText(java.lang.String keyContext, java.lang.String displayText, boolean applyChanges) throws WebObjectsException
Set the display text for the action selector- Parameters:
 keyContext-StringdisplayText-Stringthe text to display for the action selectorapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setTransactionChangeType
RWInstance setTransactionChangeType(java.lang.String keyContext, int changeType, boolean applyChanges) throws WebObjectsException
Set the transaction change type in the filed group node or gridGraph node.- Parameters:
 keyContext-StringchangeType- intEnumDSSXMLRWNodeTransactionChangeTypeapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
setAutomaticTransactionRecordNumber
RWInstance setAutomaticTransactionRecordNumber(java.lang.String keyContext, int recordNumber, boolean applyChanges) throws WebObjectsException
Set the number of rows that will be automatically transacted- Parameters:
 keyContext-StringrecordNumber- int -1 for all rows, 0 for none, and some value > 0 for a specific number of rowsapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
updateTransactionData
RWInstance updateTransactionData(java.lang.String changes, boolean applyChanges) throws WebObjectsException
Modify transaction data in the RWInstance- Parameters:
 changes-StringapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
performActionOnActionSelector
RWInstance performActionOnActionSelector(java.lang.String keyContext, int action, boolean applyChanges) throws WebObjectsException
Perform and action on an ActionSelector.- Parameters:
 keyContext-Stringaction- intEnumDSSXMLRWControlSubsequentActionapplyChanges- boolean specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsException
 
- 
applySegment
RWInstance applySegment(java.lang.String segmentID, java.lang.String keyContext, boolean applyChanges) throws WebObjectsException, WebException
Apply a Segment to the RWInstance- Parameters:
 segmentID- the ID of the segment to be appliedkeyContext-StringapplyChanges- specifying whether to apply the changes now- Returns:
 - either current 
RWInstanceor the one generated after the applied changes - Throws:
 WebObjectsExceptionWebException
 
- 
setControlTexts
RWInstance setControlTexts(java.lang.String keyContext, java.util.List<java.lang.String> texts, boolean applyChanges) throws WebObjectsException
Sets current control's text selections- Parameters:
 keyContext-Stringcontaining either control key or treeType|nodeKey|controlKeytexts- list of textsapplyChanges- if true the changes will be applied immediately- Returns:
 - document instance
 - Throws:
 WebObjectsException
 
- 
addDocumentView
RWInstance addDocumentView(java.lang.String name, int resolutionX, int resolutionY, int density, int orientation, int index, boolean applyChanges) throws WebObjectsException
Add a new document by duplicating an existing document. Specifying the document view's properties and the source view's index.- Parameters:
 name- View nameresolutionX- X resolutionresolutionY- Y resolutiondensity- densityorientation- orientation (values in 0, 1, 2)index- Source document view's indexapplyChanges- apply Changes- Returns:
 - Throws:
 WebObjectsException
 
- 
editDocumentView
RWInstance editDocumentView(java.lang.String name, int resolutionX, int resolutionY, int density, int orientation, int index, boolean applyChanges) throws WebObjectsException
Edit a document view- Parameters:
 name- View nameresolutionX- X resolutionresolutionY- Y resolutiondensity- densityorientation- Orientation (values in 0, 1, 2)index- Index of the view to be editedapplyChanges- apply Changes- Returns:
 - Throws:
 WebObjectsException
 
- 
removeDocumentView
RWInstance removeDocumentView(int index, boolean applyChanges) throws WebObjectsException
Remove a document view at specified index- Parameters:
 index- The index of the document view to be removedapplyChanges- apply Changes- Returns:
 - Throws:
 WebObjectsException
 
- 
setCurrentDocumentView
RWInstance setCurrentDocumentView(int index, boolean applyChanges) throws WebObjectsException
set the current document view with the specified index- Parameters:
 index- The index of the view to be set as the current document viewapplyChanges-- Returns:
 - Throws:
 WebObjectsException
 
- 
setControlAttributeFormsDelimeter
RWInstance setControlAttributeFormsDelimeter(java.lang.String keyContext, java.lang.String delimiter, boolean applyChanges) throws WebObjectsException
Set delimiter for custom control forms- Parameters:
 keyContext-Stringcontaining tree type, node key, control keydelimiter-Stringcontaining delimiterapplyChanges- boolean specifying whether changes should be applied immediately- Returns:
 - either current 
RWInstanceor one generated after applied changes - Throws:
 WebObjectsException
 
- 
setControlAttributeFormsDisplayType
RWInstance setControlAttributeFormsDisplayType(java.lang.String keyContext, int displayType, boolean applyChanges) throws WebObjectsException
Set display type for control forms- Parameters:
 keyContext-Stringcontaining tree type, node key, control keydisplayType- int fromEnumDSSXMLControlAttributeFormDisplayOptionapplyChanges- boolean specifying whether changes should be applied immediately- Returns:
 - either current 
RWInstanceor one generated after applied changes - Throws:
 WebObjectsException
 
- 
setControlAttributeForms
RWInstance setControlAttributeForms(java.lang.String keyContext, java.util.List<java.lang.String> formIDs, boolean applyChanges) throws WebObjectsException
Set forms for custom control forms- Parameters:
 keyContext-Stringcontaining tree type, node key, control keyformIDs-ListcontainingStringof form IDsapplyChanges- boolean specifying whether changes should be applied immediately- Returns:
 - either current 
RWInstanceor one generated after applied changes - Throws:
 WebObjectsException
 
- 
addControlSort
RWInstance addControlSort(java.lang.String keyContext, int sortType, boolean isAscending, int subTotalsPosition, java.lang.String unitID, int unitType, java.lang.String formID, boolean applyChanges) throws WebObjectsException
Adds a sort to the specified control- Parameters:
 keyContext-Stringcontaining tree type, node key, control keysortType- int fromEnumDSSXMLSortTypeisAscending- boolean specifying whether sort is ascendingsubTotalsPosition- int fromEnumDSSXMLSubtotalsPositionunitID-Stringcontaining ID of target of sortunitType- int fromEnumDSSXMLObjectTypesformID-Stringcontaining ID of form to sort on if form is sorted on (null o/w).applyChanges- boolean specifying whether changes should be applied immediately- Returns:
 - either current 
RWInstanceor one generated after applied changes - Throws:
 WebObjectsException
 
- 
clearControlSorts
RWInstance clearControlSorts(java.lang.String keyContext, boolean applyChanges) throws WebObjectsException
Clears all sorts for a givent control- Parameters:
 keyContext-Stringcontaining tree type, node key, control keyapplyChanges- boolean specifying whether changes should be applied immediately- Returns:
 - either current 
RWInstanceor one generated after applied changes - Throws:
 WebObjectsException
 
- 
addShortcutMetric
RWInstance addShortcutMetric(java.lang.String datasetID, java.lang.String datasetType, java.lang.String nodeKey, java.lang.String treeType, int functionType, int functionType2, java.util.List<WebObjectInfo> unitsInfo) throws WebObjectsException
Add shortcut metric to a given dataset and optionally a given template- Parameters:
 datasetID-datasetType-nodeKey-treeType-functionType- the main function type for the manipulationfunctionType2- the optional second function type for the manipulationunitsInfo- theWebObjectInfocollection of the units for the manipulation- Returns:
 - current 
RWInstance - Throws:
 WebObjectsException
 
- 
applyAttributeRemapping
RWInstance applyAttributeRemapping(java.lang.String datasetID, int datasetType, java.lang.String tarDatasetID, int tarDatasetType, java.lang.String srcID, java.lang.String tarID) throws WebObjectsException
Apply or cancel attribute re-mapping- Parameters:
 datasetID- id of the source datasetdatasetType- type of the source datasettarDatasetID- id of the target datasettarDatasetType- type of the target datasetsrcID- source attribute idtarID- target attribute id, if empty, this is cancel link manipulation; else, apply link- Throws:
 WebObjectsException
 
- 
applyAttributeLinking
RWInstance applyAttributeLinking(boolean unlink, java.lang.String srcAttrID, java.lang.String srcFormIDs, java.lang.String tgtAttrIDs, java.lang.String tgtFormsIDs) throws WebObjectsException
Apply linking or unlinking attributes- Parameters:
 unlink- indicates unlinking attributessrcAttrID- id of the source attributesrcFormIDs- id of the source attribute's forms, separated by ""tgtAttrIDs- id of the target attributes to be linked or unlinked, separated by ""tgtFormsIDs- id of the target attributes's corresponding form, separated by ""- Throws:
 WebObjectsException
 
- 
advSort
RWInstance advSort(java.lang.String nodeKey, int treeType, boolean clearSorts, WebSortConfig config, boolean applyNow, boolean isAdvSort) throws WebObjectsException
Apply multiple sort rules to the grid- Parameters:
 nodeKey- The nodeKey for the current gridtreeType- The tree typeclearSorts- Do we need to clear the current sort definitions that are already applied to the gridconfig- WebSortConfigapplyNow- Do we need to apply the changes nowisAdvSort- Is this request come from advanced sort editor, if yes, clear both rows and column definitions- Returns:
 - The RWInstance
 - Throws:
 WebObjectsException
 
- 
resetSelections
RWInstance resetSelections(java.lang.String keyContext) throws WebObjectsException
Reset document selections- Parameters:
 keyContext-Stringif keyContext is null, we'll reset the whole document- Throws:
 WebObjectsException
 
- 
validateLocalTransactionExpression
java.lang.String validateLocalTransactionExpression(WebTokenStream tokenStream, java.lang.String ctlKey, java.lang.String nodeKey) throws WebObjectsException
Check whether the token steam is valid- Parameters:
 tokenStreamXML- the token stream to be validatednodeKey- Grid/graph node key- Returns:
 - parsed token stream xml
 - Throws:
 WebObjectsException
 
- 
addDerivedMetricToTemplate
RWInstance addDerivedMetricToTemplate(java.lang.String key, java.lang.String formula, int position, java.lang.String name, java.lang.Boolean aggFromBase, java.lang.Boolean isTokenStream) throws WebObjectsException
Adds derived metric to a template inside document- Parameters:
 key- Grid/graph unit keyformula- derived metric formulaposition- metric position in the collectionname- visible metric nameaggFromBase- flag to indicate whether the metric should aggregate from base.isTokenStream- flag to indicate whether the formula is a token stream- Returns:
 - a RW instance representing document after changes
 - Throws:
 WebObjectsException
 
- 
addDerivedMetricToDataSet
RWInstance addDerivedMetricToDataSet(java.lang.String id, java.lang.String formula, java.lang.String name, boolean aggFromBase, boolean isTokenStream) throws WebObjectsException
Adds derived metric to document data set- Parameters:
 id- data set IDformula- derived metric formulaname- visible metric nameaggFromBase- flag to indicate whether the metric should aggregate from base.isTokenStream- flag to indicate whether the formula is a token stream.- Returns:
 - a RW instance representing document after changes
 - Throws:
 WebObjectsException
 
- 
changeDerivedMetric
RWInstance changeDerivedMetric(java.lang.String metricId, java.lang.String dataSetId, java.lang.String formula, java.lang.String alias, java.lang.Boolean isTokenStream, java.lang.Boolean aggregateFromBase) throws WebObjectsException
Changes derived metric- Parameters:
 metricId- metric IDdataSetId- data set IDformula- new metric formulaalias- new metric aliasisTokenStream- flag to indicate whether the formula is a token stream.aggregateFromBase- new metric aggregateFromBase- Returns:
 - document instance
 - Throws:
 WebObjectsException
 
- 
validateExpression
java.lang.String validateExpression(java.lang.String tokenStreamXML, boolean isForMetric, int outFlags, int baseFormType) throws WebObjectsExceptionCheck whether the token stream is valid- Parameters:
 tokenStreamXML- the token stream to be validatedisForMetric- flag to indicate whether the token stream is for metricoutFlags- flags fromEnumDSSXMLParserOutFlagsindicating which part should be returned.baseFormType- if it's greater than 0, iserver needs to check whether the base form type is compatible with the expression.- Returns:
 - parsed token stream xml
 - Throws:
 WebObjectsException
 
- 
addDerivedAttributeToDataSet
RWInstance addDerivedAttributeToDataSet(java.lang.String dataSetId, java.lang.String name, java.lang.String formula, java.lang.Integer bft, java.lang.Boolean isTokenStream) throws WebObjectsException
add derived attribute to dataset only with id form, you can add other forms by- Parameters:
 dataSetId- dataset idname- new attribute nameformula- formula of form to add, not nullbft- base form type of form to add, null or 0 means to be determined by AEisTokenStream- flag to indicate whether the formula is a token stream, false or null means not a token stream- Returns:
 - document instance
 - Throws:
 WebObjectsException
 
- 
addDerivedAttributeToTemplate
RWInstance addDerivedAttributeToTemplate(java.lang.String key, java.lang.String name, int axisName, int position, java.lang.String formula, java.lang.Integer bft, java.lang.Boolean isTokenStream) throws WebObjectsException
Adds derived attribute to a template inside document- Parameters:
 key- Grid/graph unit keyname- visible attribute nameaxisName- the name of axis the derived attribute added toposition- attribute position in the collectionformula- formula of form to add, not nullbft- base form type of form to add, null or 0 means to be determined by AEisTokenStream- flag to indicate whether the formula is a token stream, false or null means not a token stream- Returns:
 - document instance
 - Throws:
 WebObjectsException
 
- 
changeDerivedAttributeName
RWInstance changeDerivedAttributeName(java.lang.String attributeId, java.lang.String dataSetId, java.lang.String name) throws WebObjectsException
change derived attribute name- Parameters:
 attributeId- derived attribute iddataSetId- dataset idname- new attribute name- Returns:
 - document instance after change
 - Throws:
 WebObjectsException
 
- 
addFormToDerivedAttribute
RWInstance addFormToDerivedAttribute(java.lang.String attributeId, java.lang.String dataSetId, java.lang.String formId, java.lang.String name, java.lang.Integer index, java.lang.String formula, java.lang.Integer bft, boolean applyChanges) throws WebObjectsException
add one attribute form to derived attribute- Parameters:
 attributeId- derived attribute iddataSetId- data set idformId- id of the system form to add, if null, a new managed form to addname- the new managed form name if formId is nullindex- the position of this added form, 0 or null means added to the backformula- base form formula, not nullbft- base form type, 0 or null means to be determined by AEapplyChanges- true to apply changes after this manipulation- Returns:
 - document instance after change
 - Throws:
 WebObjectsException
 
- 
updateDerivedAttributeForm
RWInstance updateDerivedAttributeForm(java.lang.String attributeId, java.lang.String dataSetId, java.lang.String formId, java.lang.String name, java.lang.String formula, java.lang.Integer bft, java.lang.Boolean isTokenStream, java.lang.Boolean isDisplayForm) throws WebObjectsException
update form of derived attribute- Parameters:
 attributeId- derived attribute iddataSetId- data set idformId- id of the form to updatename- new nameformula- new base form formulabft- new base form typeisTokenStream- true to update the formula with token streamisDisplayForm- true to add the form to display forms collection, false to remove the form from display forms collection, null to do nothing- Returns:
 - document instance after change
 - Throws:
 WebObjectsException
 
- 
removeFormFromDerivedAttribute
RWInstance removeFormFromDerivedAttribute(java.lang.String attributeId, java.lang.String dataSetId, java.lang.String formId) throws WebObjectsException
remove attribute form from derived attribute- Parameters:
 attributeId- derived attribute iddataSetId- data set idformId- id of the form to remove- Returns:
 - document instance after change
 - Throws:
 WebObjectsException
 
- 
setTemplateUnitProperties
RWInstance setTemplateUnitProperties(java.lang.String nodeKey, int treeType, java.lang.String unitID, int unitType, boolean applyNow) throws WebObjectsException
Apply the changed properties of a template unit- Parameters:
 nodeKey-treeType-unitID-unitType-applyNow-- Returns:
 - Throws:
 WebObjectsException
 
- 
undo
RWInstance undo(int stateID) throws WebObjectsException
- Throws:
 WebObjectsException
 
- 
redo
RWInstance redo(int stateID) throws WebObjectsException
- Throws:
 WebObjectsException
 
- 
toggleDataServeMode
RWInstance toggleDataServeMode(java.lang.String dsid, int type, int mode) throws WebObjectsException
- Throws:
 WebObjectsException
 
- 
cancel
RWInstance cancel(int stateID) throws WebObjectsException
Cancels current updates and resets object to specified state- Parameters:
 stateID-- Returns:
 - Throws:
 WebObjectsException
 
- 
applyTheme
RWInstance applyTheme(java.lang.String themeID, boolean applyChanges) throws WebObjectsException
Apply theme to this RWInstance- Parameters:
 themeID- the ID of the theme to applyapplyChanges- whether to call applyChanges- Returns:
 - document instance after changes
 - Throws:
 WebObjectsException
 
- 
applyThemeOnNode
RWInstance applyThemeOnNode(java.lang.String themeID, RWUnitDef unit, boolean isLink, boolean applyChanges) throws WebObjectsException
Apply theme on specified node- Parameters:
 themeID- the ID of the theme to applyunit- the definition of the nodeisLink- whether to apply a linked theme, false to apply a copied themeapplyChanges- whether to call applyChanges- Returns:
 - document instance after changes
 - Throws:
 WebObjectsException
 
- 
removeThemeOnNode
RWInstance removeThemeOnNode(RWUnitDef unit, boolean applyChanges) throws WebObjectsException
remove theme on specified node- Parameters:
 unit- the definition of the nodeapplyChanges- whether to call applyChanges- Returns:
 - document instance after changes
 - Throws:
 WebObjectsException
 
- 
forceApplyChanges
RWInstance forceApplyChanges()
If we have delta on the manipulator, we must force to apply changes- Returns:
 - document instance
 
 
 - 
 
 -