Contact API

Has anyone tried using the PIM API of Contact? I have problems to use it because the compiler always complains that the library, - libbbpim is not found. I know this is because I checked on my camera and my system, and there is a .so for her file. I even tried it with a new project of Cascades under Beta 3, and it does not work. I clean up the project, and it still does not work. I also tried to use the Wizard add a library, and it still gives me the same error.

It is the only library as far as I know it does not, because I have no problem with including - lbbsystem or - lbbdata.

I think that the library to include is - lbbpim. Check once.

Tags: BlackBerry Developers

Similar Questions

  • Contacts API - add to the action item "App."

    I am currently working on an application that is based on a list of customers, like opening the app. The application works perfectly, but I was wondering if it is possible to use the contacts API to invoke my application?

    I mean, when you open an email (within the hub of BlackBerry) you are given an element of action 'Add contact', so I wondered if it would be possible to have an element of action added to the emails in the hub of BlackBerry where the user could "add to the customer" so that he would take the name and e-mail address of the sender of email > invoke my app > fill in the fields with the data from the email

    I don't think that what you describe is possible.  You can add a menu item to share e-mail messages from the hub.  Who can partially make you what you are looking for.  This post is an example of it.

    http://supportforums.BlackBerry.com/T5/native-development/invocation-target-for-PIN-message-share-fr...

  • PhoneNumbers contact Api always returns 0

    Hello

    Even though I have several numbers for most of the phone's contact list

    the size of the contact phoneNumbers() the API return is always 0.

    Try running the address book example and see how it compares to the behavior of your application.  If it still does not work please provide details on the model and operating system you are testing on.  If it works it'll give you something to compare your implementation of.

  • Contact API - results subscription to drop-down list

    I currently use the code below to get all available phone numbers and e-mail addresses for a contact:

    QVariantList ApplicationUI::getPhoneNumber(int contactId)
    {
        ContactService *contactService = new ContactService();
        Contact contactInfo = contactService->contactDetails(contactId);
        QList numberList = contactInfo.phoneNumbers();
        QVariantList no_s;
        int length = numberList.size();
    
        for (int i = 0; i < length; i++) {
            no_s << numberList.at(i).value();
        }
        return no_s;
    }
    
    QVariantList ApplicationUI::getEmailAddress(int contactId)
    {
        ContactService *contactService = new ContactService();
        Contact contactInfo = contactService->contactDetails(contactId);
        QList emailList = contactInfo.emails();
        QVariantList no_s;
        int length = emailList.size();
    
        for (int i = 0; i < length; i++) {
            no_s << emailList.at(i).value();
        }
        return no_s;
    }
    
    ContactPicker {
                id: contactPicker
                onContactSelected: {
                    contactPhoto.imageSource = _app.getContactPhoto(contactId)
                    if (contactPhoto.imageSource == "") {
                        contactPhoto.imageSource = "asset:///IMG/user_placeholder_blue.png"
                    }
                    firstName.text = _app.getFirstName(contactId)
                    surname.text = _app.getSurname(contactId)
                    phoneNumber.text = _app.getPhoneNumber(contactId).toString()
                    emailAddress.text = _app.getEmailAddress(contactId).toString()
                }
            }
    

    However, this feature is out just now all the available phone numbers and email addresses - for contact - to a text field, but I was wondering if it would be possible to output the list of individual options in a drop-down list instead of just their output in a text field?

    You will need to use ComponentDefinition and dynamically create each Option.

    Here is a code to do this:

    /*
     * Copyright (c) 2011-2014 BlackBerry Limited.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     * http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    import bb.cascades 1.2
    
    Page {
        Container {
            DropDown {
                id: dropDown
            }
            Button {
                onClicked: {
                    // Remove all options from DropDown
                    dropDown.removeAll()
    
                    // Create a VariantList to mimic a list of number returned by your C++ function
                    var listOfPhoneNumber = new Array()
                    for (var i = 0; i < 10; i++) {
                        var randomNumer = Number((Math.random() * 9000) + 1000).toFixed(0)
                        var phoneNumber = "1-555-666-" + randomNumer.toString()
                        listOfPhoneNumber[i] = phoneNumber
                    }
                    console.log("listOfPhoneNumber: " + listOfPhoneNumber)
    
                    // Iterate the list of number and add them to DropDown
                    for (var i = 0; i < listOfPhoneNumber.length; i++) {
                        var newOption = emptyOption.createObject()
                        newOption.text = listOfPhoneNumber[i]
                        dropDown.add(newOption)
                    }
                }
            }
            attachedObjects: [
                ComponentDefinition {
                    id: emptyOption
                    Option {}
                }
            ]
        }
    }
    
  • BlackBerry WebWorks PIM Contact Plugin customization for retriving the list of all the Contacts in the phonebook

    Hi all

    I use the plugin contact Blackberry 10 webwroks sdk 1.0.0.Howvere pim, it gives me almost all pim access contact api.

    However, I would like to add a few additional options of pim api. Exactly, I want to customize seen pim plugin contact. And to expose methods added to the WebWorks project.

    Now, will I have to make the plugin necessary to start contact (by writing native code, and then wrap the same in construction of extension).

    Or is he in any case, I can get the code for the pim.contact plugin that came with blackberry SDK and can make the necessary changes in the native code and buiding new folder so and, following the steps for the construction of the extension.

    Here is the reason why I am demanding to make it personalized:

    I can't find any method that can retrieve list of the basicarry contact a table containing data for all contacts. The only thing I am able to do using the method find explicitly by setting the limit.

    Please suggest something and also correct me if I am wrong somewhere.

    It may be easier to start with your own custom extensions, but if you want to take a look at the SDK WebWorks and included extensions, that would be the best starting point.

    https://github.com/BlackBerry/BB10-WebWorks-framework/tree/master/ext/PIM.contacts

  • Retrieve a display picture on BBM (HOW!) - THIRD ATTEMPT contact list

    This is my third attempt on the fourms but I have no help at all... My main goal is to recover the PICUTURE OF A CONTACT IN BBM CONTACT LIST.

    First of all, I registered with the BBM application.

    Now that I'm logged in, I need to get the Contacts list only for BBM.

    I could not do... I need someones on this sample code.

    In the BBM for the contacts API, it is affected as follows:

    So we suppose to use the ContactService class. To retrieve the list of contacts of bbm but dose not show how the process works. The documentation is very badly written...

    http://developer.BlackBerry.com/Cascades/reference/bb__platform__bbm__contactservice.html

    http://developer.BlackBerry.com/Cascades/reference/bb__platform__bbm__contact.html

    If someone can provide an example application where it get s picture BBM CONTACT COULD BE A GRAND!

    Attachment is a The link below is to an example application that shows how to access the user BBM contact list and display all the information about a contact, including their avatar image.

    In the near future, it is made available with the rest of the examples of Code Cascades.

    bbmcontacts sample

    Let me know if you have any questions about the sample.

  • Create a RELATIONSHIP Contact error

    Create Organization Contact API error: cannot create a new relationship for a period of time that spans the period of time of an existing relationship with the same id of the object, the code of the relationship and the id of the object

    I can't find this error on a forum - or on the internet also.

    Contacts relationship CRM to a party or organization have a date I don't see?

    J

    This error basically means that you create duplicate reports.

    When you create a contact org using the API to create contact, a record is created in HZ_ORG_CONTACTS and at the same time, that a record of the relationship is created in HZ_RELATIONSHIPS. This last painting has a start date and end date. Please check if already a contact relationship already exists between the Group and the HZ_RELATIONSHIPS table object.

    Note that when you create a relationship in HZ_RELATIONSHIPS, it is not necessary that a record is created in HZ_ORG_CONTACTS. This is optional based on a user in function parameter. I'll have to check if on this last point. I remember it was how it worked.

  • Problems when creating extension using pim contact webworks API

    Hello

    I need to create an extension that use webworks APIs to get all contact data as well as launch the contact selector and must obtain the name of the contact, numbers and Base 64 of contact image chain.

    Now, I have a few quesries below:

    1. I tried to reach my api requirement with webworks. For this, I did changes in the config.xml file.



    <>ermissions >
    <>Ermit > access_pimdomain_contactsermit >
    ermissions >

    and able to access the API of pim.contact placed here: C:\Program Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.11\Framework\ext\pim.contacts

    But when I tried to get all contacts by using the getContactAccounts() method, it gives me two accounts simcontacts and LocalContacts and their identity papers are respectively 2 and 19.

    I found that I can get the list of contacts using the example of the contacts. but this is to limit the length to 20.

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/need-help-with-BB10-WebWorks-con...

    2.i have not found any documentaion appropriate for the fields of my contact: name, numbers and Base 64 of contact image chain like the way they gave in the native SDK documentation.

    Please share any code example that is in all fields of contact data of Singla retrieving.

    3. I need to share my contact plugin and need to expose certain methods of my plugin webworks.

    How can I reach it?

    Is it possible to get the code side native for pim.contact plugin, so that I can add methods more in it and can expose these methods more Web app works by making the required in index.js and client.js chnages.

    Help, please.

    I checked and there seems to be a problem with the API that has been fixed for version Gold SDK. Here you can find a similar position:
    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/need-help-with-BB10-WebWorks-con...

    And more information on the real fix here:
    https://github.com/BlackBerry/Cordova-BlackBerry-plugins/pull/80

    It seems that it was default 0, which gave 20 results, as opposed to-1, the expected default value.

    For now, if you simply pass a high value for limit, which should get the contacts (i.e. 1000). I know that's not ideal, but a workaround for now.

    For plugins, the best starting point would be the following.

    WebWorks SDK 1.0:
    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10/template

    WebWorks SDK 2.0:
    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/template

  • API to get the list of contacts, calendar, information from music files?

    Hello

    Is there support for the list of contacts, calendar list information files or music from the platform. In the case where a user synchronizes contacts, calendars, music files using a smartphone BlackBerry bridge, how applications can get access to this information?

    concerning

    Arun

    They have not released these APIs to interact with calendar and contacts features yet. They are still working on this feature for the PlayBook, but I think we would expect that in the next version of the OS.

    I'm not sure of the bridge and the music info, but I'm sure that these APIs are in the same boat as the contacts and calendar.

    Scott

  • Native API for contacts

    Does anyone know where is placed description of API for access to the address book of contacts native?

    you would probably do it with contact service, https://developer.blackberry.com/cascades/reference/bb__pim__contacts__contactservice.html

    as a familiar type of SQL CRUD system, I think it would be quite simple

  • Problem with "correspondence with Contact" using BlackBerryContactList API in v4.2.0 Perle

    Hi all

    1. work on (BB Pearl 8100 Simulator) version is v4.2.02.

    2 opportunity BB JDE v4.2.0

    3A signature permissions

    4. the request is:

    I tested Simulator only.

    Opportunity API - BlackBerryContactList.items (strPhoneNumber)

    I have a phone number with "12345", if I said Dáil with the same number with ' 12, 123, 234, 345 "or anything what a game atleast 2 or 3 digits API above that the contact is exist."» It must match when I dail with number '12345' but why is - that behave like that?

    That's the problem with v4.2.0 or do I have to use different APIs

    Please help me on this.

    Here's something that I just created for you, probably does not compile, but you get the idea.

    Note that you must test this code in 4.6, I think that there is a problem experienced with obtaining the phone number - a funny character is inserted in it. You may find reference to this problem if you search around the forum.  But test your code and see what you see.

    I don't understand what you mean by:

    «Note: for the PIMItem, I can spend either MOBILE/HOME/HOME2/WORK/WORK2 something should be to create dynamically PIMItem.»

    Here is the code, no guarantee, I hope useful.

    Enumeration enumerate = bbContactList.items(number);
    BlackBerryContact matchingContact = null;
    
    //iterate through contacts
    while (enumerate.hasMoreElements() && matchingContact == null) {
    
        // Extract all telephone numbers and check these
        BlackBerryContact bbContact = (BlackBerryContact)enumerate.nextElement();
    
        for ( int atrCount = 0; atrCount < bbContact.countValues(BlackBerryContact.TEL); ++atrCount) {
            String numberToMatch = bbContact.getString(BlackBerryContact.TEL, atrCount);
            if ( numberToMatch != null &&
                 numberToMatch.equals(number) ) {
                matchingContact = bbContact;
            }
        }
    }
    

    Edit:

    Adding a "pause:" after "matchingContact = bbContact;" could save some processing too.

  • Contact update - API

    Hi all

    May I know if the BlackBerry 10 supports the detection of the "LastModifyChange" API for contacts? Is there an API that can stand to listen to the contact patch in the back end even, demand has been swept to close?

    Thanks in advance

    There is no API to access this, its follow-up by the system.
    apps headless comes with 10.2, probably including this requirement (listening in the background).

  • REST API - the field value date Contact exported in digital format.

    Hi people,

    I used below REST API to retrieve the Contacts with the views and custom filter.

    The JSON response, I shot the date value in the number format. As 'C_Lead_Score_Date': '1434456862',


    https://secure.Eloqua.com/API/rest/1.0/data/contact/view/ {identifier} / contacts/filter / {id}


    How can I convert the appropriate number in date value? or y at - it an adjustment to the level of the code to retrieve the value in the correct date format.


    The data type of the field is dates.

    The date is returned to as a Unix timestamp.

    You can use an online converter to convert it to a normal value, for example: online - time conversion Conversion Unix

    1434456862 = Tuesday, June 16, 2015 12:14:22 GMT

  • Add a contact e-mail group via the Rest API

    Hello

    Is it possible to add a contact to a group of e-mail through the Rest API?

    I saw this article here http://topliners.eloqua.com/docs/DOC-3526 which shows that you can get a subscription email group contacts status, however it is not clear how actually to add a contact to a group of e-mail via the API.

    I tried to post data to ' data/contact / {id} / groups/email/subscription "but I get a response of"Method not allowed"API."

    If someone managed to achieve? If so, how?

    See you soon

    Hi David,

    The POST operation is not supported by this endpoint, but you can use PUT a method for updating subscriptions Contact:

    • PUT: / data/contact / {id} / email/group / {groupId} / subscription

    Where the request body contains an object of the subscription. Hope this helps and please let us know if you need more information.

    Thank you

    Fred

  • Most of the Contacts updated with the help of API bulk?

    I'm just curious to know what the maximum number of contacts that someone was able to update using the largest rest api or if there are published limits?  1000 contacts? 10000? 100000? 1000000?

    Thank you

    Russ

    Hello Russell,

    You can find the post below useful

    http://topliners.Eloqua.com/community/code_it/blog/2013/08/12/data-uploadimport-file-size-limits

    Thank you

Maybe you are looking for