Infopath 2013在switchview上创建新记录 [英] Infopath 2013 create new record on switchview

查看:72
本文介绍了Infopath 2013在switchview上创建新记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Infopath 2013中创建了一个三视图库存控制列表.

I have a three view inventory control list created in Infopath 2013.

我得到了经过身份验证的用户,在表单加载时进行查询并显示分配给该用户的所有项目.

I get the authenticated user, query on form load and display all items assigned to that user.

如果缺少某些东西,即分配给前雇员,则在添加项目"页面底部的按钮切换到新视图.  手动输入文本框和按钮检查库存"搜索主列表以及唯一标识是否存在 表格被填充,并且用户可以通过按下按钮将项目重新分配到他们的帐户.  效果很好.

If something is missing i.e. assigned to a former employee, a button at the bottom of the page "Add Item" switches to a new view.  A manual entry textbox and button "Check Inventory" searches the main list and if the unique ID exists the form is populated and the user can reassign the item to their account by pressing a button.  Works great.

问题: 如果该商品不存在,则检查库存"按钮折叠容纳字段的部分,仅留下输入文本框和检查库存".按钮.再次点击检查库存" 按钮切换到旨在添加新项目的视图,但所有字段均被锁定.  独立运行添加项"视图将允许编辑现有记录,但如果输入的ID不存在,则会锁定字段.似乎有新纪录 在切换到添加项目"时需要查看...

The problem:  If the item does not exist, the "Check Inventory" button collapses the section that houses the fields leaving just the input text box and "Check Inventory" button.  A second click of the "Check Inventory" button switches to the view intended to add a new item, but all fields are locked.  Run independently the "Add Item" view will allow editing of existing records but locks fields if a non-existent ID is entered. It seems that a new record is needed on the switch to the "Add Item" view...

可以做到这一点,为什么需要两次单击?

Can this be done and why does it demand two clicks?

我怀疑我对表单加载的查询是罪魁祸首,但我还没有想出没有它的优雅方法来实现重新分配...

I suspect that my query on form load is the culprit, but I have not figured an elegant way to achieve the reassignment without it...

推荐答案

在处理您的问题之前,我想确认您的情况.

假定InfoPath表单包含两个视图:viewA,viewB.在viewA中,它包含一个添加项目"按钮,可将用户重定向到viewB.在viewB中,它包含一个检查库存"按钮.如果键入不存在 值,然后单击检查库存"按钮,首先单击> viewB表单为空,没有任何变化,第二次单击>将用户重定向到viewA页面,并且所有字段均被锁定.我说的对吗?

Suppose the InfoPath form contains two view: viewA, viewB. In viewA, it contains a button "Add item", which redirects users to viewB. In viewB, it contains a button "Check Inventory". If you type a non-existent value and click "Check Inventory" button, first click > the viewB form is empty and nothing changes, second click > redirect users to viewA page and all field are locked. Am I right?

请提供您在检查库存"按钮中设置的规则,并提供有关屏幕截图,再按一下屏幕上的检查库存"按钮.

谢谢

王恩(Dean Wang)


这篇关于Infopath 2013在switchview上创建新记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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