英文:
PowerApps Model Driven to open form based on the view
问题
我已创建了一个基于模型的PowerApps。已创建了两个视图,View1和View2。View1应该对所有用户可见,但当通过View1打开时,用户不应能编辑记录。同样,具有特定角色的用户应该能够在通过View2打开时编辑记录。
我通过模型驱动方法中的业务规则进行了检查,但未找到任何解决方案。
如果有任何其他实施相同功能的替代方法,请告诉我。
谢谢,
英文:
I have created a model driven PowerApps. There are two views created View1 and View2. View1 should be accessible to all users but users should not be able to edit records when opened through View1. Similarly, users with a specific role should be able to edit the records when opened through View2.
I checked through business rules present in the model-driven approach, but didn't find any solution.
Let me know in-case of any other alternatives for implementation of same.
Thanks,
答案1
得分: 1
表单无法知道它们从哪个视图打开,只要它们可以访问记录,它们就可以编辑它。
有其他方法可以实现实际用户需求,
-
角色请求者:在用户级别创建和读取权限,这些人可以创建记录并提交审批。
-
角色批准者:在用户级别具有读取和写入权限,这些人可以批准已提交的请求。
现在在提交审批时,您可以选择将记录分配给批准者或通过 Power Automate 与批准者共享记录。现在批准者可以打开记录并批准。
(另外,您可以拥有基于角色的表单,其中批准者角色将具有所有字段只读的表单,以便他只能批准,或者使用 JavaScript 锁定/解锁字段)
英文:
Forms doesn't have context of which views they are opened from, & whichever view they opened from as long as they have access to the record they can edit it.
There are alternate ways to achieve the actual user requirement,
-
Role Requestor: Create & Read Privilege at User Level, these guys can create records and submit for approval.
-
Role Approver: Read, Write Prvileage at User Level, these guys can approve the request that is submitted.
> Now Upon Submit to Approval, you can choose to either assign the record to Approver or Share the record with Approver via power automate. Now Approver can open the record and approve.
(additionally you can have role based form where approver role will have a form that has all fields read-only so he can only approve OR a JS to lock unlock fields)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论