Page 1 of 1

Locking PO Notes for a specific Notes Type

PostPosted: Thu Mar 18, 2021 7:05 pm
by DannyC
Kind of using this as a basis, which unlocks all rows of the Purchase Orer Notes grid, it'd like to keep that as is except for a particular Notes Type.

If a PO Notes Type = a given string, then I want that locked always.
Instead of using -1 for the row, I know I somehow need to specify the row integer where ever that Notes Type is used.

Would the only way be to foreach through the Notes collection checking each row of the grid?

Re: Locking PO Notes for a specific Notes Type  Topic is solved

PostPosted: Thu Mar 18, 2021 11:16 pm
by Mike.Sheen
DannyC wrote:Kind of using this as a basis, which unlocks all rows of the Purchase Orer Notes grid, it'd like to keep that as is except for a particular Notes Type.

If a PO Notes Type = a given string, then I want that locked always.
Instead of using -1 for the row, I know I somehow need to specify the row integer where ever that Notes Type is used.

Would the only way be to foreach through the Notes collection checking each row of the grid?


Yes, that's the only way with our grids.

Re: Locking PO Notes for a specific Notes Type

PostPosted: Fri Mar 19, 2021 10:09 am
by DannyC
Yes, that's the only way with our grids.


Sweet.
Done it. Works a treat!