ERROR MESSAGE: Object doesn't support property or method 'mthGETCOMPOSITEKEYSTRING'

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
IvanR
Posts: 6
Joined: Fri Nov 10, 2017 6:39 am

ERROR MESSAGE: Object doesn't support property or method 'mthGETCOMPOSITEKEYSTRING'

Post by IvanR »

I create a customs instance list that extends from #VF_AC0120. I used 'ExecuteDefaultCommand' to show the default command. The code below appears to work fine before the EPC upgrade.

Code: Select all

00274	Evtroutine Handling(#CodesList.ItemGotFocus)
00275
00276	Define_Com Class(#vf_lm003O) Name(#DataItem) Reference(*DYNAMIC)
00277
00278	#DataItem <= #CodesList.CurrentItem.RelatedReference *As #VF_LM003O
00279
00280	* Make this the current item
00281
00282	#DataItem.avIsCurrent := True
00282
00284	* Show the default command handler
00285	#DataItem.avBusinessObjectReference.ExecuteDefaultCommand Atreferencelevel(1) Usebusypanel(#AVLISTMANAGER.RootVF_FR003Owner.CurrentVF_UM010O.BusyPanel) Withinstancereferencekey(#DataItem.GetCompositeKeyString) Ignoreenablement(False)
00286	Endroutine

After installing EPC141050-034, I got error "Object doesn't support property or method 'mthGETCOMPOSITEKEYSTRING' " on line 00285.

Capture.JPG
Capture.JPG (21.79 KiB) Viewed 4605 times

In another post, I saw suggestion to use #DataItem.avExecuteDefaultCommand but it wont accept.

Capture2.JPG
Capture2.JPG (33.34 KiB) Viewed 4605 times

What is the proper way to trigger the default command with this EPC?
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: ERROR MESSAGE: Object doesn't support property or method 'mthGETCOMPOSITEKEYSTRING'

Post by MarkD »

That's definitely the way to execute a default command now.
Could you use F2 (feature help) on your #DataItem object?
Then expand the methods in it.
You should see avExecuteDefaultCommand like this:
Capture.PNG
Capture.PNG (38.49 KiB) Viewed 4579 times
If you don't, then you'd have to think that the partition you are using has not been updated to EPC141034 level.
IvanR
Posts: 6
Joined: Fri Nov 10, 2017 6:39 am

Re: ERROR MESSAGE: Object doesn't support property or method 'mthGETCOMPOSITEKEYSTRING'

Post by IvanR »

Thanks Mark. We figured a problem on EPC level. The error was gone (avExecuteDefaultCommand is working) after correcting the installation.
Post Reply