set list=##class(SubClass.ListOfObjects).%New()
for i=1:1:total {
do list.Insert(##class(MyClass.People).%OpenId(i))
}
quit listHolden wrote:
I can get one Person only. I want to get a list of person. Tks Holden
"Peter Cooper" <[EMAIL PROTECTED]> ???? news:[EMAIL PROTECTED]
Holden
classmethod getPersons(inOBJID) as Samples.Person [webmethod] { quit ##class(Samples.Person).%OpenId(inOBJID) }
Samples.Person must also extend %XML.Adaptor
Peter
On Tue, 20 Apr 2004 10:18:38 +0800, "Holden" <[EMAIL PROTECTED]> wrote:
hi,all I want to query a information/object list,eg the person list in
webservice.
How can I do this function? classmethod getPersons() as ...[webmethod] { // there is a persistance class "Person" }
Thanks Holden
