Class IPhoneReportDataXMLTransform
- java.lang.Object
 - 
- com.microstrategy.web.transform.AbstractTransform
 - 
- com.microstrategy.web.app.transforms.AbstractBasicReportTransform
 - 
- com.microstrategy.web.app.transforms.AbstractReportXMLTransform
 - 
- com.microstrategy.web.app.transforms.ReportXMLTransform
 - 
- com.microstrategy.web.app.transforms.IPhoneReportDataXMLTransform
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 Transform
- Direct Known Subclasses:
 IPhoneReportInteractiveGridXMLTransform,IPhoneReportMapXMLTransform
public class IPhoneReportDataXMLTransform extends ReportXMLTransform
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected FormalParameter_drillRetainParentThis is the FP which tells whether to retain the parent while drilling.protected FormalParameter_drillRetainThresholdsThis is the FP which tells whether to retain the thresholds while drilling.FormalParameter_numberSeparatorThe separator used on the value("v") attribute of the "cols", "rows" and "values" XML nodes Default value: ^FormalParameter_pageByXmlFormal parameter that contains the page by information in the form of an XML.FormalParameter_renderDateFormatsWhether to render date formats (fmts node)
Default value: falseFormalParameter_renderDrillingInfoWhether to render drilling info
Default value: falseFormalParameter_renderIncrementalFetchInfoWhether to render incremental fetch info
Default value: falseFormalParameter_renderMetricValuesFormattedWhether to render the metric values formatted on the "fv" XML attribute (i.e.FormalParameter_renderMetricValuesUnformattedWhether to render the metric values unformatted on the "v" XML attribute (i.e.static intDRILLING_TYPE_LINKEDstatic intDRILLING_TYPE_NO_DRILLINGstatic intDRILLING_TYPE_REGULARstatic java.lang.StringFP_INCLUDE_MD_PROPERTIESstatic java.lang.StringFP_NUMBER_SEPARATORstatic java.lang.StringFP_PAGE_BY_XMLstatic java.lang.StringFP_RENDER_DATE_FORMATSstatic java.lang.StringFP_RENDER_DRILLING_INFOstatic java.lang.StringFP_RENDER_IF_INFOstatic java.lang.StringFP_RENDER_METRIC_VALUES_FORMATTEDstatic java.lang.StringFP_RENDER_METRIC_VALUES_UNFORMATTEDstatic java.lang.StringXML_ATT_NAME_NUMBER_SEPARATORstatic java.lang.StringXML_ATT_NAME_SEPARATOR- 
Fields inherited from class com.microstrategy.web.app.transforms.ReportXMLTransform
_errorMessage, _excludeVisualizationProperties, _includeMobileProperties, _optimizeMobileXML, _renderMetricNumberFormattingOnly, _renderPageByAxis, _renderPagebyInfo, _renderReportDataListNode, _renderStyles, _renderSubtotals, _rowCount, _secondaryProviderStyle, FP_EXCLUDE_VISUALIZATION_PROPERTIES, FP_INCLUDE_MOBILE_PROPERTIES, FP_OPTIMIZE_MOBILE_XML, FP_RENDER_PAGEBY_AXISE, FP_RENDER_PAGEBY_INFO, FP_RENDER_STYLES, FP_SECONDARY_PROVIDER_STYLE 
- 
Fields inherited from class com.microstrategy.web.app.transforms.AbstractBasicReportTransform
_bean, _rb, _rwb, _vb 
 - 
 
- 
Constructor Summary
Constructors Constructor Description IPhoneReportDataXMLTransform() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAttributeFormsToObjectsTag(Tag parentTag, WebTemplateAttribute attTemplateUnit, com.microstrategy.web.app.transforms.AbstractSimplifiedReportXMLTransform.RefIDCounter rfdCounter)protected TagaddAttributeFormToObjectsTag(Tag parentTag, java.lang.String id, java.lang.String name, int rfd, java.lang.String parentObjectId, int baseFormType, boolean isIDForm)protected voidaddVisPropsProperty(Tag prsTag)protected booleandoRenderSecondaryDataProviders()java.lang.StringgetDescription()Returns a textual description of the transform.protected intgetPropSetId(java.lang.String pSetName)TagsFactorygetTagsFactory()Convenience method for obtaining an instance of theTagsFactoryclass.protected static booleanhasAtLeastOneAttributeOnRows(WebTemplate template)protected voidinitGridData()protected booleanisValidTemplate()protected voidrenderDefinition(Tag reportDataTag)protected voidrenderDrillInformation(Tag reportDataTag)protected voidrenderHeaders(Tag tag)protected voidrenderProperties(Tag reportDataTag)protected voidrenderRawData(Tag reportDataTag)protected voidrenderValues(Tag reportDataTag)voidtransform(Transformable data, MarkupOutput out)Transforms the data object and appends result to the transOut.static booleanvalidateTemplate(WebTemplate template, ViewBean vb, AppContext appContext)- 
Methods inherited from class com.microstrategy.web.app.transforms.ReportXMLTransform
areMetricsOnPages, getDescriptor, getDescriptor, getListOfMetricHeaders, getValidationMessage, isSubtotal, isTabular, renderHeaderValue, renderValue, renderValue, renderValue, renderXml 
- 
Methods inherited from class com.microstrategy.web.app.transforms.AbstractReportXMLTransform
encodeXMLText, getWebTemplate, render 
- 
Methods inherited from class com.microstrategy.web.app.transforms.AbstractBasicReportTransform
addFormalParameter, getElemsMapHelper, getGraphBean, getGridData, getHyperLinkHelper, getReportBean, getRWBean, getSupportedBeanType, getViewBean, getWebGridData, getWebReportGrid, initBeans, isDesignMode, isFeatureAvailable, isReport, isTrue, supports 
- 
Methods inherited from class com.microstrategy.web.transform.AbstractTransform
addFormalParam, canTransform, getEvents, getFormalParams, getID, getPreview, isPreviewAvailable, isResolved, removeFormalParam, setAnnotation, setDeprecated, supports 
 - 
 
 - 
 
- 
- 
Field Detail
- 
DRILLING_TYPE_NO_DRILLING
public static final int DRILLING_TYPE_NO_DRILLING
- See Also:
 - Constant Field Values
 
 
- 
DRILLING_TYPE_REGULAR
public static final int DRILLING_TYPE_REGULAR
- See Also:
 - Constant Field Values
 
 
- 
DRILLING_TYPE_LINKED
public static final int DRILLING_TYPE_LINKED
- See Also:
 - Constant Field Values
 
 
- 
XML_ATT_NAME_NUMBER_SEPARATOR
public static final java.lang.String XML_ATT_NAME_NUMBER_SEPARATOR
- See Also:
 - Constant Field Values
 
 
- 
XML_ATT_NAME_SEPARATOR
public static final java.lang.String XML_ATT_NAME_SEPARATOR
- See Also:
 - Constant Field Values
 
 
- 
_drillRetainParent
protected FormalParameter _drillRetainParent
This is the FP which tells whether to retain the parent while drilling.
If a value is specified here, then the drill Preference on the preference page for the same is ignored.
Allowed Values:
PreferencesDrillTransform.DRILL_OPTION_DRILL_ANYWHERE = "1";
PreferencesDrillTransform.DRILL_OPTION_DRILL_HYPERLINKS = "2";
PreferencesDrillTransform.DRILL_OPTION_SIMPLE_DRILL = "3";
PreferencesDrillTransform.DRILL_OPTION_NO_DRILL = "4";
PreferencesDrillTransform.DRILL_OPTION_REPORT_DEFINITION = "5"; 
- 
_drillRetainThresholds
protected FormalParameter _drillRetainThresholds
This is the FP which tells whether to retain the thresholds while drilling. If a value is specified here, then the drill Preference on the preference page for the same is ignored. This value can be 1(to retain), 0(to not retain) or 2(to use the drill path for the value). If blank the drill preference is used. Allowed Values:
PreferencesDrillTransform.DRILL_OPTION_RETAIN_THRESHOLD_YES = "1";
PreferencesDrillTransform.DRILL_OPTION_RETAIN_THRESHOLD_NO = "2";
PreferencesDrillTransform.DRILL_OPTION_RETAIN_THRESHOLD_REPORT_DEFINITION = "3";- Since:
 - MicroStrategy Web 7.5.4
 
 
- 
_renderIncrementalFetchInfo
public FormalParameter _renderIncrementalFetchInfo
Whether to render incremental fetch info
Default value: false 
- 
FP_RENDER_IF_INFO
public static final java.lang.String FP_RENDER_IF_INFO
- See Also:
 - Constant Field Values
 
 
- 
_renderDrillingInfo
public FormalParameter _renderDrillingInfo
Whether to render drilling info
Default value: false 
- 
FP_RENDER_DRILLING_INFO
public static final java.lang.String FP_RENDER_DRILLING_INFO
- See Also:
 - Constant Field Values
 
 
- 
_renderDateFormats
public FormalParameter _renderDateFormats
Whether to render date formats (fmts node)
Default value: false 
- 
FP_RENDER_DATE_FORMATS
public static final java.lang.String FP_RENDER_DATE_FORMATS
- See Also:
 - Constant Field Values
 
 
- 
_renderMetricValuesUnformatted
public FormalParameter _renderMetricValuesUnformatted
Whether to render the metric values unformatted on the "v" XML attribute (i.e. "1000")
Default value: false 
- 
FP_RENDER_METRIC_VALUES_UNFORMATTED
public static final java.lang.String FP_RENDER_METRIC_VALUES_UNFORMATTED
- See Also:
 - Constant Field Values
 
 
- 
_renderMetricValuesFormatted
public FormalParameter _renderMetricValuesFormatted
Whether to render the metric values formatted on the "fv" XML attribute (i.e. "$1,000.00")
Default value: false 
- 
FP_RENDER_METRIC_VALUES_FORMATTED
public static final java.lang.String FP_RENDER_METRIC_VALUES_FORMATTED
- See Also:
 - Constant Field Values
 
 
- 
_numberSeparator
public FormalParameter _numberSeparator
The separator used on the value("v") attribute of the "cols", "rows" and "values" XML nodes Default value: ^ 
- 
FP_NUMBER_SEPARATOR
public static final java.lang.String FP_NUMBER_SEPARATOR
- See Also:
 - Constant Field Values
 
 
- 
_pageByXml
public FormalParameter _pageByXml
Formal parameter that contains the page by information in the form of an XML. When this formal parameter is set, this information is also included in the output of the transform. Also, the rows are re-ordered such that the rows corresponding to the current page by elements are rendered first and then the rest of the rows The XML structure is as follows
<pageby cn="2">
<pageByUnit id="" unitName="" type="" pos="1" ceid="" cename=""/>
<pageByUnit id="" unitName="" type="" pos="1" ceid="" cename=""/>
...
</pageby> 
- 
FP_PAGE_BY_XML
public static final java.lang.String FP_PAGE_BY_XML
- See Also:
 - Constant Field Values
 
 
- 
FP_INCLUDE_MD_PROPERTIES
public static final java.lang.String FP_INCLUDE_MD_PROPERTIES
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
transform
public void transform(Transformable data, MarkupOutput out)
Description copied from interface:TransformTransforms the data object and appends result to the transOut.- Specified by:
 transformin interfaceTransform- Overrides:
 transformin classAbstractBasicReportTransform- Parameters:
 data- an object to transform. It must be of proper type supported by the concrete transform this method called on, or ClassCastExcetption will be thrownout- the MarkupOutput object where the transform result will be added.
 
- 
doRenderSecondaryDataProviders
protected boolean doRenderSecondaryDataProviders()
- Overrides:
 doRenderSecondaryDataProvidersin classReportXMLTransform
 
- 
initGridData
protected void initGridData() throws WebObjectsException, WebBeanException- Overrides:
 initGridDatain classAbstractReportXMLTransform- Throws:
 WebObjectsExceptionWebBeanException
 
- 
renderDefinition
protected void renderDefinition(Tag reportDataTag) throws WebObjectsException, WebBeanException
- Overrides:
 renderDefinitionin classReportXMLTransform- Throws:
 WebObjectsExceptionWebBeanException
 
- 
renderDrillInformation
protected void renderDrillInformation(Tag reportDataTag)
 
- 
renderProperties
protected void renderProperties(Tag reportDataTag)
- Overrides:
 renderPropertiesin classReportXMLTransform
 
- 
addVisPropsProperty
protected void addVisPropsProperty(Tag prsTag)
- Overrides:
 addVisPropsPropertyin classReportXMLTransform
 
- 
renderRawData
protected void renderRawData(Tag reportDataTag) throws WebObjectsException, WebBeanException
- Overrides:
 renderRawDatain classReportXMLTransform- Throws:
 WebObjectsExceptionWebBeanException
 
- 
renderHeaders
protected void renderHeaders(Tag tag)
- Overrides:
 renderHeadersin classReportXMLTransform
 
- 
renderValues
protected void renderValues(Tag reportDataTag) throws WebObjectsException
- Overrides:
 renderValuesin classReportXMLTransform- Throws:
 WebObjectsException
 
- 
getDescription
public java.lang.String getDescription()
Description copied from interface:TransformReturns a textual description of the transform.- Specified by:
 getDescriptionin interfaceTransform- Overrides:
 getDescriptionin classReportXMLTransform- Returns:
 - The textual description of the transform.
 
 
- 
isValidTemplate
protected boolean isValidTemplate() throws MSTRCheckedException- Overrides:
 isValidTemplatein classReportXMLTransform- Throws:
 MSTRCheckedException
 
- 
validateTemplate
public static boolean validateTemplate(WebTemplate template, ViewBean vb, AppContext appContext) throws MSTRCheckedException
- Throws:
 MSTRCheckedException
 
- 
hasAtLeastOneAttributeOnRows
protected static boolean hasAtLeastOneAttributeOnRows(WebTemplate template)
- Parameters:
 template-- Returns:
 - whether the template has at least one attribute on rows and nothing else.
 
 
- 
addAttributeFormsToObjectsTag
protected void addAttributeFormsToObjectsTag(Tag parentTag, WebTemplateAttribute attTemplateUnit, com.microstrategy.web.app.transforms.AbstractSimplifiedReportXMLTransform.RefIDCounter rfdCounter)
 
- 
addAttributeFormToObjectsTag
protected Tag addAttributeFormToObjectsTag(Tag parentTag, java.lang.String id, java.lang.String name, int rfd, java.lang.String parentObjectId, int baseFormType, boolean isIDForm)
 
- 
getTagsFactory
public TagsFactory getTagsFactory()
Convenience method for obtaining an instance of theTagsFactoryclass.- Returns:
 - a 
TagsFactoryinstance to use for generatingTaginstances 
 
- 
getPropSetId
protected int getPropSetId(java.lang.String pSetName)
 
 - 
 
 -