I used the webviewer to sort a list as shown on https://puravidaapps.com/snippets.php#2sort and in the screenshot of the blocks below. I am able to run the sort and display the sorted list. But I am having trouble manipulating the sorted list. I want to be able to use the sorted list by accessing and changing elements in the sorted list. I have set a new variable for the sorted list to equal to the returned result from the WebViewer. Then I tried to retrieve a specific element but I am getting a runtime error that the operation select list item cannot accept the argument for the sorted list. I have copy and pasted the error message below along with the screenshot of the blocks.
Runtime Error Message:
The operation select list item cannot accept the arguments: , [A,B,,,( C ),,(0 0 0),1,K,M,,,( D ),,(0 0 0),5], [1]
It looks like I can sort the list but I can't seem to manipulate the list. Is there another method that you would recommend to sort and manipulate a list of lists?
I was able to display WebViewer1.ContentPageTitle as a label text and it shows up as "myList" sorted. Then I wanted to manipulate the sorted "myList" but I think I need to store that in a variable so I stored it in a variable called SortedList. Then I tried to access an element in the list as a first step to use elements from the list.
my guess is, you want to convert it back into a list of lists...
the first step could be to convert the csv row into a simple list using the list from csv row block, but then you will have to use a for each item in list loop and build the list of lists manually again... sorry, there is no simple conversion block available...
I basically want to have an app capture data for several categories from a preset list characteristics in each category for an individual. I would start out with a single individual with several characteristics to record. Some of the characteristics have several sub-characteristics. After I have filled out the data for one individual I want to be able to repeat the process to capture data another individual by adding another individual. Once I am done entering data for the individuals I would like to be able to recall the specific elements to display or edit. I would also like to sort based on selected elements.
I am trying to rebuild the list as you described. But I am getting the error message "The operation select list item cannot accept the arguments: , [(K M N O (P D Q R) S (58 12 3) 5 A B D E (F C G H) I (22 543 54) 1)], [K]"
You could use multiple separate lists, one for each category and one for each sub category - but surely the easiest solution is to build a database.
Check out the database extensions on Taifun's website: https://puravidaapps.com/extensions.php
sometimes you have to redesign your app...
in your case let me suggest to use the local sqlite database to store your data
doing like this, you can create queries to filter and sort your data as you like ...