Can someone please help me revise my program. Im having problems in sending sms especially when the data has been filtered. I am attaching my project here. Thank you
CebTextblasting.aia (130.6 KB)
Taifun
What about integrating the suggested solution into your app?
Please do not open another thread for the same topic
Taifun
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
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 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