EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB440239: How to build a Report Services document where formatting of "no data return" message can be preserved when exported to PDF with MicroStrategy Web 10.x


Mari Sugimura

Senior Cloud Support Engineer III • MicroStrategy


This article explains how you can set up a text box to appear only when no data returned from a dataset without using the setting in Project Configuration with MicroStrategy Web 10.x.

QUESTION:
While there are several ways to show "No data return" message inside Reports or Report Services documents, formatting may be found lost if specified with HTML Tag. This limitation is explained in:
KB35938: Export to PDF does not retain the formatted message defined for "Display message in document grids" in Project Configuration in MicroStrategy Developer 10.x
ANSWER:
Use text box where formatting options such as font color and alignment can be specified and preserved after exported to PDF. 
STEPS FOR WORKAROUND:
1. Create a new Report Services document with a textbox in Detail Header section along with a grid which has "Year" attribute as shown below:

ka02R000000kV2GQAU_0EM44000000A55P.png

2. Right click on the textbox and select "Conditional formatting" > "Advanced..." Specify the condition as shown below:

ka02R000000kV2GQAU_0EM44000000A55j.png

Year (ID) IsNotNull, then "Hide"
3. Execute the document and confirm that the message in the textbox does not appear when there is a value returned for "Year"

ka02R000000kV2GQAU_0EM44000000A55t.png

4. When there is no data returned by the grid, the text message is visible along with the text defined in Project Configurations > Report definition > Advanced > No data returned > Display message in document grids.

ka02R000000kV2GQAU_0EM44000000A55o.png

5. Export to PDF and notice that the formatting of the letters in textbox is preserved while the one for letters coming from Project Configuration option is not.

ka02R000000kV2GQAU_0EM44000000A55y.png

  KB440239


Comment

0 comments

Details

Knowledge Article

Published:

March 22, 2018

Last Updated:

December 24, 2018