You need to sign in to do that
Don't have an account?
ALEJO CARPENZANO
[HELP] Reorder elements in a list using the mouse.
Hi!
Please anybody help me to solve this u.u
I must to translate this:
to visualforce and apex lenguages. You can see the demo in : https://jqueryui.com/sortable/#connect-lists
I must to be able to reorder and change account records listed in three lists using the mouse (drag and drop).
When we move an account from a list to other, the value of a custom field created on the account objects must to change.
The custom field of account object must be named "Level" and can get three values (level1,level2,level3).
Each list is filled with accounts that meets its values.
eg.:
Lv1accounts
account1
account2
account3
Lv2accounts
account4
account5
account6
Lv3accounts
account4
account5
account6
Thank you very much!
Please anybody help me to solve this u.u
I must to translate this:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jQuery UI Sortable - Connect lists</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css"> <link rel="stylesheet" href="/resources/demos/style.css"> <style> #sortable1, #sortable2 { border: 1px solid #eee; width: 142px; min-height: 20px; list-style-type: none; margin: 0; padding: 5px 0 0 0; float: left; margin-right: 10px; } #sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 120px; } </style> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script> <script> $( function() { $( "#sortable1, #sortable2" ).sortable({ connectWith: ".connectedSortable" }).disableSelection(); } ); </script> </head> <body> <ul id="sortable1" class="connectedSortable"> <li class="ui-state-default">Item 1</li> <li class="ui-state-default">Item 2</li> <li class="ui-state-default">Item 3</li> <li class="ui-state-default">Item 4</li> <li class="ui-state-default">Item 5</li> </ul> <ul id="sortable2" class="connectedSortable"> <li class="ui-state-highlight">Item 1</li> <li class="ui-state-highlight">Item 2</li> <li class="ui-state-highlight">Item 3</li> <li class="ui-state-highlight">Item 4</li> <li class="ui-state-highlight">Item 5</li> </ul> </body> </html>
to visualforce and apex lenguages. You can see the demo in : https://jqueryui.com/sortable/#connect-lists
I must to be able to reorder and change account records listed in three lists using the mouse (drag and drop).
When we move an account from a list to other, the value of a custom field created on the account objects must to change.
The custom field of account object must be named "Level" and can get three values (level1,level2,level3).
Each list is filled with accounts that meets its values.
eg.:
Lv1accounts
account1
account2
account3
Lv2accounts
account4
account5
account6
Lv3accounts
account4
account5
account6
Thank you very much!