I wanted to create bulkupload functionality to upload files and their metadata to sharepoint document library using sharepoint 2010 serverside component model.
Is there any inbuilt functionality is available in Sharepoint 2010 API's??
As far as I know, no such function in server object model. You have to built your own module for that, iterate through all file (and metadata if any) and add it to SharePoint Library.
Related
I need to open office documents from my Sensenet client application. My client application is in ReactJs and I need to invoke the document to open in MS office. Is there any OData REST API available for doing the same. Kindly help.
You have two options:
1. open a file in a desktop MS Office application
There is an action in sensenet that gives you the url for that. First, get the actions for a document, using a request like this:
https://example.com/odata.svc/Root/Content/myworkspace/Document_Library('abcdef.docx')/Actions
You'll get the list of available actions, which is a JSON array containing action properties, for example a url. Look for the action named EditInMicrosoftOffice. If you display the URL of that action and the users clicks on that link, the browser should open the appropriate desktop office app (e.g. Word). You may notice that the format of the url is special (something like ms-word:ofe|u|https://example.com/Root/...). Please do not try to assemble this url manually, use the one that sensenet generated for you.
2. open and edit a file in the browser
This requires Office Online Server to be installed and configured in your environment, and you also need to display an html containing an iFrame that'll display the editor.
A simple host page:
https://wopi.readthedocs.io/en/latest/hostpage.html#host-page
Geting data to display the host page:
https://example.com/odata.svc/Root/Content/myworkspace/Document_Library('abcdef.docx')/GetWopiData
We have a cloud based audit application. While performing audit a user typically uploads a lot of documents. Currently in order to view the documents he has to download them. Business requirement is that on clicking the document it should directly open up in another browser tab using office 365 just like dropbox/onedrive. The user should be able to view, edit, save it on server (without downloading) and close it. How to achieve that in our application?
Our webapp is built using ReactJS, NodeJS & MongoDB. Whenever a user uploads a document it gets saved in a AWS S3 bucket.
I went through Microsoft Graph API and OneDrive RestAPI's. Looks like the only solution is to use the OneDrive API's to save files in OneDrive instead of S3. And then it should allow you to use the Office365 apps. Is this the right solution? Am I missing anything?
Is there any other solution?
While the easiest solution is indeed to store the documents in OneDrive, there's also another way. You can enroll in Microsoft's Cloud Storage Partners Program and implement the WOPI protocol on your service. This would allow the Office Online viewers/editors to integrate with your service's data directly.
You need to use both aws and O365 api to reach a working solution. Try the following steps (PS: I have not tried this. But I have saved edited documents from Office 365 to AWS)
Read the uploaded document from AWS using AWS api's and upload it to office doc using office doc api.
Edit the doc using office docs api.
Save the doc back to S3
I was able to add a new master page to Sharepoint 2010 Foundation.
I can see that page in my master page library. However, when I try to provision a new page, I don't have any option to pick this master page. Is there a step mission?
This step isn't available in SharePoint Foundation. You are able to set a custom masterpage by the object model and I guess also with SharePoint Designer.
I've created a php platform that allows users to upload videos and that shows them in categories and so on. It's written in php with a mysql database.
Now i'd like to integrate the system with sharepoint 2010. The main objective is to show the list of videos the way it's shown on my current site, the secondary is to allow the user to add a video from sharepoint to my system, so it can be seen in the sharepoint list too. Third objective, which would be nice to have, is to be able to search the video (on title) from the sharepoint search functionality.
I'm new to sharepoint, but i'm fluent in asp.net and php, so programming would be no issue. I've tried to hack it by trying to show my current site in sharepoint using an iframe on a new page, but sharepoint removes the iframe tag upon save, because it's insecure.
Should i be looking in creating a new Content Type? Or is that an invalid path for my quest?
Sharepoint 2010 includes support for Silverlight applications. Since you're already fluent in .NET, perhaps you could create a Silverlight app to display your videos.
Some links to get you started:
Silverlight and SharePoint 2010: Better together
Getting Started With Silverlight and SharePoint 2010
Silverlight and Sharepoint 2010: Getting Started
SharePoint 2010 Silverlight Client Object Model - How to use
I developer a report in Access 2007 and i want to know if there is any way that allow me to view this report in Asp.net web page ?
Not an ASP.Net page but one possible option would be to export the report as a snapshot (*.snp) file. Then you can embed the file into a HTML web page.
You would have to re-export the report each time to update it though. Also the user would have to install the snapshot viewer on their PC Download Link
I think it still works with Access 2007 see MS kb article
The HTML code would be something like:
For more information see Automate publishing a report snapshot to the Web
You should be able to connect to Access just like any other DB, and display the data using a ASP.Net DataGrid.