'undefined' is not an object ("new blackberry.pim.contacts" evaluation)

Hi, I'm working on the PIM contact. I did the CPO. That works well, but when I put implement this code in my project, I am getting following error

TypeError: 'undefined' is not an object ("new blackberry.pim.contacts" evaluation)

He comes to
findOptions = new blackberry.pim.contacts.ContactFindOptions ();

I added also permission

<>ermissions >

<>Ermit > access_pimdomain_contactsermit >

ermissions >

Any help

I have error. To add the function id in the config file.

I forgot that part.

Tags: BlackBerry Developers

Similar Questions

  • Error in management: TypeError: result of expression 'blackberry.media' [undefined] is not an object

    I'm taking pictures in my widget, but when I make the call

    blackberry.media.camera.takePicture (successCB, closedCB, errorCB);

    I got this error in the Simulator as well as in a real device: "error in management: TypeError: result of expression 'blackberry.media' [undefined] is not an object.

    Also, I included the function in the config.xml file:

    I don't know what else could be.

    Hello

    I have not a 9360 around me at the moment, but I just tried it on a 9900 7.0 running and the above code ran very well.

    On your device, could you please navigate:

    Options > device > application > search and highlight her is > press the menu key, then select change permissions > set all allow (or as high as possible) > save options and re-run your application under test.

    It is more of a longshot, but get a little creative.

    Also, you use the latest version of the SDK software (2.3.1) smartphone while packing?

    https://bdsc.webapps.BlackBerry.com/HTML5/download/SDK

    I'll try and think a little more ideas, but the above code should work on a device of 7.0. Maybe someone from the community can check on them?

    Erik Oros

    BlackBerry Development Advisor

  • TypeError: Result of expression 'item' [undefined] is not an object.

    Hello

    I can userstand the good way to spend the ListItemData given to a page entry. In the example ListView generated here is what is generated.

    import bb.cascades 1.2
    NavigationPane {
        id: nav
        Page {
            Container {
                ListView {
                    dataModel: XmlDataModel {
                        source: "data.xml"
                    }
                    onTriggered: {
                        if (indexPath.length > 1) {
                            var chosenItem = dataModel.data(indexPath);
                            var contentpage = itemPageDefinition.createObject();
                            contentpage.itemPageTitle = chosenItem.name
                            nav.push(contentpage);
                        }
                    }
                    accessibility.name: "Listing"
                }
            }
        }
        attachedObjects: [
            ComponentDefinition {
                id: itemPageDefinition
                source: "ItemPage.qml"
            }
        ]
        onPopTransitionEnded: {
            page.destroy();
        }
    }
    
    import bb.cascades 1.2
    Page {
        property alias itemPageTitle: titlebar.title
        titleBar: TitleBar {
            id: titlebar
        }
        Container {
        }
    }
    

    If I wanted to copy the input data to the push page, then I can do that.

    import bb.cascades 1.2
    NavigationPane {
        id: nav
        Page {
            Container {
                ListView {
                    dataModel: XmlDataModel {
                        source: "data.xml"
                    }
                    onTriggered: {
                        if (indexPath.length > 1) {
                            var chosenItem = dataModel.data(indexPath);
                            var contentpage = itemPageDefinition.createObject();
                            contentpage.item = chosenItem
                            nav.push(contentpage);
                        }
                    }
                    accessibility.name: "Listing"
                }
            }
        }
        attachedObjects: [
            ComponentDefinition {
                id: itemPageDefinition
                source: "ItemPage.qml"
            }
        ]
        onPopTransitionEnded: {
            page.destroy();
        }
    }
    
    import bb.cascades 1.2
    Page {
        property variant item
        titleBar: TitleBar {
            id: titlebar
            title: item.name
        }
        Container {
        }
    }
    

    And this also works except that it generates a

    TypeError: Result of expression 'item' [undefined] is not an object.

    error. Thus, it is written in the ebook learn Blackberry App Development 10. Anyone know how to get this to work without him spit the error type?

    Thank you

    the problem is that the point is not defined when the page is created.
    a solution would be to use onItemChanged to set the title.
    or use something like element? Item.Name;
    There are many other possible solutions, but these two come to mind that the easier.

  • BBUI.js action bar problem press button menu contextual assessment "undefined is not an object.

    I was updating my file bbui.js to the latest version and my screen splash action bar buttons are now broken when I deploy my Dev Alpha b with the updated OS 10.2. However, when I imitate the ripple app, there is no error message and everything works.

    When I open web-insector to see what the console bed after I pressed a button:

    "TypeError: 'undefined' is not an object (evaluation of"blackberry.ui.contextmenu.CONTEXT_ALL").

    I have a button in the context menu which worked very well forward on each of the pages.

    All my code is available for viewing at https://github.com/InnovateorDieOnline/BOTE

    Thank you in advance.

    Hi there, don't you update extension WebWorks (described in the components section required here.)
    https://github.com/BlackBerry/bbUI.js/wiki/context-menus

    The latest version of bbUI.js handles the Menu differently and you will need to make some changes, in addition to updating the script files.

  • How to deal with the "undefined is not an object"?

    I'm easy to a solution, but stepped on a thumbtack:

    The following code snippet creates an error in the GetTplParams function

    var template = "DDD-BibFM-tpl.fm";  // located in script-dir var outFile  = "DDD-BibFM.fm";      // located in the source dir   oDoc = OpenTemplate (); alert ("Is template open now?"); function OpenTemplate () {   var tplDir, tplFile, openParams, openReturnParams, oFile;   tplFile = "E:\\_DDDprojects\\FM+EN-escript\\escript\\DDD-BibFM-tpl.fm" // SimpleOpen does not take the tplFile, but opens the dir of the active document //  oFile = SimpleOpen (tplFile, true);   openParams = GetTplParams ();    openReturnParams =  new PropVals();    oFile = Open (tplFile, openParams, openReturnParams);    return oFile; }   function GetTplParams() {  // =>>> "undefined is not an object" on line 22 var params, i;  // Change the params   i = GetPropIndex(params, Constants.FS_RefFileNotFound);    params[i].propVal.ival = Constants.FV_AllowAllRefFilesUnFindable;    i = GetPropIndex(params, Constants.FS_FileIsOldVersion);    params[i].propVal.ival = Constants.FV_DoOK;    i = GetPropIndex(params, Constants.FS_FontNotFoundInDoc);    params[i].propVal.ival = Constants.FV_DoOK;    i = GetPropIndex(params, Constants.FS_LockCantBeReset);    params[i].propVal.ival = Constants.FV_DoOK;    i = GetPropIndex(params, Constants.FS_FileIsInUse);    params[i].propVal.ival = Constants.FV_OpenViewOnly;    i = GetPropIndex(params,Constants.FS_AlertUserAboutFailure);    params[i].propVal.ival=Constants.FV_DoCancel;  /*   i = GetPropIndex(params,Constants.FS_MakeVisible );    params[i].propVal.ival=false;  */   return (params);  }
    

    (insertion of JS code really has its quirks in this editor).

    Hi Klaus,

    Something like this in the GetTplParams() service you:

    params = GetOpenDefaultParams();

  • "TypeError: undefined is not an object ' after the 2014.1.1

    I see the error: "TypeError: undefined is not an object (evaluation of"cpoint.getSymbolElement") in a composition of _upgraded that arouses points and tooltips to not appear in the charged composition.»

    Animate edge version 2014.1.1

    Mac OS 10.10.1

    Safari 8.0.2, 40.0.2214.94of Chrome, Firefox 35.0.1

    This question has started to happen after 2014.1.1 updated

    No changes have been made to my computer and I tested it on other computers with the same result

    Here is the improved composition that does not work: http://inlightmedia.com/edge-interactive-svg-maps_upgraded/

    Older composition which displays correctly the pins and ToolTips: http://inlightmedia.com/edge-interactive-svg-maps/

    Two compositions zip files: Zip file

    I strongly am a rookie Edge and JavaScript and have been amend this (which was created by someone else is no longer supports) according to my needs. Any help is at work in the new version of edge would be greatly appreciated.

    Thank you
    Jansen

    Hello

    It's compositionReady, the #34 line:

    You've written: var = cpoint sym.createChildSymbol ("point", "stage");

    and it was: var sym.createChildSymbol = cpoint ("point","STagus");

    step must be capitalized: stage.

  • Undefined is not an object

    Hello

    I'm having a problem with a panel of HTML5 for Premiere Pro.  I have the Panel installed on 15 computers and it works fine on 10 of them.

    On the other 5, launches the Panel, but when you press a button/script an alert box stands up and says "Undefined is not an object.

    Any ideas?

    Thank you

    Kelly

    In additional tests and subsequent updates of creative cloud, I could not the failure of the installation of your .zxp. Please send again if the problem reappears.

  • MuseJSAssert: Error calling the function switch: TypeError: undefined is not an object (evaluation of "a.rules")

    I have this error on my Web site every time that I go. It disappears when I refresh three times.

    "MuseJSAssert: error calling the function switch: TypeError: undefined is not an object (evaluation of"a.rules").

    I downloaded the site with Filezila.

    Please help, what's wrong here?

    Thank you

    Hi Barbara,

    The question began to happen after you downloaded using the latest version of Muse?

    If so, can you try to remove the old files of the web server and re-upload using Muse?

    Kind regards

    Akshay

  • Error 21. Undefined, is not an object. Can't get management to work

    When I try to use picture frames, I get this message... Error 21. Undefined is not an object

    Harold, it seems that the bug has not been fixed, but I worked on a temporary fix for this issue. See my comment to you in the other post about it:

    error message 21 under filter/rendering/image

  • Shape layers: Undefined is not an object

    I used rd_GimmePropPath to get the names of Match for the properties of the form, but I get an error "undefined is not an object ' by using the following:

    App.Project.Item (1). Layer ("Shape"). ("ADBE vectors root group") ("ADBE Vector - Ellipse shape") ("" ADBE Ellipse Position Vector "') .setValue (-535,-311);

    No indication to access the properties of shape layer via script would be appreciated.

    You still get the error "undefined is not an object"?

    I might break into pieces and see where you get the error:

    myLayer = app.project.item var (1) .layer ("Pinky");

    var temp1 = myLayer.property ("ADBE vectors root Group");

    Temp2 var = temp1.property ("ADBE Vector Group");

    temp3 var = temp2.property ("ADBE vector Group");

    TMP4 var = temp3.property ("ADBE vector shape - Ellipse");

    temp5 var = temp4.property ("ADBE vector Position Ellipse");

    temp5. SetValue ([-535,-311]);

    Dan

  • error in Java script "undefined is not an object.

    Dear all,

    IM using InDesign CS4. Im trying to remove managers of anchor text. but I got the error msg "undefined is not an object. Here's my code for the part.

    app.findGrepPreferences.findWhat = "AQ\\d +";

    myFoundItems = app.findGrep ();

    var myLen = myFoundItems.length;

    for (var i = myLen-1; i > = 0; i--) {}

    Alert (myFoundItems [i]. (Happy);

    var a = app.select (myFoundItems [i] .parentTextFrames);

    a.Remove ();

    }

    Please help someone.

    Thank you

    Selva

    Hi Marijan

    Unfortunately, this is not correct, because "parentTextFrames" is an array of blocks of text, so this will fail. Maybe something like this:

    myFoundsItems[i].parentTextFrames[0].remove();
    

    It works!

    Thank you very much. I also thank Ariel for his work.

    That kind of you.

    Wow.

    Selva

  • blackberry.pim.contacts.Contact.save () does not work in the perimeter of the company

    I created a contact. Then, I saved the contact. Everything works fine in the personal area.

    var createdContact = blackberry.pim.contacts.create();
    // Adding properties here
    createdContact.save(onSaveContactSuccess, onSaveContactError);
    

    But in the perimeter of the company, I get:

    blackberry.pim.contacts.ContactError.INVALID_ARGUMENT_ERROR

    When save() is called.

    Can someone confirm this behavior?

    Well, it works today. Perhaps, allowed the restart of the unit. I will study it further.

  • different types of property blackberry.pim.Contact

    The WebWorks documentation documents the categories property of an blackberry.pim.Contact to a string object:

    http://www.BlackBerry.com/developers/docs/WebWorks/API/BlackBerry.PIM.contact.html

    I actually see it as an array of strings in my tests with SDK 2.1.  The intention that it should really be a string or an array?

    Catch deedubbu,

    This is an error in the docs and must be an array of strings. Why don't you help to repair by logging into an issue on github here

  • error BlackBerry.PIM.contacts.Find

    Hello

    in my application, I <> ermit > access_pimdomain_contactsermit >, that I would like to contact.

    BlackBerry.PIM.contacts.Find (contactFields, findOptions, onFindSuccess, onFindError); always makes me success call back even if I turn off my permissions of applications safety contacts and privacy-> application permissions-> my request.

    Ideally, it should go to onFindError and throwing an error: 20, permission denied.

    How to fix this, please help

    Recorded a problem in the Git hub:
    https://github.com/BlackBerry/BB10-WebWorks-framework/issues/652

  • TypeError: Result of expression 'new blackberry.invoke' [undefined] is not an object. Application of bbUI

    I am facing an error during the use of the blackberry and the blackberry.invoke feature, invoke. BrowserArguments

    I have a group of items in an imageList, an element is defined as this line

    Minutes from anywhere

    function openUptownCairoLink() {}

    try {}

    var args = new blackberry.invoke.BrowserArguments ('http://blackberry.com');

    BlackBerry.Invoke.Invoke (blackberry.invoke.APP_BROWSER, args);

    } catch (e) {alert (e)}

    }

    and when I click on the element, it warns the error as in the subject of this topic.

    I'm using BB Bold 9900 with OS 7

    You will need to do the following:

    http://192.168.0.140:8888" subdomains="true">
      
      
      
      
      
      
      
      
      
      
    
    

Maybe you are looking for

  • Portege M200: Start-up of the SD in HDD external

    "M200 Recovery using the floppy disk or SD cardPosted the: August 15, 2005 10:36I am posting this in the hope that it will help other people seeking to use the CD/DVD recovery, but without a bootable CD. I want to thank the Toshiba of TabletPCBuzz.co

  • AppleTV with Yamaha Receiver: no Airplay video

    I have the Yamaha TSR-7790 (identical to the RX-V779). This receiver supports natively (audio) Airplay, and which works very well: it appears in iTunes and automatically to the broadcast mode when I have audio stream. So far so good. But I'm not inte

  • Satellite A300 - restarts when I plug it into a power outlet

    Hi guys this seems to be the place to ask this question,My laptop is Satellite A300 When I connect the adapter it restarts all of a sudden, if I stay on the battery, it is fine if I am running Windows and plug power will be locked up and restart. It

  • I installed a sniper art called game of victory, but it has now stopped working he won't play no more

    I had a game on my laptop called sniper art of victory but it has now stopped working and I can't get it working again. the loading of the game at the level that I saved my game to but then when I go to start the game where I recorded home everything

  • The router just for me

    I had a problem choose a router that will work for me. I have a few computers (with Mac in there), a Bravia TV and a PS3. I'm looking for a (cat 5) wired and wireless router that has QoS so that I can make sure my packages of games to get there first