2个按钮位于同一共享点页面

时间:2019-07-05 15:59:24

标签: ms-access sharepoint vbscript

这是我的简单脚本。我需要将其用于多个按钮,才能从同一SharePoint Wiki页面打开多个InfoPath表单。

我尝试过更改DIMlibrary,然后再更改为library1,library2等。尝试使用按钮和模板进行相同操作。

<script type="text/vbscript" language="vbscript">  
 Dim urlLibrary 
 Dim urlTemplate  
 urlLibrary = "https://location of my form library and form title"
 urlTemplate = urlLibrary + "/forms/template.xsn" 
 Sub CreateNewInfoPathDocument2 
 dim objOpenXMLDocuments  
 set objOpenXMLDocuments = Createobject("SharePoint.OpenXMLDocuments")  
 objOpenXMLDocuments.CreateNewDocument2 window, urlTemplate, urlLibrary  
 End Sub  
 </script>  
 <button onclick="CreateNewInfoPathDocument2()">Entry</button>

我没有收到任何错误消息。它们都会正确显示,但只会打开我首先单击的按钮的第一种形式。然后,每个按钮仅打开该一种形式。注意:必须强制InfoPath打开,因为它们正在提交到Access数据库。任何帮助将不胜感激。

0 个答案:

没有答案