# Two ideas to improve Toad Editor

**URL:** <https://forums.toadworld.com/t/two-ideas-to-improve-toad-editor/32322>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [January 15, 2015, 3:42am UTC](https://forums.toadworld.com/t/two-ideas-to-improve-toad-editor/32322 "2015-01-15T03:42:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmackovik](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@rmackovik](https://forums.toadworld.com/u/rmackovik)\
**Post date:** [January 15, 2015, 3:42am UTC](https://forums.toadworld.com/t/two-ideas-to-improve-toad-editor/32322/1 "2015-01-15T03:42:48Z")

</div>

Hi all,  
I work with Toad for 10 yaers and I have a few ideas I would like to share:

1. Drag and drop operation in Toad with files  
Consider this situation - I have a plsql containing file on filesystem. I can drag it to Toad editor.  
But if there is eg Schema Browser opened in Toad, I can’t drop the file to editor, I have to bring up different connection/window to bring up the editor, and then drag and drop again.  
It wolud be nice if Toad can do something like this: If I hold mouse cursor (while dragging) over connection/window, this window is brought up.

2. I have some code templates I am using for my work. This templates are parametrized, thus I only create empty file, and in template is automaticly used its filename and actual date.  
Eg. at the end of this post is the skeleton (created from my template) for plsql package, including header, trailer, logging procedures, … (? and … are places that i must add - change number, code and code purpose).  
Its better and faster to use parametrized template than allways fill the date and package name because in the development time I create many packages and sripts every day.  
This skeleton has 3times filled actual date and 5times filled filename.  
I use Notepad++ with FigerText plugin for this, and there is more options to use than I used in my template (they don’t call it templates, just snippets).  
It would be better than create it with Notepad++ and then drag and drop it into Toad Editor 🙂

Is there any probability that this features can be in toad editor (in future versions of course)?

Or some ideas how to solve this with actual version of Toad?

Thank you for reply guys.

Robert Mackovik

CREATE OR REPLACE PACKAGE ETL\_OWNER.MS\_DWH\_OUTEBV\_WORKOUTS\_X15J as

/\* ===================================================  
/\* Module: MS\_DWH\_OUTEBV\_WORKOUTS\_X15J  
/\* Purpose: ???  
/\* Created By: Robert Mackovik  
/\* Created Date: 15.01.2015  
/\* Last Updated By: Robert Mackovik  
/\* Last Updated Date: 15.01.2015  
/\* Version: 1.0  
/\*  
/\* Change History:  
/\* Date Author Change  
/\* 15.01.2015 Robert Mackovik ???: New module  
/\*  
/\*  
/\* =================================================== \*/

C\_MODULE\_NAME VARCHAR2(30):= $$PLSQL\_UNIT;

PROCEDURE MAIN(P\_PROCESS\_KEY IN NUMBER DEFAULT -1,  
P\_EFFECTIVE\_DATE IN DATE DEFAULT to\_date(‘10000101’,‘YYYYMMDD’),  
P\_LOAD\_PARTITION IN VARCHAR2 DEFAULT ‘A’,  
P\_OPERATING\_MODE IN BINARY\_INTEGER DEFAULT 0,  
P\_AUDIT\_LEVEL IN BINARY\_INTEGER DEFAULT NULL,  
P\_MAX\_ERRORS IN NUMBER DEFAULT NULL,  
P\_COMMIT\_FREQUENCY IN NUMBER DEFAULT NULL,  
P\_BULK\_SIZE IN NUMBER DEFAULT NULL,  
P\_JOB IN VARCHAR2 DEFAULT ‘NULL’  
);

END MS\_DWH\_OUTEBV\_WORKOUTS\_X15J;  
/

CREATE OR REPLACE PACKAGE BODY ETL\_OWNER.MS\_DWH\_OUTEBV\_WORKOUTS\_X15J as

PROCEDURE MAIN(P\_PROCESS\_KEY IN NUMBER DEFAULT -1,  
P\_EFFECTIVE\_DATE IN DATE DEFAULT to\_date(‘10000101’,‘YYYYMMDD’),  
P\_LOAD\_PARTITION IN VARCHAR2 DEFAULT ‘A’,  
P\_OPERATING\_MODE IN BINARY\_INTEGER DEFAULT 0,  
P\_AUDIT\_LEVEL IN BINARY\_INTEGER DEFAULT NULL,  
P\_MAX\_ERRORS IN NUMBER DEFAULT NULL,  
P\_COMMIT\_FREQUENCY IN NUMBER DEFAULT NULL,  
P\_BULK\_SIZE IN NUMBER DEFAULT NULL,  
P\_JOB IN VARCHAR2 DEFAULT ‘NULL’  
) IS

V\_MRG\_COUNT PLS\_INTEGER:= 0;

begin  
ms\_global\_log.write\_map\_cnt(P\_PROCESS\_KEY =\> P\_PROCESS\_KEY,  
P\_MAPPING\_NAME =\> C\_MODULE\_NAME  
);

…

V\_MRG\_COUNT:= SQL%ROWCOUNT;

commit;

ms\_global\_log.write\_map\_cnt(P\_PROCESS\_KEY =\> P\_PROCESS\_KEY,  
P\_MAPPING\_NAME =\> C\_MODULE\_NAME,  
P\_MRG =\> V\_MRG\_COUNT  
);

ms\_global\_log.write\_map\_end(P\_PROCESS\_KEY =\> P\_PROCESS\_KEY,  
P\_MAPPING\_NAME =\> C\_MODULE\_NAME,  
P\_STATUS =\> ‘COMPLETE’  
);

commit;

exception  
WHEN OTHERS THEN  
ms\_global\_log.error(P\_PROCESS\_KEY, SQLCODE, C\_MODULE\_NAME || ’ FAILED WITH ’ || SQLERRM || DBMS\_UTILITY.FORMAT\_ERROR\_BACKTRACE);  
ms\_global\_log.write\_map\_end(P\_PROCESS\_KEY =\> P\_PROCESS\_KEY,  
P\_MAPPING\_NAME =\> C\_MODULE\_NAME,  
P\_STATUS =\> ‘FAILED’  
);  
commit;  
RAISE\_APPLICATION\_ERROR(-20401, SQLERRM || ’ ’ || DBMS\_UTILITY.FORMAT\_ERROR\_BACKTRACE);  
end MAIN;

END MS\_DWH\_OUTEBV\_WORKOUTS\_X15J;  
/
