Forums
This topic is locked
Extention to sort a list up or down :: REQUEST ::
Posted 03 Aug 2011 11:25:02
1
has voted
03 Aug 2011 11:25:02 reinhardt ellis posted:
:: REQUEST ::Extention that will move a record up or down in a list.
So if I have a table
1. ffff up down
2. dddd up down
3. xxxx up down
I would be able to click on the down button on 1.
So it would become
1. dddd up down
2. ffff up down
3. xxxx up down
So it will then also change the ID in the database to give it a new sort order...
Is there something out there like this...
Replies
Replied 12 Jan 2012 09:04:25
12 Jan 2012 09:04:25 Kris Wasserl replied:
This procedure clears the assignment input fields except for the Due Date which is 'set to five days in the future.
Lush Illumination
Lush Illumination
Replied 12 Jan 2012 18:11:09
12 Jan 2012 18:11:09 reinhardt ellis replied:
???
Replied 10 Jun 2012 05:39:22
10 Jun 2012 05:39:22 Jim Elliott replied:
Assuming you have a field SortID or something do the whole thing with AJAX (including showing the table) and you can then easily react to the user. So if you have a button (or image) for up you could pass the ID of the row and an up action. Then your logic could swap the SortID with its previous record and redraw the table.
Of course if Adobe had not got rid of the Developer's Toolbox this was built in. A great reason never to move beyond Dreamwear 4
Of course if Adobe had not got rid of the Developer's Toolbox this was built in. A great reason never to move beyond Dreamwear 4