Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Display data in SAFGrid

(0) ShareShare
ReportReport
Posted on by 10
Hi experts, 

I am new to development for Dynamics Sl. I am currently doing exercises with the SAF controls, however it was difficult for me in SAFgrid, since I could not fill it with data. I try to do a test by filling the grid with data from the GLSetup table, my code is as follows. Does not mark error, but does not fill the grid.

 
Dim Menhandle As Integer
 Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
        Update1.Levels = "DA"
        SAFGridDVSetup.DBNav = "xXGLSetup" '------Stored Procedure returns all from GLSetup Table
        SAFGridDVSetup.ColsFrozen = 0


      Call ApplInit()

      Call SetAddr(LEVEL0, "bGLSetup", bGLSetup, nGLSetup)
      Call SqlCursorEx(Csr_GLSetup, LEVEL0, "CSR_GLSetup", "GLSetup", "GLSetup")

      Call ScreenInit()

      Menhandle = DetailSetup(Csr_GLSetup, SAFGridDVSetup, PNULL, bGLSetup, PNULL, PNULL, PNULL)
    Call DetailLoad(SAFGridDVSetup)
       
  End Sub
Help please, 
I don't know if I need something so that the info is displayed in the safgrid.

Thanks!.
 
  • Mark E Profile Picture
    Mark E 6,405 on at
    RE: Display data in SAFGrid

    Do you have the stored procedure defined in the DBNav property of the SAFGrid object?

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans