I think you can just take out the MVITYPERTN parameter and everything
will continue to work. In your example, cmql will continue to use the
SUBR subroutine call, and object access will continue to call the
entry point in the O.POSTING mvi routine via calcOrgName.
MVITYPERTN was removed because it isn't necessary anymore. Itypes are
compiled on the fly, and the code that goes into attribute 13 of the
itype (which used to be MVITYPERTN) is now a precompilation if the
itype basic expression, and isn't a method dispatch anymore (so no
embedded namespace reference there to worry about).
Starting in 2010.1, you can use the more mnemonic $MVID and $MVRECORD
instead of $MVV(16) and $MVV(17). But you don't need them at all: your
computation method can be rewritten in mvbasic and you can get rid of
the O.POSTING mvi routine:
ClassMethod calcOrgName(ItemID As %String, Item As %String) As
%Integer [ Language = mvbasic ] {
@ID=ItemID
@RECORD=Item
CALL getpartynameOV(RESULT,@RECORD<15>)
RETURN RESULT
}
You could probably simplify it further if the getpartynameOV
subroutine doesn't use @ID or @RECORD internally:
ClassMethod calcOrgName(Item As %String) As %Integer [ Language =
mvbasic ] {
CALL getpartynameOV(RESULT,Item<15>)
RETURN RESULT
> --
> You received this message because you are subscribed to the Google
> Groups "InterSystems: MV Community" group.
> To post to this group, send email to
Cac...@googlegroups.com
> To unsubscribe from this group, send email to
CacheMV-u...@googlegroups.com
> For more options, visit this group at
http://groups.google.com/group/CacheMV?hl=en