hi
I wold need help how to do this:
Class AB{
Relationship A As A [ Cardinality = one, Inverse = Bs ];
Relationship B As B [ Cardinality = one, Inverse = As ];
Property SortOrder As %Integer [ InitialExpression = 1 ];
Index ...
}
Class A{
Relationship Bs As AB [ Cardinality = many, Inverse = Campaigns ];
...
}
Class B [ ClassType = persistent, ProcedureBlock ]
{
Relationship As As AB [ Cardinality = many, Inverse = Campaigns ];
...
}
now I have an Instance A of Class A
and I can loop through using
A.Bs.Count()
A.Bs.GetAT(x)
A.Bs.GetAT(x).B
A.Bs.GetAT(x).SortOrder
do I need a loop to walk through every entry
or is there something like an array_sort like in PHP available ?
brg
werner