Page 1 of 1

How do you retrieve all the Formats defined in a schema

Posted: Fri Aug 07, 2009 2:20 pm
by ConvertFromOldNGs
by Joseph O'Dwyer >> Wed, 27 Oct 1999 20:34:22 GMT

I have used the schema method getInheritedFormats to return an ObjectArray containing all the formats inherited by a schema. But would like to know how to retrieve the Formats defined for a schema which I have a reference too.

Thanks

Joseph

Re: How do you retrieve all the Formats defined in a schema

Posted: Fri Aug 07, 2009 2:20 pm
by ConvertFromOldNGs
by Dean Cooper >> Thu, 28 Oct 1999 7:35:46 GMT

Here is the code for a getLocalFormats method which will appear on the Schema class in the RootSchema in Jade 5.1:

getLocalFormats(returnColl : ObjectArray input);begin

userFormats.copy(returnColl);
end;

You can add a similar method to the Schema class in your schema(s) that will do what you want. Don't call it "getLocalFormats" though.

Dean.