SSRS Auto Subcription Creation Default Values not binding - c#

We are migrating our project SSRS 2013 Sharepoint Integration Mode to SSRS 2019 Native Mode. All .RDL Files are migrated including default values for Few parameters.
Those parameters would be loaded based on cascaded drop down but we want default value -1 to be selected in the subscription
When we create subscription from our c# code reportingService.CreateDataDrivenSubscription subscription is sucessful for all parameters except the one with Default Values.
These Parameters are ParameterValue & others are ParamterReferenceField.
The subscription is unable to populate the choose default values. The question is not related to .rdl file having default values, the error is only in Subscription that we are creating using reporting service .asmx
In createDataDrivenSubcription function we are setting parameter Value in reportParameters but not working
is there any other way to call the above function so that in the subscription created we would
Enter Default Value in the drop down similar to Get Value from Dataset automatically.

Related

Passing parameters between pages issue with multiple users

I have an web forms app that recently started experiencing issues. App is deployed on the SharePoint. We have multiple users entering data into the scheduler.
Each user has access to different facility and I have been passing the facility number to the user using HttpRuntime.Cache["FacN"] value.
On the scheduler form I filter LinqToSql connection by setting the hidden field to that cached value. And scheduler is supposed to display data for that facility only.
It was working fine until we got few users entering data in the same time (in IE, SharePoint server). If 2 users entering data at the same time - then they would see the events from the different facility.
I also tried using HttpContext.Current.Session["FacN"] - but in that case it didn't retain the value of the facility. Please advise how else I can pass the facility parameter?
You can add a timestamp variable with FacN.
First user and second user get the FacN with timestamp at the same time.
First user update the FacN, timestamp will be changed.
Second user want to update the FacN, need to compare timestamp, if different will be return update failure.

SSRS - How to feed a report parameter "under the rug"?

I have a parameter in my report that my user cannot know about for security reasons. But this report also has others parameters.
Is there a way to "feed" these reports without the user intervention? I plan to feed default values to the regular parameters and the appropriate value to the "secret one"...
Details:
-Using Report Viewer User control to display the report in a WinForms app
-Using SSRS 2008R2
-Report is not local
In SSRS you can set a parameter to be hidden in the general tab of Report Parameter Properties.
You can then set the parameter using a default value.

Modifying SharePoint List Using ASMX WebServices

I am writing a custom piece of code that dynamically creates modified document libraries. I've attempted to create a document library template, which succeeds in the UI but cannot be found via-webservices.
So to get to the point - I am attempting to:
1. Set "Allow Management Of Content Types" on the list.
2. Add a new Content Type (Already Created) to the list.
3. Set the new content type as the default content type.
4. Remove the "Document" content type from the list.
So far I have succeeded in being able to "Apply" the custom content type but the others are evading my grasp. The methods I have attempted are through the Lists.asmx service and the method described here: http://msdn.microsoft.com/en-us/library/websvclists.lists.updatelist.aspx
I tried setting the Flags property and a few other potential candidates with no success and no error messages complaining about what I was trying to attempt.
One limitation is that I do NOT have access to the sharepoint dll where this is living.
Once completed - this would be a plugin living in another non-sharepoint system. The only option to include the SharePoint client dll's would be to perform an ILMerge.
EDIT:
http://msdn.microsoft.com/en-us/library/sharepoint/jj193051.aspx (SharePoint 2013 Web Services)
http://msdn.microsoft.com/en-us/library/ee705814(v=office.16).aspx (SharePoint 2010 Web Services)
and yes - technically the ASMX services sound like they're on their way out: http://msdn.microsoft.com/en-us/library/sharepoint/jj164060.aspx
Edit: Tags are relevant to the question.
use SharePoint Client Object Model. This is a library that wraps calls to webservices that allows among other things to batch commands.
The operations you mention are all available.
here is a link to an article that explains Client Object Model:
http://www.codeproject.com/Articles/399156/SharePoint-2010-Client-Object-Model-Introduction
The article focus on ListItems but you can also interact with list properties, even web properties if you want.
Please note that you don't need to run Client Object Model from your sharepoint server. Note the "Client" part in the name.

Loading routes according to HTTP_HOST in MVC4

I have a multi-tenant MVC4 website in which I want to set up the the RouteTable according incoming host and domain name eg www.domain1.com, www.domain2.com and www.domain3.co.uk could have one or more additional values appended to the route table according to the host and domain anem.
The DNS server has been set up with a number of distinct zones with hosts, and I'm using IIS7 as a 'custom web server' rather than using Visual Studio 2012 Development Server so that I get the correct HTTP_HOST value available to me in the Request variable.
The problem I have with IIS7 is that to the value of HttpContext.Current.Request.ServerVariables["HTTP_HOST"] is not available if you try to call it in the RegisterRoutes method where all the other route mapping is done.
The main thing I need to do is determine at some point in the request pipeline the the value that will eventually end up in the HTTP_HOST server variable . That value needs storing and the route table appropriately updated before it gets used.
Will it need an Http Module, Http Handler, Action Filter or somesuch? Or is there some other place in the MVC pipeline that I can do this.
Crispin
There's no built in support for routing based on host that I'm aware of, but you can create a Route subclass that pulls the host value in. Here's an example:
http://blog.maartenballiauw.be/post/2009/05/20/aspnet-mvc-domain-routing.aspx
That's written for MVC3, but should work fine in MVC4.

How do you set a Managed Metadata field when using SharePoint Copy Web Service?

I am using the SharePoint Copy web service to upload a file to a document library. The library is using a content type that contains a managed metadata field. I can not figure out how to update this field by using the FieldInformation class. I have not had any issues setting any of the other fields using this method. An example of how I am uploading the file with the FileInformation can be found here
I have tried to set the field via its Display Name as well as the "hidden" note field with the same name plus 0.
SharePointCopyWebService.FieldInformation fieldInfo = new SharePointCopyWebService.FieldInformation();
fieldInfo.DisplayName = "Internal Audit Topics_0";
fieldInfo.Type = SharePointCopyWebService.FieldType.Note;
fieldInfo.Value = "Known Term";
fieldInfoArray.Add(fieldInfo);
Additional Info:
This is running inside a Win Forms application
I am not allowed to use the SharePoint Server/Client Object Models
Any ideas on how to update the managed metadata field with the FieldInformation class?
The managed metadata field has a format similar to the lookup field (i.e. "id;#value") except it requires the guid of the term label e.g. "id;#TermLabel|xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
This will work, but forcing external applications to know the correct value of the guids pretty much ruins this feature for updating from external systems.

Categories

Resources