In the following example that shows the use of the JadeUserCollClass class, a user collection is defined as a subclass of
vars dict : JadeUserCollClass; cluster : JadeDynamicPropertyCluster; begin // Define the user collection as a member key dictionary beginTransaction; dict := currentSchema.addUserCollectionSubclass(MemberKeyDictionary, "CustomersByName", "dbfilename"); dict.setMembership(Customer); dict.addMemberKey("lastName", false, true, 0); dict.endKeys(true); commitTransaction; // Make a runtime dynamic property using the user collection beginTransaction; cluster := Root.addDynamicPropertyCluster("RootCluster"); cluster.addExclusiveDynamicProperty("allCustomersByName", dict); commitTransaction; end;