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

Tags: BlackBerry Developers

Similar Questions

  • LISTENER ERR when create database using DBCA

    Please advice, I have RAC 11 g R2 installed in Enterprise Linux 5.4 environment so I face-down problem when creating new database using DBCA

    "Scan earphone is not configured in the grid infrastructure Oracle home. To create a database, analysis auditor is required to be configured ".»

    Although when I run crsctl res stat - you I see the earpiece is in place


    ORA. LISTENER.lsnr
    Rac1 online online
    Rac2 ONLINE

    The resource that you see is for a listener and not a listener to scan. Two different things.

    Check if a listener to scan is configured? The sounds of it you have not configured so that you will need to add a listener to scan. The SCAN IP should be configured in the DNS system first.

    srvctl add scan
    srvctl add scan_listener
    
    srvctl config scan
    srvctl config scan_listener
    srvctl status scan_listener
    

    Check out these links for more information on SCANNING configuration.

    http://docs.Oracle.com/CD/E11882_01/install.112/e25666/undrstnd.htm#BEIFFBBI
    http://docs.Oracle.com/CD/E11882_01/RAC.112/e16795/srvctladmin.htm#autoId0

  • I can't register names and create playlist appear windows media player acountered a problem when creating or saving the playlist

    appear windows media player acountered a problem when creating or saving the playlist

    To the WMP library, please click on organize and select manage libraries - music . What places are? If there is no available location, remove them and also make sure that a default save location is set. Do the same for the other libraries (videos, pictures, and Recorded TV).

    If this does not help, close WMP, open Windows Explorer, right-click the music library, select Properties and click on restore by default . After that, make sure that a backup location is defined (as indicated by a check mark).

    Tim Baets
    http://www.BM-productions.TK

  • Problem when creating objects to the point user clicks on the screen

    I'll sometimes have a problem when clicking on the screen and have an object at this time created. 95% of the time it works properly, but sometimes, the object is created in a different area of the screen.

    Everyone comes across something similar? Or is it likely to be just a problem with the Simulator?

    Thank you very much for any help offered.

    If you want a "newLabel" to appear in the contact details of your mouseEvent, but only if details of mouseEvent are lower on the screen (having a higher value) at the height of your textButton.

    If your TextButton object does not touch the top of the stage (y = 0), you'll want to write this instead:

    if (event.localY > textButton.y + textButton.height)
    

    It may be a good idea to write it anyway, just in case you want to change the position of the TextButton.

    In addition, localX and localY properties of your mouseEvent are compared to the event containing sprite.  for example, if you have a canvas Sprite that is a parent of your textButton and is tuned for the mouseEvent.  otherwise, if there is no sprite contains (second phase) for your event, you'll want to use stageX and stageY instead.

    I guess since I can't be sure of your intentions here, but try this instead:

    private function createItem(event:MouseEvent):void
         {
         if (event.stageY > textButton.y + textButton.height)
            {
            var newLabel:TextField = new TextField();
            newLabel.x = event.stageX;
            newLabel.y = event.stageY;
            newLabel.text = "test";
            newLabel.setTextFormat(userTextFormat);
    
            addChild(newLabel);
            }
         }
    
  • problem when creating a trigger: SQL statement ignored

    Hello people,

    I am trying to create a trigger, but it is not created. Instead, I get the error message that a SQL statement at line 22 was ignored. It's the line indicating IF num2 = 1 THEN. I'd be happy if someone could point me in the right direction or solve my problem.

    CREATE OR REPLACE TRIGGER TriggerLogement BEFORE INSERT OR update ON tenants
    FOR EACH LINE
    DECLARE
    NUM INTEGER;
    num2 INTEGER;
    NUM3 INTEGER;
    paysLocataire VARCHAR2 (255);
    categorieLocataire VARCHAR2 (1);
    BEGIN
    SELECT COUNT (ns) IN the number OF tenants WHERE nomBat =: new.nomBat;

    IF num > 0 THEN
    SELECT paid IN the country OF sports WHERE ns =: new.ns;
    SELECT COUNT (country) IN number OF athletes sp, tenants lo WHERE sp.ns = lo.ns AND paysLocataire AND lo.nomBat = pays =: new.nomBat;
    IF num = 0 THEN
    raise_application_error (-20000, "building already in use for another nationality");
    ON THE OTHER
    SELECT COUNT (ns) IN num2 OF tenants WHERE nLogement =: new. NLogement AND nomBat =: new.nomBat;
    IF num2 = 2 THEN
    raise_application_error (-20000, 'full accommodation');
    ON THE OTHER
    IF num2 = 1 THEN
    CateogrieLocataire INTO SELECT category OF athletes WHERE ns = new.ns;
    SELECT COUNT (ns) IN num3 FROM tenant lo, sportsmen sp WHERE lo.ns = sp.ns
    AND lo.nLogement =: new. NLogement AND lo.nomBat =: new.nomBat AND sp.categorie = categorieLocataire;
    IF num3 = 0 THEN
    raise_application_error ("-20000, ' already in use for the other sex");
    END IF;
    END IF;
    END IF;
    END IF;
    END IF;
    END;

    If you need more information or if you have any questions about my posts please leave your questions or comments. I hope this isn't how completely wrong to enforce some constraints that I can't do with CONSTRAINT and CHECK in the schema definition.

    Thanks for your help and your attention.

    Sebastian

    Hello

    Whenever you have a problem that raises an error, display the full error message; do not paraphrase just part of it.

    In the triggers line numbers from the first statement DECLARE or BEGIN, so line 22 of your trigger is:

    SELECT categorie INTO cateogrieLocataire FROM Sportifs WHERE ns = new.ns;
    

    You are missing a colon before 'new': it should be:

    SELECT categorie INTO cateogrieLocataire FROM Sportifs WHERE ns = :new.ns;
    

    A FOR EACH ROW trigger on tenants cannot ask tenants. It's a shame: there are many useful things, you could do if that were allowed, but it's not.
    I'm not sure of what all queries. At least one of them:

    SELECT  COUNT (ns)
    INTO    num2
    FROM    Locataires
    WHERE   nLogement = :new.NLogement
    AND     nomBat    = :new.nomBat;
    
    IF num2 = 2 THEN
        raise_application_error(-20000,'accomodation full');
    

    can be replaced by a UNIQUE constraint. (Constraints are better than triggers, in any case.)

    If you can't do what you want with constraints, you can leave anyone directly INSERT or update the table: force them to use a procedure stored instead. You can have an INSTEAD OF trigger on a view, which is essentially the same, but allows you to use DML commands.

    If you need help, post some sample data and some examples of DML operations that must be allowed, given the data and some examples of DML operations that should not be allowed.

  • problem when creating a plugin for ps using Qt on Mac

    Hello friends,

    I am writing a plugin of photoshop on Mac and to create the UI with Qt. But when I show just a simple dialog, photoshop menu was gone and that he was not responsible even after closing the dialog box.

    = CODES OF =.

    voidPhotoshopPlugin::ShowDialog( )
    {
          intargc = 0;
          QApplicationa(argc, 0);
           HelloDialog w(NULL, 0);
           w.show();
           a.exec();
    }

    I know that the QmfcApp for windows, which will be responsible for the migration of Qt & MFC , and it works for me. But I can't find a Mac version of the qmfcApp.

    Any suggestions will be greatly appreciated.

    Thank you
    Daniel

    http://doc.Qt.Nokia.com/latest/ExportedFunctions.html#void-Qt-Mac-set-dock-menu-qmenu-menu

    Sub qt_mac_set_native_menubar (bool enable)

    Indicates whether the application should use the bar menus native on Mac OS X or be part of the main window. This feature is enabled by default.

    In Qt 4.6, this amounts to QApplication setAttribute (Qt::AA_DontUseNativeMenuBar)::instance()->;.

  • Problem when creating a report with a date of schduled

    When I tried to create a report with a schedule (any option except now) I get the error 'Date of the first report occur must be after or equal to the current date", unless I have use a date of 01-10-2012 or later in the first report occurs on the field.  Current date is 2012-08-23.

    Let me know if you can recreate it and if or when there is a fix.

    Hi Tim,.

    We have fixed the problem now. Could you please check that you are able to schedule a report now with start date of today?

    Thank you

    The OnPlus team

  • problem when navigate page using the link

    Hello

    I created a jsf page where I create a form using the viewObject. which is opened in mode createInsert (using workflow and drag drop operation for page CreateInsert)

    It is very good.

    but when I want to navigate from this page by using the Home link to home.jsf page without details of Web form filling does not happen.


    What is the problem? is it right to do this?

    Manish

    Are there error messages corresponding to one of the form fields appear? If yes try allowing immediate = true for the link that will jump the validations and go to the home page.

    Thank you
    TK

  • overset text when creating background using the rectangle tool

    I met a strange problem that I can't solve alone, and I can't describe it well enough for a search engine to see if anyone else has experienced. I have a document with text and graphics on the page. I've created a header in the master document, but as soon as I tried to create a background color by dragging a rectangle on any page, it says that my header text is overset. I tried to send the bottom at the back of the document in the rearrange menu, always in excess. Tried to create the background on another layer below the text of the header... always in excess. Curiously however, when I clicked on the Red '+' symbol in the text box and click outside of it (as if I had to create a new text box to continue the overset text) will be the text magically adjusted comfortably inside its original text box (and no new text box is created). So I thought that solved the problem, but all the lines of text in the body of the document are always in excess. I have the piece longer than 100 boxes so I don't want to do it manually... and even when I try to adjust the text box to solve the problem "in excess", I have to drag the right text box at the edge of the page so that it is some text can reside outside the area covered by the master page background.

    It is clear that indesign is to see the bottom not as background at all and instead a foreground that covers the text, but what is weird is that this isn't matter if I send it to the back, and it affects all the graphic elements, text. Is it a kind of void master page that I'm missing/don't understand? Thanks for the help!

    It can be a text wrapping, try to select text block, then go to the object menu > text block Options > General > ignore the dressing.

  • Problem when try to use the connection to the server with Viewplanner view

    Hello

    When I try to use a profile of the workload with the view connection server, I have the following on the viewplanner device error message.

    Exception in thread thread 2:

    Traceback (most recent call modified)

    File 'usr/lib/phyton2.6/threading.py' line 532, in __bootstrap_innerself.run)

    File "/ tmp/ViewPlanner/web_interface.py", line166, run

    File "/ tmp/ViewPlanner/view_interface.py", line 308, addGroupEntitlement

    AttributeError: 'NoneType' object has no attribute 'callRemote '.

    On the view connection server, I see the following error message repeated every minute

    Starting the Agent of ViewPlanner service DEBUGGING

    INFORMATION of starting the server twisted on the machine to harness send commands...

    Any ideas?

    Kind regards

    Christian

    Have you applied the patch? You may have replaced the __init__.py file in the directory c:\view-python-apis\mfw instead of c:\view-python-apis\mfw\channel directory? You can take the original packaging of the instillation file and replace that?

  • Please, I was faced with problems when creating a new book in Indesign CS6!

    Hello! I'm going to talk to you about my problem: I work for a COMPUTER company in the Brazil and we have developed a five - hundred page manual in Indesign CS6 software.

    Then, we decided that each chapter would be an .indd (document Indesign CS6) and that these 27 chapters would be part of a book (.) INDB).

    Finally, we got our book in the first revision (.) (PDF). In June, we copied our first revision in order to create a second.

    We recorded the second revision of the book (.) INDB) in June 2013. Now, in September, we tried to open this book, once again, to no avail...

    The second revision opens the first review! It's as if we have not saved our second revision, but I'm sure that we did.

    So, please I would like to know:

    (1) what we were wrong in this whole process of creation of new books;

    (2) if it is possible to import a PDF in Indesign CS6, because our PDF is right, but we have our unchangeable.

    I'll be grateful for any help!

    Thanks in advance!

    Making copies does not work the way you think that with books.

    A file .indb is naoual a collection of pointers to the individual files and make a copy, even if you copy individual files, not is not updated where the .indb showed up.

    There are two options here. PACKAGE the book and again work package, or make a new .indb file and add your copied .indd files.

  • Problem when creating new connection of database with SQL Developer

    Hi all

    I am a beginner and I want to learn Oracle add up to my learning
    I installed SQL Developer on Linux Mint 12 (lisa).
    The installation went well, but when I try to create a new database connection in SQL developer, I get the following error:

    * Status: Failed - Test has failed: IO error. The network adapter could not establish the connection.* *.

    Could someone please suggest where exactly, I'm missing?

    Greetings - Vishal

    Have you installed the oracle database software locally? Have you created a database called "oracle?

    Developer SQL does not include a data base. For learning purposes, I recommend that you download Oracle Express Edition.

  • Problem when create or open an image file

    Hi! You can watch this video first of all on the problem: http://youtu.be/OR3uSqRIEZs

    How should I solve this? Everything I create a new document, open a PSD or another file, Photoshop still got black.

    I installed the latest update and even to reinstall Photoshop.

    PS: I had this problem after installing a new RAM, she was wearing?

    Thank you very much for your help!

    Some information:

    Windows 7 ultimate 64-bit

    Photoshop CS6 64bits

    , You update the driver from the Intel Web site, or elsewhere?

    And have you tried to disable the GPU in Photoshop preferences?

  • Stop automatic email links when creating @ is used

    Hi all -

    I need to use the symbol in a number of places in my PDF files - @ unfortunately, conversion to PDF process always called words with symbols in front of them @ email links.

    Around her, I got bracketing the symbol, but the use of the symbol refers to a SQL Server parameter or variable, with @sName being correct and [@] sName incorrect.

    Help!

    Karen

    In the preferences to disable the entry "create links from URLS".

  • How to solve the problem to create and use custom domain?

    Hello

    In the model layer, I have created a new domain and I executed the business logic validation method "validate". Now, I create an entity using the Type of Custom field data object (CalwinNoDomain). I launched the project of layer model, it works very well. After I create a draft opinion, then I create Test.jspx and object drag-n-drop domain. Now I run the Test.jspx, I got the below error.

    Error: Cannot convert type class java.lang.String 9080 to the org.calwin.model.dataType.common.CalwinNoDomain class
    9080 - is the entered text input value.

    I used JDeveloper 11.1.1.3.0

    Can anyone help me regarding this?

    Thanks and greetings
    Perumal S

    http://radio-weblogs.com/0118231/2009/07/27.html#A954 is what you need to do

    John

    Edit: [url http://www.oracle.com/technology/products/jdev/htdocs/11/knownissues.html#faces5] here is a note of both old - you don't need to go through all the steps here (unless you are using the old version of JDev): just, it is included for completeness

Maybe you are looking for