How to deal with separate frontend and backend #540
-
I'm working on a project with separate frontend and backend. The frontend has linked tables which point to the backend. At runtime, the frontend is designed so that the user can select one of many backends, and uses When I use Build From Source in the plugin, I get this error for each linked table:
What's the recommended approach here? The tables should not to be linked to anything until runtime. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Is the back end available during the development of the front end? It appears that the linked table target could not be found during the build. A linked table needs to be linked to "something" during creation, or the link will fail. (As you noted above.) There are a few approaches you could take with this. One approach would be to include the front and back end tables in the same repository, and build the back end database before building the front end database. This works well when the front and back end have more of a tight coupling where changes need to be made together. Another approach would be to tie into the While a linked table can still exist in a database even if the target cannot be accessed, I don't think you can create a linked table without actually having a valid target. I suppose you could even create a temporary target for the build, tying into the |
Beta Was this translation helpful? Give feedback.
Is the back end available during the development of the front end? It appears that the linked table target could not be found during the build. A linked table needs to be linked to "something" during creation, or the link will fail. (As you noted above.)
There are a few approaches you could take with this. One approach would be to include the front and back end tables in the same repository, and build the back end database before building the front end database. This works well when the front and back end have more of a tight coupling where changes need to be made together.
Another approach would be to tie into the
BeforeExport
hook and relink the back end tables to a known set that will …