Commit d95fe54d authored by Jérome Perrin's avatar Jérome Perrin

execute: expose cells FORMATTED_VALUE

webpivottalbes uses this to display cell value in pivot table
parent d3b743ad
...@@ -345,6 +345,7 @@ class XmlaExecuteTools(): ...@@ -345,6 +345,7 @@ class XmlaExecuteTools():
cell_data += """ cell_data += """
<Cell CellOrdinal="{0}"> <Cell CellOrdinal="{0}">
<Value xsi:type="xsd:int">{1}</Value> <Value xsi:type="xsd:int">{1}</Value>
<FmtValue>{1}</FmtValue>
</Cell> </Cell>
""".format(index, value) """.format(index, value)
index += 1 index += 1
...@@ -528,6 +529,7 @@ class XmlaExecuteTools(): ...@@ -528,6 +529,7 @@ class XmlaExecuteTools():
<BackColor name="BACK_COLOR" type="xs:unsignedInt"/> <BackColor name="BACK_COLOR" type="xs:unsignedInt"/>
<ForeColor name="FORE_COLOR" type="xs:unsignedInt"/> <ForeColor name="FORE_COLOR" type="xs:unsignedInt"/>
<FontFlags name="FONT_FLAGS" type="xs:int"/> <FontFlags name="FONT_FLAGS" type="xs:int"/>
<FmtValue name="FORMATTED_VALUE" type="xsd:string"/>
</CellInfo>""" </CellInfo>"""
def generate_slicer_axis(self, mdx_execution_result): def generate_slicer_axis(self, mdx_execution_result):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment