Hello @Corentin Blondeau
Here is the code to retrieve the properties in the same order they are defined in the class.
ClassMethod GetPropOnDefinedSequence(pClass As%String = "", Output pProperties)
{
For {
Setproperty=$$$comMemberNext(pClass,$$$cCLASSproperty,property)
Ifproperty=""QuitIfproperty="%%OID"!(property="%Concurrency") continueSet pProperties(
+$$$defMemberKeyGet(pClass,$$$cCLASSproperty,property,$$$cPROPsequencenumber),
property)=""
}
Return$$$OK
} The properties assigned to the pProperties parameter
properties(2,"City")=""
properties(3,"IsActive")=""
properties(4,"State")=""
- Log in to post comments