Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint文档上载页面-传递URL变量?_Sharepoint_Upload_Field_Document Library - Fatal编程技术网

Sharepoint文档上载页面-传递URL变量?

Sharepoint文档上载页面-传递URL变量?,sharepoint,upload,field,document-library,Sharepoint,Upload,Field,Document Library,在整个SharePoint站点中,我有几个文档存储库,它们与外部数据库中的主键相关联。我在文档库元数据字段中添加了自定义列,以便我们知道哪些SharePoint文档与哪些表条目相对应。作为一项要求,我们需要自动填充这些字段的文档上传。例如,我希望有以下url: /Upload.aspx?ClassID=2和SystemID=63 因此,当您将任何文档上载到此库时,它会自动将ClassID和SystemID值添加到SharePoint文档库字段中列出的相应ClassID和SystemID列中 有没

在整个SharePoint站点中,我有几个文档存储库,它们与外部数据库中的主键相关联。我在文档库元数据字段中添加了自定义列,以便我们知道哪些SharePoint文档与哪些表条目相对应。作为一项要求,我们需要自动填充这些字段的文档上传。例如,我希望有以下url:

/Upload.aspx?ClassID=2和SystemID=63

因此,当您将任何文档上载到此库时,它会自动将ClassID和SystemID值添加到SharePoint文档库字段中列出的相应ClassID和SystemID列中


有没有快速或简单的方法可以做到这一点,或者我必须从头完全重写Upload.aspx脚本?

我认为唯一的方法是创建自己的Upload.aspx页面。阅读更多信息。

不幸的是,现在看来,定制是唯一的选择。下面是一些关于如何编写提交页面的提示

此处有一个相应的条目,描述如何将文档添加到文档库:

同样,拥有文档库文件处理程序后,可以使用以下方法更改其元数据列值:

本质上只是


SPFile.Item[“ColumnName”]=“Value”

该页面似乎专门用于更改菜单。创建此帖子是为了让您可以更改菜单以指向自定义上载页面,而不是实际自定义上载内容。他们所做的是扩展菜单类。也许有一种方法可以扩展生成主窗体的类,以便添加隐藏字段?对于在自定义脚本中将文档添加到库中,我发现了这样一个问题:我仍然不知道如何手动设置其中一个元数据列。