Dynamics CRM Online - Modifing an existing report - report

I am trying to modify an existing report (Orders) and I must be doing something wrong because when I export the report and I open it in Visual Studio I don't see the actual report.
As you can see the actual report is not being displayed.
I go to the report entity in Workplace, select the report and click on Edit. From there I go to More Actions and click on Download Report. I then go into SQL Server Data Tools and create a Report Server Project. I then go to the Report folder, right click and Add Existing Item, selecting the order.rdl file.
What am I doing wrong?
.....
After some more research it's my understanding that none of the queries come down as FetchXml but as SQL statements that have to be converted to FetchXml.
One problem That I'm having is the use of a function. How does that get converted to FetchXml?
SELECT fullname
FROM FilteredSystemUser
WHERE (systemuserid = dbo.fn_FindUserGuid())
Thanks,
Gary

Your main problem is that you environment is Dynamics CRM Online, this means that you need to create your reports only with FetchXML, no SQL reports are allowed.
The second problem is that you want to modify a built-in report , because most of the standard reports (I'm not sure if all the reports but Order is one of them) are built using SQL you can't modify and import back, you need to recreate using FetchXML.
Last thing, the report you opened refers to a sub report (stored in a separate rdl file)

Related

Ignition 8.1 reporting module: Report not displaying row-0 of table

I have configured a simple report which is running a named query. In the preview tab, (on the right-hand side, in the raw data browser) I can see that my query is returning all rows, but in the actual report, I am missing row-0.
I deleted the table and reconfigured a new one the same way and that worked.

Adding List Data queires in Anywhere Administration application in Maximo

I am using the Anywhere Administration application in Maximo.
What I am trying to do is to add several WorkList queries to the WorkExecution app. (I do have worklight.properties with si.adminmode=true, and I have run Anywhere-Admin-Loader allApps with ant).
I have additional queries in there that have been added using SQL and work fine on the mobile device.
But when I try to add one using the app there are no values to select in the Select Value list for QueryBase ID.
There are additional saved queries in the WOTRACK saved queries
But even if I try and type one of the values in I get an error.
Has anyone else come across this and have a solution.
There was a bug on Maximo's with an Oracle database, fixed in the 7.5.2.1 fixpack that made this Select Value list empty. Could that be the issue that you're hitting?

Issue viewing Aggregations and Activity Search - BAM portal

I am working on BAM (first encounter), created a simple Activity where I have defined two Business Milestone (Invoice received and Invoice processed time) and one Business Data (Customer Name) and a simple view complementing it with Dimensions "Customer (customer name) " and Date(Invoice processed time) and Total Amount as a value.
Deployed the Activity and View followed by deployment of tracking profile .
I cross verified with the BAMPrimaryDatabase and tables are created, also I get results back when I query on them.
Now the issue is that I don't get it reflected on BAM portal. And when I click on Aggregations a pop up with following errors appears:
Views cannot be displayed for one or more of the following reasons:
Office Web Components 2003 are not installed. (I have installed it)
Your Web Browser does not support ActiveX controls.
Support for ActiveX controls is disabled.(Have enabled the ActiveX controls)
When I click OK , following shows up on the portal:
Provider=MSOLAP; Data Source=MAHESH-PC;Initial Catalog=BAMAnalysis[InvoiceView_InvoiceTotalAmount]Customer[InvoiceView_InvoiceTotalAmount_Customer].[InvoiceView_InvoiceTotalAmount_Customer].[Customer]Column1[Customer]Year[InvoiceView_InvoiceTotalAmount_Date].[InvoiceView_InvoiceTotalAmount_Date].[Year]Row1[Date]Total Amount[Measures].[Total Amount][Measures].[Total Amount]DataRow-1Total AmountData1[Measures].[Total Amount]InvoiceTotalAmount
Pivot Table View
Chart View
Is it generic (known issue) or am I missing something?
The underlying cube needs to be built in BAMAnalysis. After you complete that step you can view your data. The next question you might have is, how often this needs to be built?

reporting services - data set has no query but works... Where could the query be located?

I was given a report today with a normal embedded data set (dataset1) and data source (datasource1) but the data set query is just a number: '1411'. The previous programer manually entered fields (not calculated fields) into the field tab.
When I click RUN, it works.
How is it populating the page without a proper query?
-There is only 1 tablix called (table1.) It also is pointing to dataset1.
-In Report Properties there is no VB code.
-RDL XML: Under dataset1's tag:
<DataSourceName>datasource1</DataSourceName>
<CommandText>=1411</CommandText>
I see no other SQL listed. Could there be something else on the server that's triggering it?
What sort of data source is "datasource1"?
If it's an RDBMS, check if there is a stored procedure or function in the database with the name "1411".
In SQL Server for example you could conceivably have a stored procedure called [1411] that returned a data set.
I'm assuming we are talking RDL (Report Definition Language). You might open this report with your favorite text editor and look at the CommandText XML tag to find the associated query. Hope that helps.

Local RDLC report file with custom IEnumerable<>

I am trying to create a local mode (rdlc) report in my web application.
The source for my report is an IEnumerable of type Customer, each of which has a nested IEnumerable of CustomerOrders as a property.
I'm confused how to create a RDLC report that can show all of the customers, and for each customer show all of the orders.
This post talks about how to create a dataset with a format that matches your IEnumerable format, and then substitute it at run time with the actual data you want to use, but I don't know how to define a dataset that matches this IEnumerable, and besides it seems somewhat clunky that I'd need to define a dataset for a report when I have a perfectly good type..
Is this possible in RDLC files?
Thanks!
So it turns out that I could do this by following these steps:
1) In a service class, I expose a dummy method that returns an IEnumerable
2) When I create a new local RDLC, using the wizard, I can select this method as the source of the report. I don't have to use that method, but it allows the report to read my type and gives me the properties from my enumerable to use in my report.
3) When it comes to running the report, I can then in my code behind, specify the actual data I want to use for the report:
this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("ReportDataSource", dataForReport));
Hope this helps someone!
Here is a really good example of doing something similar to what you are trying to do:
http://www.gotreportviewer.com/masterdetail/index.html
This also includes code sample downloads. Basically you will want to embed a table into a list.

Resources