- Microsoft Dynamics CRM 2011 Scripting Cookbook
- Nicolae Tarla
- 311字
- 2021-07-27 18:12:39
Creating and managing scripts
JavaScript scripts are added to a solution package just like any other resource. They are becoming part of the package, and thus are easily portable to other environments, along with the solution.
Getting ready
Using the existing solution package we have created, we will be adding a new JavaScript resource.
How to do it...
To add a new JavaScript resource, navigate to Settings, and open your existing solution package. Follow these steps to add a script resource:
- In the package, navigate to Web Resources.
- In the Web Resources view, select New to add a new script resource.
- Give the resource a name, and select the
Script (Jscript)
option from the Type drop-down list. The Display Name should be in a readable format. It is good practice to always add a Description for other developers that will follow in your foot steps to easily identify the content of the library without having to open the file. - Click on Save, and then on Publish. Now you have a JavaScript resource added to your solution package. There is no actual script added yet, so let's do that.
- Click on the Text Editor button. A new form will open allowing you to type in your script.
- Click OK, then Save and Publish your resource again.
- Now we have a script added as part of the solution package. It is not related to any action, but we will cover that in one of the later recipes.
Sometimes a script resource can become obsolete, and we would want to remove it. In order to remove a script resource that is not associated with any other system entities, perform the following steps:
- From the Web Resources view, select the script.
- Click on Delete.
- Make sure to click on Publish all Customizations for the changes to take effect. Now your script resource has been removed.
推薦閱讀
- 審計(jì)全流程技術(shù)操作實(shí)務(wù)指南
- Managing IaaS and DBaaS Clouds with Oracle Enterprise Manager Cloud Control 12c
- INSTANT Citrix XenDesktop 5 Starter
- 審計(jì)學(xué)基礎(chǔ)
- 基于價(jià)值增值的治理導(dǎo)向型內(nèi)部審計(jì)研究
- Securing Hadoop
- Microsoft Dynamics CRM 2011 Scripting Cookbook
- 非線性經(jīng)濟(jì)關(guān)系的建模
- OAuth 2.0 Identity and Access Management Patterns
- 風(fēng)險(xiǎn)導(dǎo)向?qū)徲?jì)準(zhǔn)則實(shí)施效果研究
- 行政單位經(jīng)濟(jì)責(zé)任審計(jì)實(shí)務(wù)指南
- 內(nèi)審兵法
- 內(nèi)部控制審計(jì)功能與質(zhì)量
- 效益實(shí)現(xiàn)管理實(shí)踐指南
- 中國(guó)重點(diǎn)經(jīng)濟(jì)領(lǐng)域統(tǒng)計(jì)分析