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