Forum Discussion

DanJ's avatar
DanJ
New Contributor
7 years ago
Solved

Importing scripts across projects

Hi folks   Using TC12 web module, language is javascript   I'm currently building a project suite that contains multiple projects. One for generic application access kind of things (pGeneric) and...
  • tristaanogre's avatar
    tristaanogre
    7 years ago

    Consider each project as a "stand-alone" application.  All code units/modules that are needed within that project need to be added to the project.  So, any modules that are needed need to be added to all projects.  So, any of the modules that sLoadFormData imports need to be added to pSpecific as well.

     

    Alternatively, rather than "add existing items", you could encapsulate all your shared code that you need to use in all your projects into Script Extensions.  Then, no matter what project you're working on, the code units are available immediately without needing to modify the project.