cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Masino
Super User
Super User

Different users with differents db

Hi,
I am building an app where depending on the user logged in it calls a different excel-sheet.

In my gallery for example there is :

If(User().FullName="User1";User1;User().FullName="User2";User2;User().FullName="User3";User3)

And actually it works fine.

Now i am trying to implement a button where the user can delete their data like:

Remove(******;Gallery1.Selected)

 

My questions are..:

 

Is there any method to "automatically" get the db i need, maybe using a variable?

If not, how can i implement the remove item button?

 

Thanks..A LOT

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Masino ,

You cannot add or remove data sources except in the design studio. You can of course link them all and set the desired table according to the logged-in user (you would have to hard-code this)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

Masino
Super User
Super User

I solved my problem defining a list of users and sorting them in a gallery! Much easier than having differents excel arks!As i said , i am a newby in powerapps and i didnt know about this thing!
Thanks to everyone that had a minute to answer my topic!

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @Masino ,

You cannot add or remove data sources except in the design studio. You can of course link them all and set the desired table according to the logged-in user (you would have to hard-code this)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

WarrenBelz
Super User
Super User

Hi @Masino ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Masino
Super User
Super User

I solved my problem defining a list of users and sorting them in a gallery! Much easier than having differents excel arks!As i said , i am a newby in powerapps and i didnt know about this thing!
Thanks to everyone that had a minute to answer my topic!

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,976)