MKA,

> Class User.VLPSALUTATIONS Extends %Persistent [ ClassType = persistent,
> DdlAllowed, Owner = portal, SqlRowIdPrivate, SqlTableName =
> VLP_SALUTATIONS ]
> {
>
> ClassMethod nextVal() As %Integer [ SqlProc ]
> {
>     QUIT %INCREMENT(^Sequences("VLSAL_SEQ"))
> }
> }

I don't know if it's a typo on the code you posted, but it should be
$INCREMENT, not %INCREMENT.

> Calling
> select vlpsaluations.nextVal() from vlp_salutations
> throws an error. If my nextVal function simply returns any fixed value, it
> works.

Could you post the error you get?

HTH,

Ram�n



Reply via email to