Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange
Accepted Solution

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

[ Edited ]

Hi I am working on the PIM contact. I have done the POC. That is working fine but when i am implementing that code in my project I am getting following error

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


It is coming at
findOptions = new blackberry.pim.contacts.ContactFindOptions();

 

I have added permission also

 

<rim:smileytongue:ermissions>

  <rim:smileytongue:ermit>access_pimdomain_contacts</rim:smileytongue:ermit>

</rim:smileytongue:ermissions>

 

Any help

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: 'undefined' is not an object (evaluating 'new blackberry.pim.contacts')

i did mistake. we need to add feature id inside the config file.

 

 <feature id="blackberry.pim.contacts" required="true"/>

 

i had forgot this part.

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.