Inheriteing a zen page from another custom zen page -- best practices
Hello,
Has anyone encountered or done this: inherit a zen page from another custom zen page?
e.g. EditPage extends
///base code, some abstract methods
Property id;
UserEditPage extends EditPage
//user edit code
Property id As %String [ZENURL = "ID];
I'd like to take advantage of the inheritance and put all the common methods in the parent page EditPage, but there's no %OnNew concept for the zen page, so I can't set properties for each child page when first creating it.
Perhaps %OnBeforeCreatePage? %OnAfterCreatePage? I don't see any examples of extending a custom page in the SAMPLES namespace.
Thanks,
Laura
What are the best practices for inheriting a page