Open Aniket-Kharat opened 3 years ago
Hi @Aniket-Kharat,
You got the results collections right
var allPersons = await firebaseHelper.GetAllPersons();
if you need show in labels you just get the list item by index and show into lables.
How can I do that actually I'm new to xamarin so I don't know much about it. It will be very help full if you give me some reference code to work on
On Mon, Mar 22, 2021, 3:05 PM Delpin Susai Raj @.***> wrote:
Hi @Aniket-Kharat https://github.com/Aniket-Kharat,
You got the results collections right var allPersons = await firebaseHelper.GetAllPersons();
if you need show in labels you just get the list item by index and show into lables.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/susairajs/Xamarin-Firebase-RealtimeDatabase/issues/2#issuecomment-803914066, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATKVMP75XMIZKJIKLOSNRUTTE4FNHANCNFSM4ZRR6F7A .
var allPersons = await firebaseHelper.GetAllPersons();
var person1= allPerson(0);
then set id for your label (ex: x:Name="txtName")
now
txtName=person1.Name;
Thanks, I'll check it out.
On Mon, Mar 22, 2021, 3:18 PM Delpin Susai Raj @.***> wrote:
var allPersons = await firebaseHelper.GetAllPersons();
var person1= allPerson(0);
then set id for your label (ex: x:Name="txtName")
now
txtName=person1.Name;
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/susairajs/Xamarin-Firebase-RealtimeDatabase/issues/2#issuecomment-803924442, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATKVMPY4V42FDQMGOPVHGETTE4G7NANCNFSM4ZRR6F7A .
Fetching the data in listview is working perfectly but I wanted to fetch data in labels. I'm stuck to do this from last few days can you please tell me how can I fetch data in labels from Firebase realtime in xamarin forms. Please help me out.