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
New Contributor
Posts: 3
Registered: ‎12-22-2011
My Device: 9900
My Carrier: black

I have my qusetion about call function the blackberry

[ Edited ]

Hi anyone

 

I runing this code but i have problem when it run this line "blackberry.invoke.invoke(blackberry.invoke.APP_PHONE, args);"

the system throw error message is  "undefine"

Please can you help me

 

initiatePhoneCall:function(contactNumber) {

 

try{ 

   var args = new blackberry.invoke.PhoneArguments(contactNumber, false);

 

   args.view = blackberry.invoke.PhoneArguments.VIEW_CALL;

   blackberry.invoke.invoke(blackberry.invoke.APP_PHONE, args);

}

catch(err) {

 

alert("Error 11-21: " + err.message);

 

}

},

Developer
Posts: 68
Registered: ‎03-01-2011
My Device: Not Specified

Re: I have my qusetion about call function the blackberry

Hello c2speed,

 

Have you added the <feature id="blackberry.invoke.PhoneArguments" /> and <feature id="blackberry.invoke" /> on your config.xml file's feature list?

New Contributor
Posts: 3
Registered: ‎12-22-2011
My Device: 9900
My Carrier: black

Re: I have my qusetion about call function the blackberry

[ Edited ]

Hello jdnoprada

 

This is my some code in webconfig. Thank for anwser

 

<featureid="blackberry.app"/>

<featureid="blackberry.app.event"/>

<featureid="blackberry.audio"/>

<featureid="blackberry.audio.Player"/>

<featureid="blackberry.bbm.platform"/>

<featureid="blackberry.find"/>

<featureid="blackberry.identity"/>

<featureid="blackberry.invoke"/>

<featureid="blackberry.invoke.BrowserArguments"/>

<featureid="blackberry.invoke.MapsArguments"/>

<featureid="blackberry.invoke.PhoneArguments"/>

<featureid="blackberry.io.dir"/>

<featureid="blackberry.io.file"/>

<featureid="blackberry.pim.Contact"/>

<featureid="blackberry.pim.Address"/>

<featureid="blackberry.system.event"/>

<featureid="blackberry.ui.Spinner"/>

<featureid="blackberry.utils"/>

<featureid="blackberry.ui.dialog"/>

<featureid="ywca.locale"/>

<featureid="ywca.location"/>

<featureid="ywca.contact"/>

<featureid="ywca.flurry"/>

Developer
Posts: 68
Registered: ‎03-01-2011
My Device: Not Specified

Re: I have my qusetion about call function the blackberry

Sorry, i don't know if it's just an auto-correct error or something but did you really mean to have a featureid instead of "feature<space>id"?
New Contributor
Posts: 3
Registered: ‎12-22-2011
My Device: 9900
My Carrier: black

Re: I have my qusetion about call function the blackberry

Sorry I knocked on the wrong space

 

<featureid="blackberry.app"/>

<featureid="blackberry.app.event"/>

<featureid="blackberry.audio"/>

<featureid="blackberry.audio.Player"/>

<featureid="blackberry.bbm.platform"/>

<featureid="blackberry.find"/>

<featureid="blackberry.identity"/>

<featureid="blackberry.invoke"/>

<featureid="blackberry.invoke.BrowserArguments"/>

<featureid="blackberry.invoke.MapsArguments"/>

<featureid="blackberry.invoke.PhoneArguments"/>

<featureid="blackberry.io.dir"/>

<featureid="blackberry.io.file"/>

<featureid="blackberry.pim.Contact"/>

<featureid="blackberry.pim.Address"/>

<featureid="blackberry.system.event"/>

<featureid="blackberry.ui.Spinner"/>

<featureid="blackberry.utils"/>

<featureid="blackberry.ui.dialog"/>

<featureid="ywca.locale"/>

<featureid="ywca.location"/>

<featureid="ywca.contact"/>

<featureid="ywca.flurry"/>

Highlighted
Retired
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: I have my qusetion about call function the blackberry

The problem appears to be with the invoke namespace. Can you build with the "-s" command and make sure the invoke extension has been included?

 

I was able to get the code you provided working without any problems, so there must be something specific to your implementation.



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)