Hi, I'm using business rule to lock and unlock subgrid field, if field contains data then unlock field else lock field... but it is not working now? what might be the issue..... please suggest me...
Hi, I'm using business rule to lock and unlock subgrid field, if field contains data then unlock field else lock field... but it is not working now? what might be the issue..... please suggest me...
Hi,
Please see below blog which has js code to achieve your requirement.
xrmdynamicscrm.wordpress.com/.../
Pass the list of fields to be disabled in array object and attach the code on onrecordselect event.
Hi Abhilash,
In this case you can use the JS code to manipulate the fields as required,
stackoverflow.com/.../disable-column-in-dynamics-crm-editable-subgrid-based-on-a-condition
i make scope as entity only but it is not working for editable grid... in form level it is working fine...
Hi Abhilash,
Thank you for your query.
There are three options possible for the scope of a business rule;
Single Form Scope – Use this when a business rule specifically applies to a single form. It involves selecting a specific form name.
All Forms – Use this to apply the business rule to all forms. (Including main and quick create forms.)
Entity – Use this to run the business rule at a form and server level. (Server level being triggered by a create or update of data.) Useful if the rule is to be applied not only on forms but when data is imported. Also useful if the business rule is to be applied to editable grids.
Please make sure the Scope of the Rule is set to Entity.
Hi,
You need to use some JS code for this scenario. Please check this thread:
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156