PowerApps Model Driven 根据视图打开表单。

huangapple go评论45阅读模式
英文:

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)

huangapple
  • 本文由 发表于 2023年6月16日 13:43:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/76487258.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定