What I’m trying to do:
I’m trying to clone an app A that has imported tables from app B. When using a clone link to create app C, it seems to copy the tables and contents but they lose the link with app B (so adding a new row will not reflect in app B and vice versa).
What I’ve tried and what’s not working:
Tried cloning with a clone link and creating a new app from a github repository, none work.
Anyone knows how to achieve this?
Cloning an app always copies data tables, so that the person who clones the app isn’t affecting your data tables. You can always go into the cloned app, remove the cloned tables, and add the original tables back.
4 Likes
Yeah I figured. Since it will serve as some kind of template, I might work with protected http endpoints to interact with the datatables instead. Thanks!
You can probably git clone the template app (that uses the shared tables) and then force push that to a new Anvil app, which should then link to the same shared tables. It wouldn’t be as easy as cloning the app through Anvil, but might work for your case.
You can probably accomplish the same with the Github integration, by saving your template app to a Github repo and then creating a new app from that repo.