73
Views
3
Comments
[Firebase Realtime Database] How to use GetDataRealtime?
Question
firebase-realtime-database
Mobile icon
Forge asset by Ryan Surjadi
Application Type
Mobile

Hi, first of all thank you for creating this forge component. 
I have a question on how to use GetDataRealtime.


The image below is how I used it (via link on click)
but I received an error (the SetData is working fine, as I see the data being changed in the firebase website).


2023-10-13 15-08-35
Ryan Surjadi

can you share to me your firebase data structure and sample data?

UserImage.jpg
Clint Menguito

This is my data (successfully saved in realtime database)


This is how I saved it


This is how I try to retrieve it


I tried using the GetDataOnce and it works fine.
but I want to get the data realtime, i think the GetDataRealtime needs 2 arguments, one for the ref and one for the  callback. But you're GetDataRealtime action has only 1 input parameter.

2024-05-22 10-21-41
Mohammad Hasib

As i understand and i used the get api it accepts : Project ID and Document Name.

Pass Project ID and Document both.

I used the below component.

https://www.outsystems.com/forge/component-overview/7044/firebase-firestore

Regards,

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.