Page 1 of 1

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

Posted: Fri Nov 17, 2017 2:51 am
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 4606 times

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

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

What is the proper way to trigger the default command with this EPC?

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

Posted: Mon Nov 20, 2017 9:13 am
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 4580 times
If you don't, then you'd have to think that the partition you are using has not been updated to EPC141034 level.

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

Posted: Tue Nov 21, 2017 9:23 pm
by IvanR
Thanks Mark. We figured a problem on EPC level. The error was gone (avExecuteDefaultCommand is working) after correcting the installation.