Hi there, I would like to enumerate list items in my survey form automatically (e.g. trees recorded on a sample plot). How should I go about it? And what happens when an item is removed from the list? Can the items affected re-enumerated? Thanks! asked 09 Oct '14, 20:28 Andras |
Hi, If the items that you want to enumerate are entities, like for example a table of trees, you can simply enable the option "Show row number in tables" in the entity editor in Collect Survey Designer: the number of each row will be automatically shown in the data entry form. If you need to do something more complex and you want to use that number in other expressions, you can define a calculated attribute like "tree_num" for example and you can define this expression as Default Value expression: "idm:position()". The result will be very similar to the previous solution. You can try both the solutions and see how the data entry form appears using the "Preview". Thanks answered 09 Oct '14, 21:21 Stefano (OF) ♦♦ Thanks for the answer! How about removing an item from the list and re-enumerating?
(10 Oct '14, 09:03)
Andras
The re-enumeration is automatic if you use the first solution. If you use the second one, the re-enumeration will be automatic in the next release of Collect (3.3.2). Thanks!
(10 Oct '14, 09:27)
Stefano (OF) ♦♦
|