This topic is locked

Replicating Functionality

10/16/2011 9:46:36 PM
ASPRunnerPro General questions
V
vincekg author

I have a working application with a 1/2 dozen tables and few views for each table, menu, security etc. Is there any way to replicate that functionality for a different but very similar set of table names. When I change the name of the table it deletes the view and all of the functionality? I need a way to reuse the functionality for similar tables without retyping everything. Is there a way to use my working app as a template if all I want to do is use a different set of table with the same basic columns?

Sergey Kornilov admin 10/17/2011

It all depends on what kind of functionality you looking for. You can reuse events code creating a set of ASP or Javascript functions, saving them to the external file and using this file in several projects.
You can also save any project 'as template' and create new projects using this template.

V
vincekg author 10/17/2011



It all depends on what kind of functionality you looking for. You can reuse events code creating a set of ASP or Javascript functions, saving them to the external file and using this file in several projects.
You can also save any project 'as template' and create new projects using this template.


Understand the ASP and Javascript functions - Got that.
Problem is simpler. Don't understand how, if or what the template does for me if all I want to do is replicate the full functionality but with different table names??? Can I do that??? If I take any working project and want to change the name of a table I seem to lose all of the logic associated with the table, it views, validations etc. Am I doing something wrong? If I have two tables or views that are identical in columns but different in name, how do I do a 'global' replace and/or have the two tables and parallel functionality exist in the same project?
For example, in the event template, change the name of the 'event' table to 'myevent' table without the lose of views, and the custom layout and left side ListLoad summary of events by category or date???

Thanks

Sergey Kornilov admin 10/17/2011

If you change the name of the table you are going to lose all settings.
The recommended way to duplicate all functionality is to create a custom view based on the table in question. When you create a custom view of some table all table settings are copied to that custom view.