web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

How to refresh a grid in SL

(0) ShareShare
ReportReport
Posted on by 95

Hello,

I am hoping someone might be able to shed some light on grids for me.  I have written a customization that, when a button is pushed on the Service Contract Maintenance Equipment subscreen, runs a stored procedure which accepts the contract ID as a parameter and inserts records into the smconequipment table.  However, in order for the user to see the inserted records in the grid on the screen, he/she has to close the subscreen and the parent screen and reload them both. 

I am looking for a way to refresh the screen programatically in order to prevent the user from having to close and re-open the screen.

Any suggestions would be very much appreciated.

Thanks,

John

 

 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Barry Flynn Profile Picture
    3,090 on at

    John

    I'm not familiar with that screen, or that table...

    Nevertheless...

    One possibility might be to do an Edit_Cancel.

    That effectively re-loads the current document.

    Alternatively you could try CallChks on the screen's key fields.

    In both cases, it may be necessary to check whether a Save is required first (TestLevelChg from memory.)

    If there are unsaved changes, you can do a Save yourself (Edit_Save).

    But I prefer to put up a message to the operator telling them they must Save.

    After all, it is possible that the operator was just "looking around" and had no intention of ever doing a Save.

    As a general observation, I don't like code that does a Save without the operator being aware of it.

    That's a couple of general thoughts.

    Barry

  • John Kowalke Profile Picture
    95 on at

    Barry,

    Once again you have saved the day. Edit_Cancel did the trick. Thanks very much.

    John

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans