Small bug: when double-click on package function in object tree, drag-and-drop action is performed

Claus Pedersen

Member³
I have the setting: Object Browser -> Double-click action = "View Spec & Body".

In the object browser, I have a package with a function.
When I doubleclick on the package name, the package is viewed. When doubleclick e.g. on the node Functions, the tree is expanded, so I can see functions. This is OK.

When I doubleclick on a function, PLD says "Function not valid for a function". When I continue editing, when I click, a dialog pops up with the entries: Name, Call, Description like if I have dragged-and-dropped the function name into the code. I can just click somewhere in the editor again to cancel the operation.
When double-clicking on a function name, the function should just be expanded (to show the Parameters node) instead of showing the error dialog.

Double-clicking on the node Parameters expands the node (OK).

Double-clicking on a parameter name, also causes the the error dialog to be shown, but the drag-and-drop functionality is still performed in the editor.

I can see that the error has been present in various forms since at least version 9, so it is not a new item.

Not a biggie, but should be corrected together with the rest of the items on the ever growing list of enhancement requests.
 
Update: the same thing happens for constraint columns, e.g.:

Tables -> primary key -> columns
or
Constraints -> columns
or
Views -> primary key -> columns
or
Queue tables -> primary key -> columns

You get the error "Function not allowed for a constraint column" and the cursor shifts to the drag-and-drop cursor.

The quick fix will be to do nothing (no error) when the user double-clicks the column name.

The user-friendly thing to do is to open the corresponding table editor on the Keys tab page with the columns in focus, just like when double-clicking on the constraint name.
 
Back
Top