Hope everyone is well.
If a subgrid cannot be set read-only on a page, is there another control that can be used to show related records in an N:N relationship that can be set read only?
Original Message:
Sent: Dec 17, 2020 10:36 AM
From: Jim Corriveau
Subject: Disable Subgrid on Form
Has anyone been able to disable/lock a subgrid using javascript on page load?
I've found examples but they date back a few years and do not seem to work now.
Thank you,
------------------------------
Jim Corriveau
A.W. Chesterton Company
Groveland MA
Original Message:
Sent: Dec 14, 2020 10:54 AM
From: Jim Corriveau
Subject: Disable Subgrid on Form
Glen,
I know this thread is a little old, but do you know if there have been any changes to D365 that would allow a subgrid to be set read only? Would i still need to hide the Add and Delete buttons, if so, can that be done with javascript?
Any help is appreciated,
------------------------------
Jim Corriveau
A.W. Chesterton Company
Groveland MA
Original Message:
Sent: Oct 22, 2018 01:48 PM
From: Glen Wolinsky
Subject: Disable Subgrid on Form
Laura,
It can be done in a supported way, but even then, it is not a perfect solution. In our case we set a two-option field on the form called DatagridReadOnly and then altered the visibility of the Add and Delete buttons for that entity based on the content of that checkbox. I think there is some javascript code as well, but it has been a while and someone else on my team created this solution.
If you'd like more details on this approach, please let me know and I'll get the information together.
Thanks,
Glen
------------------------------
Glen Wolinsky
Lead Applications Developer
Miller & Martin PLLC
Chattanooga TN
Original Message:
Sent: 10-21-2018 12:49 PM
From: Laura Longley
Subject: Disable Subgrid on Form
I have an Order form that contains a subgrid of Order Products in one Section of the form.
When an Order has been successfully sent for processing, I want to disable all fields on the Order form so the user cannot make any changes.
I have successfully disabled all fields using javascript to disable all tabs and all sections on the form, but it does not work for the Order Products subgrid. The user still has the ability to double click on a row in the subgrid and open the Order Products form for editing. I could modify the Order Products form to disallow edits, but if possible, I'd like to disable the Order Products subgrid on the Order form so that the user cannot even open the Order Products form for a given line.
Suggestions?
------------------------------
Laura Longley
Dominic Systems Limited
Chilliwack BC
------------------------------