- Microsoft Dynamics CRM 2011 Scripting Cookbook
- Nicolae Tarla
- 341字
- 2021-07-27 18:12:39
Creating and managing forms
In certain instances, we will require additional forms for the same entity. One obvious example is when we need to implement role-based forms. In such instances, a specific role could have access to only a subset of fields, while a different role could have access to other fields. We could have an overlap of fields available to all roles too.
Getting ready
Open the previously created solution, and navigate to the Countries entity we created. In the view of All Forms, by default, we only have the two forms, one for the normal use and one for mobile.
How to do it...
Adding a new form can be achieved as follows:
- From the All Forms view, select New | Main Form, or simply click on New.
- On this new form, we can remove the Country Code and Display Sequence fields, by selecting each field and clicking on Remove on the ribbon.
- Click on the Form Properties button on the ribbon, and on the Display tab (second from the left) to define a new name for our form.
- Once the fields are removed and the form renamed, we can save and publish the new form.
- With the form published, we can verify the listing of All Forms to make sure the form is saved.
- To verify how this form is presented to users, we can navigate to Country created in the system, and select from the available forms.
- Now, both forms are available to be selected for users that have permissions to view both. We will be covering role-based forms later in a different recipe.
Removing a form is also a relatively simple process.
- Navigate in the solution package to the All Forms view and select the form to be removed.
- Click on the Delete button.
- Publish all customizations.
How it works...
Creating various forms for entities can help reduce the amount of scripting required to hide/show fields. We can assign specific forms to specific user roles, and thus reduce the amount of client-side processing on the form.
- 審計全流程技術操作實務指南
- 自愿審計動機與質量研究:基于我國中期財務報告審計的經驗證據
- 基于價值增值的治理導向型內部審計研究
- 注冊會計師全國統一考試專用教材:審計
- Microsoft Dynamics CRM 2011 Scripting Cookbook
- 審計實務案例與實訓教程
- OAuth 2.0 Identity and Access Management Patterns
- 振蕩指標MACD:波段操作精解(升級版)
- VMware vCenter Operations Manager Essentials
- Programming Microsoft Dynamics NAV(Fifth Edition)
- 陜西國家統計調查市、縣優秀報告集萃(2006—2015)(上下)
- Implementing VMware Horizon 7.7
- Building Dashboards with Microsoft Dynamics GP 2016(Second Edition)
- QlikView for Developers Cookbook
- 房產稅征收對區域經濟的影響:以新都區為例