Page 1 of 2

Adding Multiple Contacts to App

Posted: Sun Feb 15, 2015 5:19 pm
by Phil Rabon

I need to add 140 contacts, accessible to customers who use the app. I have followed the "Using the contacts component" tutorial, but I'm not sure how to add the contact information so it shows up in the app.


Adding Multiple Contacts to App

Posted: Mon Feb 16, 2015 4:05 am
by Yurii Orishchuk

Hi Philip,

Please specify more details about what you mean by "Add contacts".

Do you want to add contacts to device or get contact from device and display it in your app?

Regards.


Adding Multiple Contacts to App

Posted: Mon Feb 16, 2015 4:49 am
by Phil Rabon

Thank you for your response. Let me clarify my question. I don't need the app to access the contacts on the device. I want users to access a set list of names and numbers. Basically, I want the app to have a "phone book" for doctors and nurses at a certain hospital. (So they can use the app to simply look up each others' phone numbers, pager numbers, email and so on)
I followed the tutorial here:
http://devcenter.appery.io/tutorials/...

but now I can't figure out how to add in all the names and phone numbers.

I hope that helps, thank you again!


Adding Multiple Contacts to App

Posted: Mon Feb 16, 2015 7:20 am
by Evgene Karachevtsev

Hello Philip,

Could you please also clarify do you want do you want to keep these contacts in some db?


Adding Multiple Contacts to App

Posted: Tue Feb 17, 2015 9:45 pm
by Phil Rabon

I'm guessing a database would be the best way to keep all those contacts, especially since I will need to update the list of "people and phone numbers" once a year.

Would that be the best way, and how would I go about doing that? I'm learning as I go, so any help would be appreciated.


Adding Multiple Contacts to App

Posted: Wed Feb 18, 2015 6:39 am
by Evgene Karachevtsev

Philip,

Could you please detail what difficulties do you have when you are trying to work with db? Also please specify have you seen this tutorial?
http://devcenter.appery.io/tutorials/...


Adding Multiple Contacts to App

Posted: Tue Mar 03, 2015 5:39 am
by Phil Rabon

That worked perfectly. I was able to get the contacts to populate from the database, just like in the tutorial.
My next challenge is to have users click on the different pieces of information, Phone Number, Pager Number and email, and have it call or open and email to that particular address.
How would I go about this? All I've found are tutorials pulling the number from local storage and not from the database. Thank you again.

Image


Adding Multiple Contacts to App

Posted: Wed Mar 04, 2015 2:37 am
by Yurii Orishchuk

Hi Philip,

Please find more info on your questions here: http://blog.appery.io/2014/03/dialing...

Regards.


Adding Multiple Contacts to App

Posted: Sat Mar 07, 2015 3:59 am
by Phil Rabon

Thanks but that's to dial a specific number. I need to pull numbers from the database. I have 300 numbers and 150 email addresses and doing it this way, I would have to enter them all manually. Is there a way I can click to call from the database?


Adding Multiple Contacts to App

Posted: Sat Mar 07, 2015 4:12 am
by Illya Stepanov

Hi Philip -

Save your phone numbers into a local Storage and pass the values from the storage to make calls, as explained in above link from Yuriy. This can all be done with JavaScript.