TemplatePages Interface (old)
Return to Introduction  Previous page  Next page

*** This is an old interface that is currently retained for backward compatibility and will eventually be phased out in a future release of the OpenUI. It is in your best interest to convert any existing code over to the new OpenObjects interface.

These are the two required functions that must be added to your modules:

·TemplatePages_Token  
·TemplatePages_Instructions()  

To register your module's OpenToken(s) into the OpenUI, you can call this function when you do the OUI_Register_Extension() function:

<MvFUNCTION NAME = "OUI_Register_Token" PARAMETERS = "modcode, token" STANDARDOUTPUTLEVEL = "">  

And

<MvFUNCTION NAME = "OUI_Unegister_Token" PARAMETERS = "modcode" STANDARDOUTPUTLEVEL = "">  

The parameters are:

·l.modcode   set to your module's modcode  
·l.token      is the string that is used to specify WHICH of your module's tokens are to be displayed  

For example, in your OpenUI_Install() function, you can add the lines:

<MvDO FILE = "{ g.Module_Root $ Modules.d.module }" NAME = "l.trash" VALUE = "{ OUI_Register_Token(l.modcode, 'TOKEN1') }">  
<MvDO FILE = "{ g.Module_Root $ Modules.d.module }" NAME = "l.trash" VALUE = "{ OUI_Register_Token(l.modcode, 'TOKEN2') }">  
<MvDO FILE = "{ g.Module_Root $ Modules.d.module }" NAME = "l.trash" VALUE = "{ OUI_Register_Token(l.modcode, 'TOKEN3') }">  

You can remove the token(s) in your OpenUI_Uninstall() function with this line:

<MvDO FILE = "{ g.Module_Root $ Modules.d.module }" NAME = "l.trash" VALUE = "{ OUI_Unregister_Token(l.modcode) }">  



 


Send feedback on this documentation.
© 2004 - 2000 Darren Ehlers & OpenUI Developer Consortium