Autotext code/macros in Microstrategy Document/dashboard
This is a list of the available auto text macros that the Report Services Document engine recognizes.The following auto text codes allow you to add document variable information to your document. These auto text codes are automatically replaced by information about the document.
Auto text codes for MSTR document/dashboard:
AUTOTEXT | DESCRIPTION |
{&PAGE} | Display the current page. |
{&NPAGES} | Display the total number of pages. |
{&DATETIME} | Display the current date and time. |
{&USER} | Display the user name that is executing the Report Services Document. |
{&DOCUMENT} | Display the document name. |
{&DOCUMENTID} | Display the document ID. |
{&DESCRIPTION} | Display the document description. |
{&PROJECT} | Display the project name. |
{&EXECUTIONTIME} | Display the execution time. |
{&SERVERNAME} | Display the Intelligence Server name |
{&REPORT:FILTERDETAILS} | Display the filter details of that report. |
{&REPORT:PROMPTDETAILS} | Display the prompt details of that report. |
{&REPORT:REPORTDETAILS} | Display the report details. |
{&NOTES} | Display the Report Services Document notes. |
{&Prompt1&} | Display the answer of the first prompt. |
{&WEBSERVER} | Display the Web server URL. |
{&TITLE} | Display the Report Services Document inbox title. |
{&PROMPTXML} | Display the prompt answers XML. |
{&DOCUMENTMESSAGEID} | Display the message ID of the Report Services Document. |
{&REPORT:GUID} | Display the GUID of that particular report. |
{&ATTRIBUTE@ELEMENTID} | Display the Element ID of that attribute. |
{&ATTRIBUTE@GUID} | Display the GUID of that particular attribute. |
Description
|
Code
|
Sample Output
|
Comments
|
{&PAGE} |
1
|
The current page number
| |
{&NPAGES} |
12
|
The total number of pages in the document or in the group’s section before page numbering restarts
| |
{&DATETIME} |
11/15/2003 7:10:55 PM
|
Current date and time, of the client computer. For PDFs, this is the date and time when the PDF was generated
You can display only the date without the time, or the month name rather than the number, and so on.
| |
{&USER} |
Jane User
|
The full name, not login, of the user who generates the PDF or views the document
| |
{&DOCUMENT} |
Regional Sales Summary
|
The name of the document as stored in the project
| |
{&DESCRIPTION} |
Revenue and profit by region
|
Short description of the document
| |
{&TITLE} |
Regional Sales Summary for Tuesday
|
The name of the document instance
If you send a document to your History List, you can rename that instance of the document. This auto text code displays that name, rather than the document name stored in the project.
| |
{&NOTES} |
User1: 8/15/2010 10:10:10 AM: Reviewed and approved
|
Notes (annotations) added to the document.
For background information on notes, see .
| |
{&PROJECT} |
MicroStrategy Tutorial
|
The name of the project in which the document is stored
| |
{&PROMPT1&} {&PROMPT2&} : {&PROMPT n &} |
South (for example, if prompt1 is for the attribute Region)
|
The user's answers to each prompt in the document, identified by number
If
n is greater than the number of prompts in the document, the code cannot be replaced with pertinent information. Therefore the code itself is displayed in the PDF. | |
{&PROMPTDETAILS} |
Prompt 1: Region prompt
Northwest, Southwest
Prompt 2: Year
Year (ID)= 2007
|
Details for all the prompts in the document
You can define how this auto text code is displayed
| |
{&WEBSERVER} |
http://localhost:8080
/MicroStrategy/servlet/mstrWeb |
Path to the web server being used, if the document is executed in MicroStrategy Web; otherwise, the value in project configuration
| |
{&EXECUTIONTIME} |
The date and time the document was executed
You can display only the date without the time, or the month name rather than the number, and so on.
|
1 | Run a document and send it to the History List. |
2 | Each time you retrieve the document from the History List, the PDF is regenerated. The Date and Time change each time, but the Document execution time does not change. |
- Get link
- X
- Other Apps
Labels:
#AutoText #MicrostrategyDocument Autotext codemacros #autotextmstr#mstrautotext #microstrategyautotext
- Get link
- X
- Other Apps
your valuable information and time. Please keep updating.
ReplyDeleteMicrostrategy Online Course
Microstrategy Certification
Any way to show the publish date for an external dataset?
ReplyDelete