Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL forum
Unanswered

Display data in SAFGrid

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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,554 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans