Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Regular Contributor
Gator
Posts: 269
Registered: 12-05-2008
0

InvokeChange error

MAS 200 Version 4.40.0.6

 

OLE Error Number:  438

Description:  Object doesn't support this property or method:  'oUIObj.InvoiceChange'

 

This is being called from a BT_Link button.

 

retVal = 0

ocsVal = 0

ToWhse = ""

 

ocsVal = oScript.DebugPrint("Change Trans To Whse")

retVal = oBusObj.GetValue("ToWhseCode$",ToWhse)

retVal = oUIObj.InvokeChange("TOWHSECODE",ToWhse)  <--- Errors on this line

 

 

Any ideas?  Is this a 4.50 only thing?

Regular Contributor
Gator
Posts: 269
Registered: 12-05-2008
0

Re: InvokeChange error

After looking into this some more, this function is only available in 4.50.  Is there any chance this function could be added via Product Update in the future to 4.40?

Sage MAS Partner
JKatulka
Posts: 213
Registered: 07-19-2010
0

Re: InvokeChange error

What is the purpose of the invokeChange method?  Didn't see it the object reference...

Justin
Moderator
khmackall
Posts: 222
Registered: 10-16-2008
0

Re: InvokeChange error

Justin,

 

InvokeChange() is used to change the value of a control on the screen or a column in a grid.  This method may be useful for certain situations where there is unique logic associated with changing the value of a control on the screen or in a grid, which is not invoked via oBusObj.SetValue().  E.g.  Changing the QuantityOrdered in a sales order line does not update the “Total Amount” displayed on the lower-right corner of the Lines tab.

 

Thanks,

Kent