This page demos how to make a drag and drop table, and make use of REST APIs
This demo will not work when used by anonymous users, as it uses REST APIs to update the records stored (changing their order). And this is not allowed for anonymous users, as anonymous users don't "own" a record and therefore the update will not happen
form itself
records
OrderNr |
Title |
---|---|
1 | test1 |
1 | 8y |
1 | Hello |
2 | test |
3 | yess |
4 | The best thing ever |
5 | test |
6 | Test |
6 | 76786 |
7 | test3 |
8 | test2 |
9 | yep |
10 | beginnertry |
11 | test4 |
12 | This is my place |
13 | test5 |
14 | temp |
15 | test6 |
16 | test7 |
17 | test8 |
18 | title test |
19 | test9 |
20 | pppppp |
21 | Test22 |
22 | me |
23 | Apple |
24 | wertert |
25 | abcd |
26 | Geiler Mist |
27 | test321 |
28 | test1`2 |
29 | Tesr |
30 | My Way Today |
31 | Lwandile |
32 | test |
33 | prio 111 |
34 | 123 |
35 | MY OBJECT |
234 | sf |
123123 | 123123 |
123123 | 123123 |
123123 | 123123 |
Source
You will need to change the pageId parameter and the server URl in this line
url: 'https://wiki.vertuna.com/ajax/confiforms/rest/update.action?pageId=21233870&f=f1&q=id:' + entryId + '&fv=ordernr:' + (i+1),