26 Mar’19

D365 Customer ServiceScript in editable grid V 9.1 (EditableGrid_script_V9.0)

Introduction

You must have written script on form using javascript and apply various logic like enable/disable or setting value of another field on change of another field. After introduction of editable grid script which is applied on form is not applicable on editable grid. We can apply same logic, but we need to write on different structure.

Description:

Yes, we can apply the same logic on the editable grid as applied on the form. As you can see in the below screen shot two fields are locked and cannot be edited on the grid.

Also, if you have proper security permission than user can edit the date approved and it will set automatically.

You need to write script on the editable grid on the entity and not on the form as you can see in the below:

  1. You need to go the entity solution and add the script on change of record as you can see below

2. You need to write this script little different than the existing style

3.  As you can see in the above screen shot attribute is not access using the getAttribute() method but here we get using getByName().

4. Set value on form script using java script normal style.

Conclusion

Hope this help you write the script on the grid as well as on the form.

Written by

Subhash Mahato

Technical Consultant

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Expenses in PSA for Fixed Bid and T&M contracts

    23 August’ 2019

    Problem Definition: One of my clients decided to use Expense module in PSA and to his surprise he could see the amount v...

    Read more
  • Setup Dockers

    23 August’ 2019

    Docker is an independent container platform that enables organizations to seamlessly build, share and run any applicatio...

    Read more
  • Qualify Lead in D365 CE: Select which entity records should be created

    20 August’ 2019

    Wave 2019 Updates brought some really sought-after features. Another one which I would like to bring up is the Lead Qual...

    Read more
  • Early Opt-in for October 2019 Wave 2 Updates

    20 August’ 2019

    August 2, 2019 was when the Wave 2 Updates were to be out. And here we are! By now, you should have gotten the option to...

    Read more
  • Setting Unified Interface App Icons

    20 August’ 2019

    Default App Icons for typical D365 environment look like these.But here’s what you can do to change these to put...

    Read more
  • We respect your privacy.
  • This field is for validation purposes and should be left unchanged.