Skip to main content
Completed

Share tables between projects

Related products:Software Factory

In the applications we create with SF, there are tables that are used in multiple applications. We call these “basic data” tables. For example, the tables for countries, states and cities are the same for all our applications.

We would like to share these tables without the need to copy them from 1 project to another. This becomes cumbersome when there is a change in the table, we need to manually update all projects that incorporate this table.

We did a research project, where we created a base project. This base project contained the tables that we wanted to share. We then imported this base project in a “normal” work project. This resulted in the tables to become available in the SF. Allowing the creation of relations between the tables in the base project and the tables in the work project. Updating the base project resulted in a warning that are is an update of this base project, and that it needs to be updated again.
However, when we generate a version of the work project, all imported base projects are reimported. E.g. tables are removed and inserted. As a result, all references between the tables are removed and need to be manual recreated again. As you can imaging, this is an error prone process.

TL/DR:
Provide a method for sharing table configurations between multiple projects from a single source. When the source is updated, there should be a convenient way to update the depended projects with the new configuration. Where the references in the work project are maintained during the update process.
Did this topic help you find an answer to your question?

5 replies

Jasper
Superhero
  • 678 replies
  • September 5, 2019
Hi Edwin,

There's a project planned to no longer throw away all generated objects when generating a project version, but to merge the changes instead. This would allow you to put any shared tables in base projects again. Would this solve your problem?

Forum|alt.badge.img+3
Hi Jasper,

yes this probably would solve the issue. As the created foreign keys from the "base/generated" tables to "project" tables are no longer removed. Any idea when this feature is planned?

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9
Updated idea statusPlannedWorking on it!

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9
Updated idea statusWorking on it!Next release

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9
Updated idea statusNext releaseCompleted

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings