Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Grid selection checkbox

(0) ShareShare
ReportReport
Posted on by 315

Hello,

In SalesTableListPage form, is there a way to prevent user from selecting a record in the grid, when it gets active, based on a condition?

Your help is most appreciated.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 231,321 Most Valuable Professional on at
    RE: Grid selection checkbox

    The actual posing is done by SalesFormLetter_Invoice, SalesInvoiceJournalCreate and related classes.

  • NewWatermelon Profile Picture
    NewWatermelon 315 on at
    RE: Grid selection checkbox

    I use canInvoiceBeUpdated method in SalesTableType class to disable/enable the Invoice button.
    It works fine with individual selection and it is a mess with multiselecting.

  • NewWatermelon Profile Picture
    NewWatermelon 315 on at
    RE: Grid selection checkbox

    Which class?

  • Martin Dráb Profile Picture
    Martin Dráb 231,321 Most Valuable Professional on at
    RE: Grid selection checkbox

    Then you should put it into the invoicing logic. Then it'll also apply if users do it from a different form (typically SalesTable form).

  • NewWatermelon Profile Picture
    NewWatermelon 315 on at
    RE: Grid selection checkbox

    I want to prevent the user from invoicing sales order(s) with a certain condition when he/she try to multiselect grid records.

  • Martin Dráb Profile Picture
    Martin Dráb 231,321 Most Valuable Professional on at
    RE: Grid selection checkbox

    I don't think you should try to block a selection.

    What is the action with the record that you actually want to prevent?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans