Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

run-time error '1008'

Posted on by 330

I am trying to update profit amount for Pa_Budegt_Maintenance details entry window.but getting error that i am trying to update a field which is set to be non editable. I tried to write dextirity Sanscript via Continuum Integration Library. now not getting error but not able to update yet..

profit is the field whose value i want to assign where i have stored the value of pabaseprofitamount from pa01301.

  Dim CompilerApp As Object
    Dim CompilerMessage As String
    Dim CompilerError As Integer
    Dim CompilerCommand As String

    ' Create link without having reference marked
    Set CompilerApp = CreateObject("Dynamics.Application")
   
    CompilerCommand = ""
    CompilerCommand = CompilerCommand & "    {-- Increment the next available sequence number by 500 --} " & vbCrLf
    Commands = Commands & "code = code + ""Set '(L) cMCBillRate' of window PA_Budget_Maintenance_Scroll2 of form PA_Budget_Maintenance  to profit;"" ;" & vbCrLf
      
    ' Execute SanScript
    CompilerApp.CurrentProductID = 258 ' PROJECT ACCOUNTING
    'CompilerApp.CurrentProduct = CompilerApp.CurrentProduct & "!Modified"
    CompilerError = CompilerApp.ExecuteSanscript(CompilerCommand, CompilerMessage)
    If CompilerError <> 0 Then
        MsgBox CompilerMessage
    End If

*This post is locked for comments

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans