是否存在用于OneDrive for Business的客户端javascript库,该库提供文件/文件夹选择器控件? [英] Is there a client side javascript library for OneDrive for Business that provides a file/folder picker control?

查看:93
本文介绍了是否存在用于OneDrive for Business的客户端javascript库,该库提供文件/文件夹选择器控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找文件选择器控件,例如OneDrive(实时连接)JavaScript库中提供的控件,但该控件用于"OneDrive for Business".换句话说,我希望能够提示用户选择一个"OneDrive for Business"文档,然后我可以使用(大概是)REST API来做一些事情.

I'm looking for a file picker control like the one offered in the OneDrive (live connect) javascript library, but which instead is for "OneDrive for Business". In other words, I want to be able to prompt the user to select a "OneDrive for Business" document, which I can then do something with using (presumably) the REST API.

我对OneDrive for Business的API支持有些困惑.我的理解是,OneDrive for Business是基于Sharepoint 2013的,我可以使用Sharepoint 2013 REST和CSOM API来访问托管在Office 365中的文件.

I'm a little confused as to the API support for OneDrive for Business. My understanding is that OneDrive for Business is based on Sharepoint 2013 and I can use the Sharepoint 2013 REST and CSOM API's to access my files hosted in Office 365.

在我查看过的CSOM javascript文档中,我看不到对此功能的任何支持.但是我对Sharepoint几乎一无所知,所以也许已经有东西了?

I couldn't see any support for such a feature in the CSOM javascript documentation I looked at. But I know little to nothing about Sharepoint so perhaps there's something out there already?

似乎还正在开发带有JavaScript库的新Office 365 REST API.我猜这是最有可能给我我想要的东西的候选人.当然,如果需要,我可以使用REST API编写自己的控件.

There also appears to be a new Office 365 REST API with javascript libraries under development. I'm guessing this is the most likely candidate to give me what I want. Of course, I can write my own control using the REST API's if I have to.

推荐答案

您对OneDrive for Business基于SharePoint 2013的理解在很大程度上是正确的.实际上,OneDrive for Business IS SharePoint 2013 –这只是SharePoint 2013某些部分的新名称.

Your understanding that OneDrive for Business is based on SharePoint 2013 is mostly correct. In reality, OneDrive for Business IS SharePoint 2013--it's just a new name for a certain part of SharePoint 2013.

我在OneDrive for Business和SharePoint整体上进行了广泛的研究,据我所知,没有这样的控件.我知道的所有API(SharePoint 2013社交部分中的某些API除外)都注重功能,并且不提供控件.这是设计使然,因为SharePoint具有丰富的自定义和扩展生态系统,因此需要功能以在自定义UI之上构建自定义UI,并且在大多数情况下,从UI设计的角度来看,标准化的javascript控件将是一个明显的例外.

I have worked extensively on OneDrive for Business and SharePoint as a whole, and as far as I know, no such control exists. All of the API that I'm aware of (except perhaps some APIs in the Social part of SharePoint 2013) is functionality-focused, and does not provide controls. This is by design, because SharePoint has a rich ecosystem of customization and extension that wants functionality to be present in order to build custom UI on top of, and in most cases a standardized javascript control would be a glaring exception, from a UI design perspective.

我鼓励您使用SharePoint 2013 REST API实施控件.具体来说,有关文件操作的调用在这里: http://msdn.microsoft.com/zh-CN/library/office/dn450841(v=office.15).aspx .

I would encourage you to implement the control using the SharePoint 2013 REST API. Specifically, the calls regarding file operations are here: http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx.

我尚未使用新的Office 365 REST API,但从状态来看,尚未针对JavaScript发布我的文件"部分(来源:

I haven't used the new Office 365 REST API yet, but looking at the status of it, the "My Files" portion hasn't yet been released for JavaScript (source: http://blogs.office.com/2014/05/12/net-and-javascript-libraries-for-office-365-apis/), and since it may or may not have what you need I would recommend sticking with the existing SharePoint 2013 REST API that will definitely be able to do what you want.

如果Microsoft之外的人已经写过某本书,我不会感到惊讶,但是我找不到在线发布的任何内容,因此它尚未完成或无法轻松地在线获得.

I wouldn't be surprised if someone outside of Microsoft had already written one, but I couldn't find anything posted online, so either it hasn't been done or hasn't been made easily available online.

这篇关于是否存在用于OneDrive for Business的客户端javascript库,该库提供文件/文件夹选择器控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆