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
praveenambati
Posts: 2
Registered: ‎07-20-2011
My Device: Bold 9650
My Carrier: VZ

Reading args[] in webworks application

Hi

 

Is there a way to read the params sent while invoking a webworks app from another app?

 

I am invoking TestBB2 application from my TestBB1 application

 

TestBB1

<script type="text/javascript">

var params=new Array();

params[0]="urlkey=google.com";

var args = new blackberry.invoke.JavaArguments("TestBB2",params);

alert("Launching .. TestBB2")

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

</script>

 

So in TestBB2 application can I read the param urlkey?

 

Thx

Praveen

Please use plain text.
New Contributor
praveenambati
Posts: 2
Registered: ‎07-20-2011
My Device: Bold 9650
My Carrier: VZ

Passing query string while invoking webworks application

Unable to invoke another webworks app using appName?queryStringKey=value

Is this not valid?

How to invoke using 'appName.entryPoint' or 'appName[.entryPoint]?arg1=val&arg2=val'. in webworks app?

 

Can someone give a sample code?

 

Thx

Praveen

Please use plain text.
BlackBerry Development Advisor (Retired)
jeffheifetz
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: Passing query string while invoking webworks application

Hi praveenambati,

 

In theory invoking using the invoke API as you described should work by passing in the arguments as a query string. What exactly isn't working for you?



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)
Please use plain text.