为什么InfoPath表单使用InfoPath模板/设计器来编写新的克隆记录,但在发布时却没有? [英] Why InfoPath form works using InfoPath template/designer to write new cloned record, but not when published?

查看:77
本文介绍了为什么InfoPath表单使用InfoPath模板/设计器来编写新的克隆记录,但在发布时却没有?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是SharePoint列表和InfoPath表单的新手。我已成功通过清空ID字段来测试从InfoPath表单编写新的列表记录。这样做会将原始记录上的所有字段以及屏幕上的更新捕获到新的列表记录中。在使用InfoPath Designer /客户端工具测试表单时,这非常好地和一致地工作
,我不需要创建任何工作流来完成此任务。 但是,在发布到SharePoint 2010错误后执行相同操作时,在表单中启用将
ID字段设置为空的规则时。表单中没有代码,我只是使用InfoPath表单规则。

I'm new to SharePoint lists and InfoPath forms. I've successfully tested writing new list record from InfoPath form by merely emptying the ID field. Doing this captured all fields on original record plus updates on screen into a new list record. This worked very nicely and consistently when testing the form using InfoPath Designer/client tool, and I would not need to create any workflow to accomplish this.  However, executing the same after publishing to SharePoint 2010 errors out, when the rule to set the ID field to empty is enabled in the form. There's no code in the form, and I'm just using InfoPath form rules.


任何想法或方向为何在客户端工作,而不是在服务器上工作将是非常值得赞赏的! 如果我回去,从列表中自定义表单并再次在我的笔记本电脑上运行,它完美运行!

Any thoughts or direction on why this works on the client side and not on the server would be greatly appreciated! If I go back, customize form from list and run on my laptop again, it works perfectly!


我在SharePoint服务器上执行表单时收到的错误消息表明错误消息e是用Windows甚至日志编写的。以下是我从Windows事件日志中检索到的错误消息的片段(使用来自InfoPath表单的错误
消息提供的相关ID):

The error message I get, when executing the form on the SharePoint server, states error message was written in Windows even log. The following is a snippet of the error message that I retrieved from Windows event log (using correlation id provided by error message from the InfoPath form):



... SharePoint Foundation Web Controls cm8z Medium无法从GroupID获取SPGroupName。错误消息:找不到组。 Callstack:在Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)at ...

...SharePoint Foundation Web Controls cm8z Medium Failed to get SPGroupName from GroupID. Error Message: Group cannot be found. Callstack: at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id) at ...



提前致谢。

Thanks in advance.

推荐答案

嗨Emad Marz,

Hi Emad Marz,

你有没有查询用户个人资料在表格中?您能否提供有关该问题的更多详细信息?

Did you query user profile in the form? Could you please provide more details about the issue?

要解决此问题,请查看以下内容:

To troubleshoot the issue, check things below:

1。检查您的环境中是否有"用户个人资料服务应用程序"。

1. Check if there is the "user profile service application" in your environment.

2。检查"用户配置文件服务应用程序"是否与Web应用程序关联。转到中央行政 - >应用程序管理 - >管理网络应用程序 - >选择一个网络应用程序 - >点击功能区中的"服务连接"。

2. Check if the "user profile service application" is associated to the web application. Go to Central Administration-> Application management-> manage web applications->select one web application->Click "service connection" in the ribbon.

3。设置"所有人"以查看该组的成员资格,如下图所示。

3. Set "everyone" to view the membership of the group like the picture below.




更多引用:

InfoPath 2010"无法从GroupID获取SPGroupName"。

InfoPath 2010 "Failed to get SPGroupName from GroupID".

http:// fangdahai .blogspot.com / 2013/01 / infopath-2010-failed-to-get-spgroupname.html

当前上下文中不存在UserProfileApplicationProxy。

No UserProfileApplicationProxy exists in the current context.

http://sharepointknowledgebase.blogspot .com / search / label /不能%20get%20user%20profile#.W-AZhOQUmM8

祝你好运,

Sara Fan


这篇关于为什么InfoPath表单使用InfoPath模板/设计器来编写新的克隆记录,但在发布时却没有?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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