sharepoint ssrs report get query strings - sharepoint

I have a reporting service in sharepoint integrated mode. How could I get report parameters via query strings? please explain it with some examples!
Thanks a lot in advanced!

Sending parameters to a report with values from a querystring can be done by prefixing the parameter with rp:
?rp:parameter=parameterValue
It is also possible to f.ex add a hidden filter webpart to your page that reads the querystring and sends the value to the report webpart.
For the future: Please let us know what you have tried and some more information about your problem instead of just asking the question and expecting to get a full answer.

Related

Run/Open a report with URL parameters

The idea is to call from outside of Cognos the link of the report with some parameters. So the user will not need to put the parameters when he opens the report. They will automatically filter the parameters. Using URL parameters or something like that.
I'm using the IBM Cognos Analytics 11.1 R7.
Someone know if this is possible? Have some tutorial?
This is definitely possible! Every piece of content has a share URL, and report prompt parameters can be added to the URL. More info here:
https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=mc-creating-custom-urls-display-run-cognos-analytics-content
at the end of your report name add the parameters with what you want to put in. for example: Even if you want to run it in PDF that I have put at the end of the URL:
&run.prompt=false&p_pTEST=ABC&p_pPROMPT=TEST&run.prompt=false&run.outputFormat=PDF

One custom display form for all the lists

Good day to you. I am newbie in SharePoint 2013 so please bear with me. I have created around 15 lists in my website each containing same columns but different data (they differ semantically).
I am aware that we can change the default view, edit and display form for each list by creating new form in SharePoint Designer 2013. This seems like a very bad approach as far as the maintenance is concerned. I know my lists are exactly the same so why do I have to create same 15 display forms for each of the lists?
Is there a way to create one custom Display form (may be in a central location, i don't know i am just thinking :P ) for all the lists? Is there a way to tell a list to use a specific display form? Any help will be highly appreciated. Thanks.
If i understand your question correctly, you have 15 lists with same set of columns. You want to change the display/look of the form. All 15 lists should have same look and feel right!! If yes, then why don't you try with some html, javascript solution. Since you are in sharepoint 2013, javascript support for solutions is very good like rest queries. You can use SPServices also.
If you want to to add data to the list whenever you click on the "New Item" link in the list then hijack this link such that it should navigate to your custom form. Pass your list name as query parameter. Whenever user is saving the form, get the list name from the query parameter and save the data to that list.
There could be another ways also to achieve the solution with html and javascript.
Useful links:
Microsoft, Microsoft, SPServices
Sam I think you can create a custom content type and create custom display form for your content type. Enable the content type in each of your lists so automatically this customized form would be available.
The advantage of this approach is that suppose if you need one more list after some time you can just add this content type and your form would be available into the new list as well.
The approach is explained in the link below.
http://blogs.msdn.com/b/varun_malhotra/archive/2009/06/06/define-custom-new-edit-display-forms-for-content-types.aspx
Check this one also
https://joshmccarty.com/2011/02/sharepoint-custom-list-with-custom-content-types-and-custom-display-forms/
Just wanted to write the solution which I implemented as it might help others as well. (Thanks Hiren and Mihir for your valuable inputs)
I had 15 lists and I was showing the data to the user using content search web part with custom display template. All of the lists were using the same display template so I made a new page just to show the item details. In the display template I pointed the item URL (i hijacked the list name and the current item id) to my new page and displayed the item. Let me know if anyone is interested in the whole solution or further elaboration is required.

Sharepoint 2010 Survey - Create questions from a list

I have a list of reports in our business and what i want to do is send out a survey to every user asking them a set of questions per report. For each report we want to ask the following questions:
Do you use the report? Y/N
How often do you use it? Daily/Weekly/Monthly/Quarterly/Annually
Is this report sent out externally? Y/N
So do you think this is possible using a Sharepoint Survey? A point in the right direction would be good.
Thanks
Following a long investigation i concluded that SharePoint was not the solution i required and instead used SurveyMonkey which covered my requirement perfectly.

Sharepoint 2010 search: How to modify search query before submit (programmatically?)

I'm making a custom search box Web Part, similar to the OOTB Web Part from SharePoint
(SearchBoxEx class).
I'm interested in modifying the search query with additional text before it is submitted, based on a custom checkbox added on the Web Part.
Any help on how I can achieve this?
UPDATE:
I've used the AppendToQuery and AppQueryTerms properties, but this will rewrite the text in the search box as well. I'm interested in passing the values "in the background", maybe as an extra parameter. Point is that the query modification should happen without the user seeing it explicitly.
In the core result webpart there is a property where you can append text to the query and you will not see that in the textbox.
Best,
Bibhu
I when I had to customize People Search, I opted to roll my own web part and just called Response.Transfer to the Results.aspx and appended query string parameters to the URL. This wasn't the most elegant solution, but it was a quick way to modify the query "behind the scenes."
I'm sure you could develop an application page and set it as the Search Box web part's Results page. Put your custom logic in the page_load and then transfer (or do a form POST) to the actual results.aspx page.
I'm now developing an Extension of SearchBoxEx myself, and I'm currently trying to figure out how to call the base method that submits the query too. This blog shows how to call the internal CreateAdvanceSearchLink method of the SearchBoxEx class: http://pholpar.wordpress.com/category/search/

Sharepoint Blog: enable/disable comments regarding field value of Posts

I need to enable/disable post comments regarding the value of a new field in Post list. I don't see how to do this... Any ideas?
Why is there an error when converts to XSLT? Is possible to get the querystring to do this?
I don't think you'll be able to get that level of control with the standard blog component. Should be reasonably easy to implement using CKSEBE though.
Easiest method I can think of within the standard blog is to use jQuery to hide the comment form - that way you only need to get the value of the field appearing somewhere on the page.

Resources