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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

change and display value combobox in grid

(0) ShareShare
ReportReport
Posted on by

Hello,

I have the following problem.

In Screen RQ.510.00(approve requests) I load by project and deparment all details, in a button y check all detail if have remains requests if I have I make the value change, but is doesn't works.

Someone knows is missing something? 

heres is my code

Dim iFound As Long
Dim sSql As String
Dim CSR_Temp As Integer
Dim RecFound As Integer
Dim RecMaintFlg As Integer
Dim MemHandle As Integer
Dim RowNum As Integer
Dim iNumRenglones As Integer
Dim iNum As Integer
Dim iGridErr As Integer
Dim GridHandle As Integer
Dim ValorCelda As String
Dim liGridFetch As Integer
Dim liMaintFlg As Integer
Dim strInvtId As String

GridHandle = GetGridHandle("sprdbRQitemreqHdr")
liGridFetch = MFirst(GridHandle, liMaintFlg)

Do While liGridFetch = 0

        ValorCelda = GetObjectValue("ptxtItReqNbr")
           sSql = "xSp_FM_MK_ValidaPPTO " + SParm(ValorCelda)

           serr = SqlFetch1(CSR_Temp, sSql, iFound, LenB(iFound))
           Call SqlFree(CSR_Temp)

        If iFound <> 0 Then

                 Call SetObjectValue("scboAction", "NA")
                 Call SetBufferValue("bRQitemreqhist.status", "NA")
                 Call DispFields("Form1", "scboAction")
                 Count = Count + 1

       Else

               Call SetObjectValue("scboAction", "AP")
               Call SetBufferValue("bRQitemreqhist.status", "AP")
               Call DispFields("Form1", "scboAction")

       End If

                            liGridFetch = MNext(GridHandle, liMaintFlg)

                     Loop

                   If Count > 0 Then
                        Call MsgBox("There is departures without approve, please check", MB_OK, "Check Request.")
                        Call SetBufferValue("bRQitemreqhist.status", "NA")
                        Call DispFields("Form1", "scboAction")

                   End If

                   Call MDisplay(GridHandle)

*This post is locked for comments

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans