Hi folks,
I have an Android App written in another language that I am converting to Livecode as part of the process of learning livecode. Thus far I have managed most things, however, I am having trouble getting information from the mobile's contacts. The only info that seems to be retrieved is the firstname and lastname. Below is a snippet of code being used:
Code: Select all
on mouseUp
local contId,contData
if the environment is "mobile" then
--user pick contact
mobilePickContact
put the result into contId
--was one chosen?
if contId is not empty then
put mobileGetContactData(contId) into contData
put contData["firstname"] && contData["lastname"] into field edtName
put contData["note"] into field edtNotes
put contData["email"]["home"][1] into field edtEmail
put contData["phone"]["mobile"][1] into field edtMobile
put contData["phone"]["home"][1] into field edtPhone
end if
end if
end mouseUp
Thanks,
Hilton.