How to Get Data based on User ID

Hi Team,

How i can get all data from air table which are inserted by app user what condition will be there pls share details so i can get some of idea .

here i am using firebase email authentication.

Thanks

i am not working on this before but from what i understand. When user successfully log in,you can place his/email at label and then search at airtable and display it at screen.

Hi @ozel1978 Thanks for revert.

I have resolved this now am getting info based on user.
I have stored user in variable and Airtable

1 Like

@vikkun
great to hear thatā€¦ if you can share the block so we do reference in future.

Hi @ozel1978 Thanks,

This a block which I have used

I hope it will useful for other who are new like meā˜ŗļø

3 Likes

Please note that GetAllRows block only works in the Legacy UI. It is not available in the DnD UI so you are building an app without porting to new UI in mind.

1 Like

can you provide full screen on this block and how the design look like?

i plan to do same thing. appreciated your help.

@ozel1978 block are available on same post go through that.

i could not see the last one, seem you join some block. and how the design look like?
can you screen shoot?

There is nothing advance just shown column , you can show whatever column you want to show in list vwr just add it on join block.

Hello thunker friends.

Iā€™m searching for this solution with the new UI. Like the orginal poster, Iā€™m trying to filter my data table by a UserID, retrieved on sign-in.

Has anyone found an updated walk through using the new blocks? Alternatively, does anyone have a rosetta stone that helps me translate old blocks to new UI for the great tutorials that are already out there?

Thank you kindly,
Josh

1 Like

please show a screenshot of what have you done so far.

1 Like


For context. Iā€™m trying to build a tracking app that records the amount of time someone spends connecting socially. On the home screen, the user can save a connection event (into airtable ConnectionTracker). This event consists of a name, date the connection happened, and amount of time spent. I also capture the userID and time the event was recorded. These are captured in the create row block on the right.

Iā€™d also like to recall those records and show them to the user. What I ā€˜thinkā€™ Iā€™m doing is:

  1. creating a locally stored table called LocalConnections
  2. trying to populate that table with rows that match the UserID

Thank you for taking a look.

1 Like

This sample project should give you the basic idea for what you are trying to do.
https://x.thunkable.com/projectPage/5fb9fb1dbfeb240011084d78

1 Like

Thank you @muneer for your help. My error was that I nested the function under the ā€˜if errorā€™ scenario instead of ā€˜if not errorā€™. I also fixed an ID reference. Spots circled in screen shot.

Also, your sample project wonā€™t preview for me. App preview says ā€˜Something has gone wrong. Check your blocks and reset the page.ā€™ Webpreview, the first page will open, but when I select an item, the screen goes blank.

Youā€™ve certainly helped me enough already. Thank you kindly.

1 Like

Thunkable developers keep enhancing the system and sometimes you need to re-visit your code to make it compatible with the latest changes.

I fixed my project, you can delete the one you have now and remix the project again and you should see it working.

1 Like

hi thunkers ! i really need some help right now, i also want to save data for each user id.

What have you tried? There are tutorials and documentation and videos about using Firebase to save user data.

hi, i had tried the youtube tutorial on how to use cloud variables to save dataā€¦but when i try to test my app it says ā€œsomething just got wrong. check your blocks and reset this pageā€.

could you will help me to save my data base for each user id?

this are my blocks

The very first thing you need to do is a simple test to make sure you can write and read data from Firebase.

After signing in, try to set cloud variable [path] to a text value such as ā€œtestā€. The [path] should be the actual Firebase node such as userID/title. Then, try to set a labelā€™s text to that same variable (cloud variable [path).

Let us know if that works. If it doesnā€™t, post a screenshot of the blocks for that simple test and also make sure that you have entered Firebase authentication info in Thunkable and set your Realtime Database rules in Firebase Console to allow access.

2 Likes