hello everybody,
The application (princip):
First of all the attached file is an example file to try to solve the problem raised.
Then, The main application will use an NFC tag to count the number of turns a person makes: name1 makes 3 turns, everything is scanned by the main application (master) and stored in the "startlist" Name1 | 2 laps (name1 2).
As there will be many students, a second person (or third, fourth ...) can also scan the race on another device (slave). It will also have another result with the same Name1, for example 2 laps but may also be able to scan a student who will never be passed on the main application. (name4 in my example)
The idea at the end of the race is that the slave device exports a CSV file (csvlist) which will be imported into the master application and combined with the list already in this device (starlist).
As the access to the network is fluctuating it seems to me more relevant to go through a csv file for the transfer of a device to the other than storage on a cloud ...
My problem is this: I have a list composed of another list of 2 items: the name and the score
Name1 | 1
Name 2 | 3
This list is present in the application (starlist).
I want to suggest to the user to be able to import a csv file (csvlist) with the original list of the application and combine them with the original list and the csv to have a single list. (in listview3)
In practice, if the name in the CSV does not exist in the application, then I record it with its score in the common list 'listview3'.
More complicated, if the name exists, then I do not add it (not to have 2 times name1 in listview3) but I just want to add his score. In the example, I should end up in listview3 with:
name1 | 3
name2 | 8
name3 | 4
name4 | 4
I tried to create a procedure to check if the csv team was present in the application (I get the names of the starlist and those of the csv list and I look if the items 1 of the csv are present in the starlist ...), it works but I can not go further after the verification procedure ...
If you can help me unlock this code, I will be very happy.
Thanks for the time spent reading this message ...
Ced
NB: this code will finalize a free application to help teachers manage and set up a solidarity race (the score of children turning into money according to the sponsor). I want to multiply the control points (400 students) and combine the results into a single list to facilitate management and gain speed.