How to get the number and the name of the contacts selector
Hi all
I got the Contact Picker work but I have no idea how to get the selected telephone number and the name.
There are attributes that I can put like contactId.value () to retrieve or there is another way?
Thanks in advance.
ImageButton{ defaultImageSource: "asset:///images/bluebutton.png" onClicked: { contactPicker.open(); } attachedObjects: [ ContactPicker { id: contactPicker onContactSelected: { result.text = "You chose contact: " + contactId; } } ] } Label { id: result text: "You chose contact: " }
Hello
You can get the contact name and phone number as this,
ImageButton{ defaultImageSource: "asset:///images/bluebutton.png" onClicked: { contactPicker.open(); } attachedObjects: [ ContactPicker { id: contactPicker onContactSelected: { result.text = "You chose contact: " + contactId; // call a cpp method to get the details
app.getDetails(contactId); } } ] } Label { id: result text: "You chose contact: " }
the CPP code:
void ContactDetails(ContactId id) { Contact contact_info = m_contactService->contactDetails(id); QString firstName = contact_info.firstName(); QString lastname = contact_info.lastName(); QListphoneno_list = contact_info.phoneNumbers(); QStringList no_s; foreach(ContactAttribute attr, phoneno_list) { no_s << attr.value(); } }
You can get details like this.
Kind regards
Naresh Kodumuri.
Tags: BlackBerry Developers
Similar Questions
-
How to get the contact's mobile phone number?
I know there is StringArray for data http://www.blackberry.com/developers/docs/4.6.0api/index.html telphone and I see someone [contact.getString (Contact.TEL, 0)] to obtain the HOUSE telphone number. From my point of view, it should be Contact.Tel [N] above. So my question is how do I get the mobile phone number? Can I use contact.getString (xxx)? Thanks for any response.
VR;
getString (Contact.TEL, Contact.ATTR_MOBILE)
instead of 0 as the 2nd argument
-
How to get the contact details of the contact list to the use of the incoming call number?
Hello
I need callid, name, name of the company from the list of contacts to the use of the incoming number. If anyone has a solution please reply me as soon as possible.
I have code below
void ApplicationUI::onCallUpdatedd(const bb::system::phone::Call &call) { CallState::Type state = call.callState(); //qDebug() << "call updated: callId=" << call.callId() << " callState=" // << state; if (state == bb::system::phone::CallState::Connecting || state == bb::system::phone::CallState::Connecting) { qDebug() << "call connecting"; } else if (state == bb::system::phone::CallState::Connected) { qDebug() << "call connected"; } else if (state == bb::system::phone::CallState::Failed) { qDebug() << "call Failed"; } else if (state == bb::system::phone::CallState::Disconnected) { qDebug() << "call Disconnected"; } else if (state == bb::system::phone::CallState::Incoming) { qDebug() << "call Incoming"; } else { qDebug() << "Invalid"; } }
then, how I got the calling detail like number, name, company ect... call id?
-
How to get the contact data of old hard drive?
A friend's mother died. He would like to get contact details. He says that he "kept everything in Internet Explorer." I can't understand this... was it really store in Outlook? I got the hard drive of the machine and it attached to my laptop under drive H. How can I recover the data?
I would ask him what email he used; It is possible that he was using a webmail (gmail, hotmail, etc.) and has been updated and access to contacts and mail via Internet Explorer, and it don't realize may not be not that they were stored on the webmail site and were not yet on his hard drive. Another possibility is Contacts in C:\Users\username\Contacts, but that don't rely on Internet Explorer.
-
Hi all
Can I know how to get the bluetooth device name and the name of the bluetooth device address device class?
Example:-if my bluetooth device address is :-98:EB:CD:01:1F::90 then how do I get my bluetooth device name?
I hope you understand my problem. Let me know as soon as possible.
:
Thanks for the reply.
-
I can't find my serial number for Photoshop Elements version 8. It came with a HP computer I bought in 2010. I recently had to do a recovery, it has been uninstalled. I moved since then and don't know how to get the serial number.
Please explain how I can get the serial number?
James, if it came with the machine and you are not registered, then you can't get it from the dealer where you purchased the machine. PSE 8 is now end of life and we have limited resources for the same thing, make sure you check the system requirements | Adobe Photoshop Elements if you try to install it on a new machine.
If you want to upgrade to the latest version, you can check: photo editor, change the images. Adobe Photoshop Elements 13
Atul_Saini
-
How to get the LOGO and company name in the theme of the 4 apex
Hello
I use the theme 4 for apex 4.0.2.
I must have the logo as well as the name of the company the two, but when I select den Image it shows only the image in the dashboard and when I select den text it shows the name of the company.
How to get the two logo and the name of the company?
Thanks for your help.
Kind regards
Sébastien Pallav.Pushpesh Pallav says:
HelloI use the theme 4 for apex 4.0.2.
I must have the logo as well as the name of the company the two, but when I select den Image it shows only the image in the dashboard and when I select den text it shows the name of the company.The word is spelled 'then', not 'den '.
How to get the two logo and the name of the company?
Select the text, and include HTML, making reference to the image in the text:
Company NameThe image src URI used depends on the location of the image, which you have failed to specify.
-
How to get the name constraintlist and column in a table?
Hello
can someone please tell me how to get the type of constraint, and it is imposed on the names of columns in a table.
Thank you
NicoHello
Use the two tables:
select * from all_constraints select * from ALL_CONS_COLUMNS
Sorry SY, you were faster than me...
Published by: user11268895 on August 19, 2010 13:27
-
How to get the name of sbRIO programmatically
How to get the 'name' and 'Comment' by sbRIO I write to sbRIO-9602 Max in the box of Identification (model, serial number, MAC address, name)?
Use RT Information.vi of target is located under the range of public services under LabVIEW Realtime.
Christian
-
How to get the length and sub lymph nodes.
Hello
find the script below.
< List1 >
< list >
< List1 >
< List1 >
< List1 >
< / list >
< list >
< List2 >
< List2 >
< List2 >
< / list >
--
--
-
-
-
-< / list1 >
Here the tag list will be growing based on the I / p. Now what I want is to know how to get the length of the tag < list >.
To implement the above I used the code below
var number = xfa.record.List1.List [0].nodes.length; (Does not work)
But if var account = xfa.record.List1.nodes.length; (work)
and also I want to delete a tag inside the < List > tag. How?
Very Urgent.
Thanks in advance.
Yes, you need to use the name instead of the value to get the tag name...
xfa.datsets.data.Root.nodes.item (0) .name
Thank you
Srini
-
How to get the name of the current PDF file?
Hello world
I know this is maybe a question has been asked millions of times, but I couldn't find a straight answer.
I am using a workflow that comes with a Content Manager Solution is not Adobe this WF will generate a file very long (about 30 characters) name that will be used as the number of unique processes.
To go to the step next in the workflow that I have to update the table in the database and registration update will use the process number. What I did is that I added a field in hidden text in the form, which should have the number of processes on the initialize function.
Now my question is how to get the file name of the opened PDF file?
I'm sure that there is a function in JS, but I couldn't find the way to do it.
Thanks in advance guys for help.
Mazen
Acrobat can create LiveCycle Design possible forms, but each uses a different and different languages or syntax approach.
There are a number of ways to get the file name and path, urt getFileName.
-
How to get the string (specified by row and column) of txt file with labview
Hello world
How to get the string (specified by row and column) of txt file with labview
THX
As far as I know, a text file has no column. Be more specific. Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character? You can read from the spreadsheet String function and set the delimiter to a space. This will produce a 2D channels table. Then use the table to index and give the line number and column number.
-
I use lv 8.5 and teststand 4.0.
I did a step type custom and recorded at the MyTypes.ini in pallets of type.
I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.
T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.
But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.
Using joint file, how to get the setting custom step type values I put in *.ini?
Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.
Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?
I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.
Everyone knows Q2?
Thank you.
-
How to get the new update for the help and support
OT:how to get the new update of the abd support help
How to get help and support update
Hello rickstemberger,
Please click the number of the KB article for more information on how to add Windows Vista Help files.
KB Article ID: 917607 -I can not open Help files that require the Windows Help program (WinHlp32.exe)Microsoft stopped including the 32-bit help files viewer in versions of Windows starting with Windows Vista and Windows Server 2008.
However, with article 917607, you can download the appropriate version of the Windows Help program (WinHlp32.exe) and add them
the operating system.Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
How to get the maximum number of days in a month?
How to get the maximum number of days in a month?
I use a dateField. where I can get the month. Now, I want to get the maximum number of days in a month.
How can I get it?
Please help me. and thanks in advance... []
NET. RIM. Device.API.util
Class DateTimeUtilitiesgetNumberOfDaysInMonth (int month, int year)
Returns the number of days in the specified monthIt took me like 10 seconds to find it in the API, I guess you spent more time writing the post...
Maybe you are looking for
-
FPGA: stream of compilation
Recently, after you add a code over to the FPGA design, I systematically get the message "this is a problem with the stream of compilation. The compilation will continue, but reports of compilation will be unavailable until it is complete." This mess
-
Hello guys, I'm from Brazil have an Atrix AT and T, I've updated it live and after that when I call, he gets to the home screen with the message (falied boot 2) and not leave it, I would like to know WHAT you can do to solve this problem Thank you PS
-
Cannot reactivate windows after attempting to migrate desktop for Mac
Hello. My question is this. I used to use a PC, but now I have a Mac. I wanted to be able to access my old configuration, files and programs via the mac PC. I was recommended an app called "Parallel Desktop". I downloaded a demo and followed the inst
-
Latest update downloaded Sype November 1 but when I went to use it offline (crashed) whenever the video begins to have. Auidio looks very good. Have uninstalled and reinstalled the software Skype both Lifecam without success. Today, I uninstalled Sky