从 sharepoint 2010 站点中的 aspnet 下拉列表控件设置 Infopath 字段的值
我正在为我们的设施管理部门在sharepoint 2010上开发一个帮助台系统,通过该系统呼叫代理可以通过票证记录客户的投诉。我在帮助台页面中创建了3个下拉列表(来自sharepoint设计器的asp.net控件),分别从我们的数据库中读取“项目”,“属性”和“单位”,呼叫代理将根据客户。
我创建了一个自定义列表,它是帮助台票证,并在 infopath 2010 中编辑了其布局。
我在同一页面上显示该列表,但根据“单位”下拉列表中选定的单位进行过滤,以显示票证该特定单位的历史记录。
我需要的是在呼叫代理单击“添加新项目”后,将新工单中“单位”字段的默认值设置为“单位”下拉列表中选择的值。
我尝试了一种解决方法,删除这 3 个控件并创建一个新的自定义列表并将其称为“引擎”,并编辑其表单以具有 3 个下拉列表,然后将其添加为票证表单的数据源,并显示“页面上的“引擎”表单。
单位的值已成功传递,但当然,在“引擎”表单中输入三个下拉列表的选项后,我必须单击“保存”,以便保存该值并将其传递到“新票”表单。而且速度慢得多,历史过滤器也不起作用。
因此,我需要返回到第一个解决方案并保留 3 个 asp.net 下拉列表,并将“单位”下拉列表的选定值传递到票证表单中的“单位”字段。
提前谢谢大家:)
I am developing a helpdesk system on sharepoint 2010 for our facility management dept., through which the call agent can log the client's complain through tickets. I have created 3 dropdown lists (asp.net controls from sharepoint designer) in the helpdesk page, reading repectively from our database the "projects", "properties" and "units", and the call agent will select the appropriate choice accroding to the client.
I have created a custom list, it is the helpdesk tickets, and edited its layout in infopath 2010.
I am displaying that list on the same page, but filtered according to the selected unit from the "units" dropdown list, to display the tickets history for that particular unit.
What I need is to set the default value for the "unit" field in the new ticket after the call agent clicks "add new item", to be the value selected in the "units" dropdown list.
I have tried a workaround, by removing those 3 controls and creating a new custom list and called it "engine", and edited its form to have the 3 dropdowns, then adding it as a data source for the ticket form, and displaying the "engine" form on the page.
The value of the unit was passed succesfully, but of course I have to click "save" after I enter the choices for the three dropdowns in that "engine" form for the value to be saved and passed to the "new ticket" form. also it was so much slower and the history filter was not working.
So I need to return to the first solution and keep the 3 asp.net dropdowns, and pass the sleected value of the "units" dropdown to teh "unit" field in the ticket form.
Thank you all in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为不可能将值注入到 IP 表单中。但是,请考虑以下解决方法:
您在 InfoPath 中创建“项目”、“属性”和“单位”下拉列表,然后将此属性映射到 SharePoint 列表。这样,您仍然可以应用 SharePoint 的默认筛选器/分组依据/等行为,并且您可以实际上不需要自己编写任何代码:-)
I don't think it's possible to inject values into an IP Form. However, consider this workaround:
You create the "projects, "properties" and "units" dropdown's within InfoPath and then map this properties to the SharePoint list. This way, you can still apply SharePoint's default filter/group by/etc behaviour and you actually don't need to code anything yourself :-)