Need help on my sms app

and all this too:



Im trying to create sms sending but when i stack to click the send button, i got this error. im quite confused on how to fix this part

Trace back from here:

im sorry, but since im still quite a beginner on this, im not sure how to fix it

From what you show, it seems that the variable globalPhoneNumber has a phone number in it, not a list.

Also, I can't see where you connect your selected row data in the Tableviewer with what you are doing?

Well, yes. Thats what im trying to use. I want to send a message to all the numbers listed from the phonenumber list and as you can see in the 2nd image, theres an error. it says bad arguement

If you are hoping to send multiple SMS in one go, you must ensure the first has completed before trying to send the second, and so on, otherwise the sending process will fall over...

Detail your workflow, in words...

Im currently stuck when I fire the send message button. I'm not quite sure if the format or block used in getting the phoneNumbers are correct. Can I get a clearer guide on this part only?

So what are the relevant blocks of that button click event? I can't find them in your screenshot...

Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

under the spinner selection which is filteredList, then after filtering, i want to get all the mobile numbers and add to phonenumber list

The first thing you should do is to follow some naming conventions...
If a variable is a list, then name it like that, i.e.listPhoneNumbers and if it is a phone number then name it phoneNumber

Then use Do it to debug your blocks
If you still have problems to find your error, then post another screenshot of your relevant blocks only

Taifun


Heres my block arrangement for getting the phonenumber list but when i debug it, it say index too large or something.

foundItems seems to be a number? Or is it a list? What is it? Display it in a label to find it out. .

First you use it as a number, then as a list

And follow some naming conventions...

Taifun

im sorry but im quite confused, how to make create it?

What about providing a screenshot of that error?
Read and understand the error message to be able to fix your blocks!
Taifun

???
Taifun

im sorry but im still new in this thing which is why im having a hard time fixing the problem

Start again from here

And if you do not know how to use a label to display some value like foundItems, then first learn the basics and do the tutorials

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like


Using the setup I used, how to get the Mobile Numbers Column to add them into the list phoneNumbers?

Use gviz to selct the column like this SELECT E
assuming it is column E
.

Taifun

1 Like