Drag
In this article we will show how you can implement Drag-N-Drop between two elements of the board. It makes more sense to drag and leave the records between two grids. In this example we will use two tables called orders and Orders_archive.
This is how you will see in the generated application:
1. SQL query that creates necessary tables in the database
2. Create a dashboard at Phprunner or Asprunner.net and add these two tables.
3. The following code goes to the JavaScript load event of both orders and Orders_archive Table list pages.
Things to change:
– Var connectable must contain the name of another table. In orders Table code should say “orders_archive” and vice versa.
– URL “Dashboard_dashboard.php” on the board page. At Asprunner.net will be something like this dashboard
– “Orderid”: Name of the key column of the current table.
4. Page of the board: Event before the process
In this event we add a new record to the destination table and remove the same to the source table. The second section of this code helps us to update the order of order
PHP code
Code C#
Enjoy!
Technology
Berita Olahraga
Lowongan Kerja
Berita Terkini
Berita Terbaru
Berita Teknologi
Seputar Teknologi
Berita Politik
Resep Masakan
Pendidikan
Related Post
- July 17, 2024
- by anak
- 0
- 4:32 am
Minimize ad waste and automate optimizations with Taboola
[ad_1] The old saying, "Waste not, want not" was not written about digital ads, but…- August 11, 2023
- by anak
- 0
- 5:28 pm