If you have imported your dependency into App 1, can you simply call the dependency’s function from within inside App 1’s link callback? (Or raise the desired event)?
Thanks for sharing the clones but what have you tried to do and what error are you receiving? (Perhaps that is given in the clones, but I’m on my cell at the moment).
Let me know if I’m misunderstanding the question. It souns like you want to execute a function and/or raise an event inside a dependency.
As you can see, I’m trying to call the “login_btnclick” method inside of the “link_1_click” method. When I click link_1, I get an error indicating
“login_btn_click is not defined”
Just a reminder, “login_btn_click” is a method that lives in the “Splash” form. The “Splash” form resides in the dependent app.
I can’t test it right now, but my guess is that you should be able to use the usual dot notation to access methods on that dependency. When you inspect the dependency class, does the autocompleter give you any hints as to how to interact with it? As I said, I’m away from the computer so I can’t be more specific. I’m sure I’ve done this before though.
It’s probably worth looking at the first few minutes of this video https://anvil.works/docs/how-to/custom-user-auth where the login flow module is used which I think will answer your question.
You also would need the users, datatables service in your App1 for the login flow module to work.