MicroStrategy CREATE REPORT statement syntax - dynamic

Trying to create a bunch of MicroStrategy reports via code (instead of manually going through the GUI). Does anyone have a working CREATE REPORT statement?
Here's an example of a working CREATE ATTRIBUTE statement:
CREATE ATTRIBUTE "attrib1" DESCRIPTION "attrib1"
IN FOLDER "\SCHEMAObjects\ATTRIBUTES\attrib1"
HIDDEN FALSE ATTRIBUTEFORM "attrib1" FORMDESC "attrib1"
FORMCATEGORY "ID" FORMTYPE NUMBER EXPRESSION "[attrib1]"
EXPSOURCETABLES "attrib1_table"
LOOKUPTABLE "attrib1_table"
FOR PROJECT "Someproject";
Just looking for a version of this for CREATE REPORT. Can't seem to find it on googles or in the documentation.

Unfortunately it's not possible to create a report using MicroStrategy Command Manager.
As you can see from the Outline window below (this shows all possible outlines in Command Manager with code samples) for you can list your reports, delete them or alter some properties of your MicroStrategy Reports.
As you can see from the outline for the ALTER REPORT command what you can modify is pretty limited, you can enable/disable cache, hide or un-hide a report, change the description or the long description, move a report to another folder.
If you want to create a report from scratch using code you need to use MicroStrategy SDK. You can start from this TechNote:
TN38166: How to Create a Report and Filter Expression from Scratch Using the MicroStrategy Web SDK 9.2.x and 9.3.x.

Related

Can I export existing Salesforce reports by SOQL even if they were made in the SF UI?

I am relocating our Salesforce reports from Salesforce to another tool. Salesforce has SOQL and the new system has SQL so I think the simplest way to migrate is to modify the SOQL statements to SQL, rather than recreate each report using the new tool's UI.
Can I do this? I've looked up other similar questions here on Stackoverflow, but the answers are far more complex than I can understand. I need extremely basic instructions on where to find the SOQL for each report in Salesforce.
Thank you!
Salesforce doesn't have a native tool to convert a Report to SOQL. There are a couple of workarounds to get close to a 1:1 conversion but both will still require some manual input on your part.
Using Change Sets
Install the Salesforce Change Set Helper Chrome Extension
Create an Outbound Change Set and add your reports as components
Click the Download metadata button (this comes from the extension)
Unzip the file
Open one of the .report files in a text editor
From here you can use an XML parser to programmatically generate a string for your SELECT criteria by targeting anything between the <columns> tags. Your FROM criteria can be targeted through the <reportType> tags.
Manual
Download the Salesforce Inspector Chrome Extension
Pull up your report in one window
In another window, open your Salesforce org and click the < but on the right side of your screen (this is from the Extension)
Click Export Data
Reference your report while writing your SOQL query
*Reminder that format should be something like SELECT Insert column's API names comma separated, FROM Insert object API name WHERE Insert filters ORDER BY Insert column to sort by and include ASC for ascending and DESC for descending
Salesforce SOQL Documentation

How to create a tabular report from Azure DevOps that includes work item description?

We are trying to use PowerBi to build tabular reports from data in Azure DevOps. In this report, we want to display the description field in one of the table's columns. ADO stores the description as HTML. Neither PowerBI or Excel can render this content, but instead show the markup code. I've also looked at pulling this into python and using Dash with no luck.
There is an extension for ADO that renders html, but it displays a single record and doesn't work as a table cell renderer.
The output I'm looking for is very simple. It is a table (preferably in PowerBI or some other dashboarding tool) that has columns for work item title and description. The description column shows the rendered HTML code as it is displayed in ADO.
How to create a tabular report from Azure DevOps that includes work
item description?
For this issue, I am afraid this demand is impossible to achieve. It is clearly stated in the document that Description field cannot be used to generate a report.Excel also does not support generating reports on this field.
For details,please refer to this docs. Hope this helps.

Advantage to using SSRS or Crystal reports when the output is simple and static?

I have an ASP.NET/C# web app in which the user needs to run reports with various criteria that will ALWAYS yield simple, 2-dimensional, tabular data. I'm tempted to use a sophisticated reporting engine like SSRS or Crystal Reports, but these seem like overkill, since there's really nothing to design (all outputs will be to CSV, or JSON for the browser to render in an HTML table).
In this scenario, am I eating too much complexity by trying to use SSRS or Crystal Reports? Should I instead just write custom classes to dynamically assemble SQL statements (based on user selections) that will be fired against the database?
Does SSRS or CR add anything that is of value (within the requirements constraints I've already described)...?
Its depend on your requirement if you want to minimal overhead on your web app then please go ahead and use your custom codes since you are not required any styling or extra functions.
Just get JSON objects and fill in HTML and go Head !!
I am working with ssrs So i will talk just about it:
ssrs is a very useful tool for building a Reports
all You need is sql server Stored Procedure to build your report
then deploy it to report server and use this report from your app
-now all you need in your app just one page for all reports and you path the URL
dynamically with report name
You need to know this :
-ssrs did not work correctly with all browser
for Exp :
-Print Btn just work with IE
so Mozila and Google you need to use java script to print Report
-some issue with criteria section :
there is no way to rename the 'select value' with drop down
so you need to use java scrip to handle it
also you find ( Null and chick box ) any customer did not know what null mean so
you need first to remove null keyword or to rename it to anther Keyword
also you need java script to do this
the most problem i have :
all reports in reports server so
when i go to a new client what i need
just Sql server no need to setup visual studio and ssrs tool
just to deploy all reports on client report server
its very bad ..
i solved this issue with tool i had make to deploy the all the report
and no need to setup VS just to deploy the report
i think that the most important problem i have
and all of it i found a work around to solve .. and it takes more time
finally :
use ssrs or CR its very easy to use and make report very fast no need to create a custom page for report and develop all its control just like print and export
report to PDF,excel or any type
but if you have a few report i think no need to use any reports tool

Automate report download from SAP Business Object Infoview

I am new to SAP Business Objects Infoview and was asked if I can automate the report data generation for an existing report.
Here is what I would do manually through the Infoview web interface:
Click schedule for the report in question, which brings up the Schedule dialog
Change the recurrence to Now
Change the report prompts (start date and end date) so that start date=today and end date=today-14 days
Set the format to CSV and output the report to the Inbox
Schedule the report
Wait for the report to succeed
Download the generated report data
I can see how I could build a tool using Java and Selenium to automate this. However I am wondering if there is a more elegant way to doing this that still allows me to set the prompts dynamically. Are there existing 3rd party tools? Can I use JDBC?
What I have at my disposal is a user name/password to log on to Infoview. If a more elegant solution requires additional access or software please let me know.
It's possible with a simple addition to the universe (but this, of course, requires universe developer access). For your example, you could create a new universe-based Predefined Condition object with a definition of: (assuming Oracle)
start_date = trunc(sysdate) and end_date = trunc(sysdate-14)
Adding this object to a report will produce the desired timeframe whenever it's run, whether it's scheduled or interactive.
If you want the same report to run with this logic when scheduled, but still allow users to select dates via the prompts. You can use magic dates. See this blog post for info.
Lastly, you could write a custom program that would open the report, populate the prompts with the appropriate values, and run it. But I would consider that a less-preferable option than the ones above.
You can use UiPath in order to easily automate SAP GUI without writing code.
Here's a tutorial on how to automate data entry, menu navigation and screen scraping on SAP.
You can use it from code (SDK) or you can create workflows (visual automation) directly from UiPath Studio.
Note: I work at UiPath. You should also try other visual automation tools like Automation Anywhere, WinAutomation, Jacada, use them side by side and choose the one that suits better your needs.
Here's how automating SAP Business One menus, buttons and typing looks like:

ActiveReport 3 : Add dynamic column for CrossTable

I am under ActiveReport 3 and I need to create CrossTable with dynamic number of Columns and Rows.
The example given with ActiveReport 3 has put fix columns in design view and it's bad.
There is a solution up there to create real cross table under Active Report 3?
For now I try with these events:
_ReportStart
_DataInitialize
_FetchData
In ActiveReports you need to dynamically add the columns (fields/textboxes) using code based on your datasource. You can see this walkthrough for a detailed example of how to dynamically create a report. The walkthrough does not create a crosstab but it does show how to add fields dynamically. To create a crosstab, you will essentially just add your textboxes onto the report side-by-side and one-after-the-other. One for each column you want in your crosstab.
NOTE: After GrapeCity's acquisition of Data Dynamics, the Data Dynamics Reports product was later integrated into ActiveReports. The capabilities of Data Dynamics Reports are generally referred to as "Page Report" or "RDL Report" in ActiveReports. As a result ActiveReports now includes native support for cross tab reports with the "Matrix" control. An example of using a Matrix in ActiveReports' Page Reports is here.
Documentation for the older versions of ActiveReports are available on the Legacy Documentation page, which is linked from the main ActiveReports documentation site.