You could also create a list/csv file to avoid having to load all the numbers one by one into the listview (but you have done that already...) - that must have taken forever!
You stuffed all your phone book entries into the Listviewer in the Designer.
I coded some attempts to extract the names and numbers from the ListViewer Elements list at run time in my Companion, to give you a CSV extract you could load from the Media folder at run time and extend with a third column for WhatsApp numbers, but the Right To Left encoding is breaking CSV conversion.
My objective is to divorce blocks from data details.
Your block count should not grow with your data count.
Find a spreadsheet that can handle mixed Right to Left text and fill three columns with
name
phone number
Whatsapp info
Do not attempt to make decisions based on selectionIndex, because you will eventually need to delete items from your contact list and that would move up all the index numbers.
I managed to handle most of the right to left stuff / any other issues presented in the listview data by grabbing the output from a Do it, pasting it into Geany, changing the filetype to json and tidying it up into a stringified json array. I only did about 20 entries. Saved the file, imported it into the app, used the file component to read the file and then created list elements with main and detailed text. A new listview was used to replace the original. This put the "text" above the number for each element.
Hello, thank you to the best team
Very true, after I deleted all the profits it worked and the app opened successfully
Now all that's left is to help me build the app using your method, it looks much better....
The third column of the contacts table is still needed for Whatsapp support.
You need to keep the table in a global variable for Whatsapp lookup, to avoid the big green hacksaw blades you coded.
Use the SelectionIndex to index into the saved three column table to get to your Whatsapp numbers.
Now you can continue working on this as I have included @ABG and @TIMAI2 work with json file in your project and removed all hardcoded content from list viewer..
JSON is just text, with special punctuation patterns to keep everything separate and in proper order.
You can download the JSON file from AI2 and edit it with a text editor or spreadsheet prograam, then load it back into the Media folder when it is done.
Here, I have used the JSONTools Plugin to pretty print the JSON text, adding indentation to see what is what.
Unfortunately, this JSON is useful mostly for reloading a ListView.
If you can add more tags to the entries, you might be able to add extra features like Whatsapp info.
It would not hurt you to learn how to use AI2 dictionaries and JSON.