Skip to content

Commit

Permalink
Select2, waitPopup
Browse files Browse the repository at this point in the history
* Select2 for selecting tables
* Added “waitPopup” indicator during re-order
* Extra drag handle
* Annonymous Font
* Preview animation
  • Loading branch information
rimblas committed Jun 5, 2020
1 parent d36e9a2 commit 5462610
Show file tree
Hide file tree
Showing 3 changed files with 2,450 additions and 21 deletions.
26 changes: 22 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,42 @@
# OCD Table Reorderer

To the OCD developer in all of us.
_To the OCD developer in all of us._

You have a carefully crafted table. Then the requirements change, as they always do, and you an important column to the table. Where does that column go? Well, at the end of the table of course.

Well, I say no more.

## Preview
![Alt text](/preview.gif?raw=true "Preview")


## Q&A
* Is it safe? I think so, but **USE AT YOUR OWN RISK**
* Is the data moved? No, not at all!
* Is a new table created? No, not at all!

## Install
This is a straightforward single page APEX app compatible with APEX 5.1

However, if you're on APEX 18.2 or beyond, you'll need to remove the JS line that references `jquery.ui.sortable.min.js` on the JavaScript File URLs section of p1. If you don't the drag and drop won't work.
### 18.2
If you're on APEX 18.2 or beyond, you'll need to **remove** the JS line that references `jquery.ui.sortable.min.js` on the JavaScript File URLs section of p1. If you don't the drag and drop won't work.

### 19.1
If you're on 19.1 or beyond, then change the `clearMessages` JS function to use `apex.theme42.util.configAPEXMsgs` instead of `apex.theme42.configureSuccessMessages`.

## Roadmap
* Controls to move a column to the Beginning & End
* Pre-Defined column arrangements (like move Audit Columns to the end)
* Block Move: select multiple columns that will move together


### Credits
The original script that kick this off is from [Dermot ONeill](https://twitter.com/dermotoneill) with his [SQLcl](https://www.oracle.com/database/technologies/appdev/sqlcl.html) [Aliases & The Invisible Column Trick](http://dermotoneill.blogspot.co.uk/2015/11/sqlcl-aliases-invisible-column-trick.html).
The original script that kick this off is from [Dermot ONeill](https://twitter.com/dermotoneill) with his [SQLcl](https://www.oracle.com/database/technologies/appdev/sqlcl.html) [Aliases & The Invisible Column Trick](http://dermotoneill.blogspot.co.uk/2015/11/sqlcl-aliases-invisible-column-trick.html). Original [pos.xml](https://gist.github.com/dermotoneill/b654404f112846212d4d).

I've shared his gem with many people, but then [Gemma Wood](https://twitter.com/gemmawood) provided me with a pretty nice enhancement that moves the "Audit Columns" of a table to the end. You can [get that here](scripts/apos.xml). You can load it into SQLcl just like Dermont shows in his blog:

```
alias load c:\pos.xml
alias load c:\apos.xml
```


Expand Down
Loading

0 comments on commit 5462610

Please sign in to comment.