Phil Rabon
Posts: 0
Joined: Sun Feb 15, 2015 5:19 pm

Adding Multiple Contacts to App

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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Adding Multiple Contacts to App

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.

Phil Rabon
Posts: 0
Joined: Sun Feb 15, 2015 5:19 pm

Adding Multiple Contacts to App

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!

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Adding Multiple Contacts to App

Hello Philip,

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

Phil Rabon
Posts: 0
Joined: Sun Feb 15, 2015 5:19 pm

Adding Multiple Contacts to App

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Adding Multiple Contacts to App

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/...

Phil Rabon
Posts: 0
Joined: Sun Feb 15, 2015 5:19 pm

Adding Multiple Contacts to App

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Adding Multiple Contacts to App

Hi Philip,

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

Regards.

Phil Rabon
Posts: 0
Joined: Sun Feb 15, 2015 5:19 pm

Adding Multiple Contacts to App

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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Adding Multiple Contacts to App

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.

Return to “Issues”