I have an access report which contains information about a given job. I'm trying to add a subreport that will display some detail information about that job, but I need to pass the job's number into the query the 2nd report uses. How is this done in access vba?
Is there some command which will let me run the query with the passed parameter before I display the subreport?
The simplest way to connect a subreport to a main report is using the LinkMasterFields/LinkChildFields properties of the subreport control.
Related
I have an SSRS subreport that is passed a variety of parameters from the parent report. Some of these parameters are visible in the subreport's parameter list and some are hidden. There are also two additional data parameters are not passed from the parent. These need to be manually selected to actually run the subreport.
The issue is this: when I pass info into the report by clicking on the hyperlink in the parent report, the report will not run inside BIDS. Instead the parameter portion of the report appears to refresh. If I click the View Report button again, it will do the same thing.
The parent and subreport work fine though on the Report Server.
Also, if I use the subreport by itself in BIDS or the Report Server, the subreport will run just fine.
I'm at a bit of a loss to understand what is happening here. Any insight is greatly appreciated.
I have a shared dataset that calls a stored procedure with optional parameters (they are defaulted to NULL). I have set them to "Allow NULL" in the shared dataset. Is there a way to set up the report that uses this shared dataset so I don't have to add every parameter to the parameter list? It seem redundant to have to add every one then hide and set to NULL.
You mean report parameters, not query parameters, right? Report parameters belong to the report, not the dataset. You best option would be a template based approach.
Create a Report Project Template for Visual Studio that includes the parameters.
Utilize the Reporting Service api within an internal tool and pull down the definition of a known (base) report and create a new .rdl file locally and include it in your project.
Tried and true copy and paste from a bare bones report that includes your dataset link and parameters.
The Map polygon Action can launch another Report.
Is there a way to check that a particular report actually exists before blindly trying to launch it?
This would allow re-direction to an 'Oops!' dummy report instead of it erroring.
You can query the ReportServer database directly (It is called ReportServer by default, though this can be different).
All of your SSRS items - from reports to subscriptions - are held in here somewhere. If you want to check for a report, you can search the Catalog table on both Path and Name.
If you can build a dataset of the reports you want to link to, you can then replace the ones that have no match in Catalog with a link to your Oops! report.
I have a report in SSRS that I have in Dynamics CRM 2011 and when the report is run, in the url it passes the id like http://url&id=123-123-123-123. I am trying to make my report in ssrs to grab the id from the query string and use that in the parameters to determine which data to show. Is this possible and if so how would one go about doing it.
Thanks!
CRM actually sends a parameter which can be used to select the filtered view of data that the report was run on. See the report writers guide, and in particular, Using Filters in a Report.
In the simplest case, you would write your main data set to select like so: SELECT <column1>, <column2>, <columnN> FROM FilteredAccount AS CRMAF_FilteredAccount
If that doesn't answer answer your question... You could write an aspx page which embeds the report viewer control. From there you would read the query string, load the report, and then set some parameters based on the query string values. You'd have to have custom ribbon options to launch your custom page.
I had the same problem.
Here is the resolution which worked for me:
I want to display a Microstrategy report on a web page The report needs a single parameter
I have a report that has a (local) filter which I'd like to able to parameterize. Not the whole filter string but just the numeric value that the report filters on.
I know that I can use a prompt to put a value into a report, but I need to do this from an HTML document which, I understand, can't be done with a prompt.
Is there another way to do pass a parameter from an HTML document into the filter of report in the HTML document?
Kind Regards,
Barrie
If you're using a URL to the report, you can pass a prompt answer in as a parameter, specifically valuePromptAnswers.
TN15734 on the MicroStrategy Knowledgebase gives a full example, if that isn't clear enough.