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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 28
Registered: ‎01-31-2012
My Device: 8520
My Carrier: Telkomsel

Some one can help me?

Dear All

 

if (!is_null($rpmrbt->download))
		    	{
echo "<li><a href='sms:$rpmrbt->number?body=message'><h3>SMS</h3><p>$rpmrbt->download</p></a></li>";
				}

 I need to send sms get from database, i had a finished to used a number from a database mysql, some one can help me for a body text get from database too??

im try

<a href='sms:$rpmrbt->number?body=$rpmrbt->message'>

it's doesn't work..

 

Need help Pliss...

 

Thanks

Highlighted
Developer
Posts: 614
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

Re: Some one can help me?

Can you please expand on your code? I am not familiar with the $rpmrbt->download(etc) object methods you are using. Are these javascript?

I suspect you may be using PHP inside the app, and therefore your code does not work. PHP is a server technology.


The way I would get the data would be to:

  1. Write an AJAX call to my mysql database (which is on the server)
  2. The call returns data
  3. I loop through the results
  4. Assign each value to a variable. i.e. var smsnumber = data.number[i];
  5. Dynamically generate page that's populated as a screen in your app
  6. Based on user input or page logic, send sms

If you are still having trouble implementing, I have some sample code for you. Just DM me. 

If this helped, mark my answer as "Solution" or "Like".

 

Contributor
Posts: 28
Registered: ‎01-31-2012
My Device: 8520
My Carrier: Telkomsel

Re: Some one can help me?

yah...
im using PHP at my program to connect with my server user PDO_mysql.
for $rpmrbt->download ( nothing, just a link for download some file save from server and database )

im just confused in here :
<a href='sms:$rpmrbt->number?body=$rpmrbt->message'>
for get body message from database too, same with a number.

are u have some sample code with use ajax for connect to server??

Ty for helping