Ctrl Key Behavior

I hope it is not too troublesome for me to ask a few really basic questions. I apologize.

In an editor window, when the moue cursor is in a word and I press the Ctrl key, the whole word gets a pink background, which disappears when I release the Ctrl key. What is Toad indicating with this behavior?

While in an editor window, the processes at the bottom of the screen includes a small panel with what appears to be a button of sorts. Before I do anything, the button is grey. After I run queries or scripts, for the rest of the edit window’s life, shile the Prg is busy that button is grey, and while it is idle the button is red. What is this indicating?

I managed to associate opening a Master/Detail report with Ctrl+Alt+M. But I cannot find an “Open Edit Window” action to associate with a short-cut combo. Is there a way, with the keyboard, to open a new Edit window?

Thank you for indulging me. I am new to Toad (6 months), and want to become more proficient.

You can click on an identifier while holding CTRL to jump to it or describe it. See the Ctrl + Click options on the Editor|Code Assist page in Options.

The red/gray indicator is the grid state indicator. Gray - Data grid is not active. Red - Data grid is active and read-only. Green - Data grid is active and read-write.

You can assign a shortcut for the Editor in Options on the Toolbars/Menus|Shortcuts page. Assign a shortcut to the Editor command. It’s in the Database category.


Hi Brian,

following up on what Mike said…

The icon will be grey (I’m in the UK - that’s how we spell it, correctly!!!) [;)] whenever you have executed a SQL statement or a PL/SQL statement in the editor, and no results grid is produced. Something like “CREATE TABLE …;” or “EXEC somePackage.someProcedure();”.

The icon will be red when you have executed a “SELECT …;” but have not included the ROWID of the table in the select list. “SELECT * FROM MYTABLE;” for example. This makes the grid non editable. What data you see is what you are going to have to change, if required, in some other way.

The icon turns green when you do select the ROWID, “SELECT ROWID, T.* FROM MYTABLE T;”. Now you can wander around the grid, clicking in cells, editing the contents and so on. When done, you click the POST button, and then COMMIT or ROLLBACK as necessary. They are on buttons too.

You double click a TEXTual cell to open a separate editor window, make changes and click the green tick (check?) button to post the edit. The editor will remain open to allow further changes. Close it and commit by clicking the first button above the grid - a red down arrow pointing at a “database”. Rollback is the button next to it, blue arrow pointing up away from the “database”.

You single-click a NUMERIC cell, once to select it, once to start editing, and if you want, click the down arrow that appears to open a calculator utility to create the new value for the column. Once done, tick the green tick (check) above the grid to post the edit, and commit or rollback as before.

The buttons above an editable grid are:

Commit, Rollback, Pivot Grid, Export Grid, First row, Previous row, Next row, Last Row, Add a row, delete current row, Edit current row, Post edit, Cancel Edit, Cancel data fetch and Calculate with selected cells - like a spreadsheet, you can add, average, count, min or max the cells you have selected. The results are written to the status line.

Other options such as duplicating the current row are available on the right-click menu.


Oh, by the way, you may notice that when you do select the ROWID, you never see it in the grid. Toad uses the ROWID being present to put the grid into read-write mode. The ROWID is not shown. If you need to actually see the ROWID for a table, you have to alias it, as in “SELECT ROWID as MYROWID, t.* FROM MYTABLE T;” this will display the ROWID column and will put the grid into read-write mode.

DO NOT EDIT THE ROWID COLUMN! The grid allows this, but you may/will end up corrupting something if you do change it.