Book a Demo

Author Topic: [7.1] Cannot name a view in Data Model  (Read 7267 times)

Emilio

  • EA User
  • **
  • Posts: 78
  • Karma: +0/-0
    • View Profile
[7.1] Cannot name a view in Data Model
« on: March 04, 2009, 12:10:27 am »
When you choose to add a View object to a data model (Extended | Data Modeling) you are shown a dialog that has a dropdown box with the database product (Oracle, SQL Server 2005, etc.) and a large textbox where one writes the actual SQL query of the view. You cannot name it, you cannot add constraints, you cannot view properties because the property dialog is only DB type and Query.

The problem is... this dialog does not allow you to NAME the view so it remains as "Class1" with View stereotype. The only way to give it the proper name is to go to the Project Browser and rename it there.

The view dialog must contain a textbox so that the user can name the view. It would also be nice if you can also add constraints which can be used for example to specify GRANT/DENY permissions.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: [7.1] Cannot name a view in Data Model
« Reply #1 on: March 04, 2009, 12:59:46 am »
No problem Emilio,

Highlight the name of the view on the diagram. To do this select the view by clicking (not double clicking) it. Then click again on top of the name. You can then either type a new name. If this does not work, press F2 when the name is highlighted to turn the name into an edit box. Pressing return or clicking elsewhere ends the edit.

This is documented in the EA help on Views, but it is easy to miss if you are not used to EA's in-place editing paradigm.

[edit]Note that this will work for a view name, but will not help you if you want to add an alias.

I just tested another method that works fine for both. Open the EA Properties window (not the dialog). You can toggle this window on and off with Alt-1, or through the View menu. It may also be docked in a window group on your desktop layout.

When you highlight the view you can use the Properties window - once again, not the dialog - to edit the name or add an alias.[/edit]

HTH, David
« Last Edit: March 04, 2009, 01:05:15 am by Midnight »
No, you can't have it!

Emilio

  • EA User
  • **
  • Posts: 78
  • Karma: +0/-0
    • View Profile
Re: [7.1] Cannot name a view in Data Model
« Reply #2 on: March 04, 2009, 07:00:46 pm »
Thanks "Midnight" that is indeed another way which I knew about but seldom use, I guess that is why I missed it too.

However, from the standpoint of a user I look for uniformity in behaviour.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: [7.1] Cannot name a view in Data Model
« Reply #3 on: March 05, 2009, 02:19:13 am »
Quote
...
However, from the standpoint of a user I look for uniformity in behaviour.
Couldn't agree more.
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: [7.1] Cannot name a view in Data Model
« Reply #4 on: March 05, 2009, 11:04:27 am »
Quote
Quote
...
However, from the standpoint of a user I look for uniformity in behaviour.
Couldn't agree more.
The dreaded "C" word...  ;)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: [7.1] Cannot name a view in Data Model
« Reply #5 on: March 05, 2009, 11:51:45 pm »
Paolo,

You got the message loud and clear. Why am I not surprised?

David
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: [7.1] Cannot name a view in Data Model
« Reply #6 on: March 06, 2009, 04:49:35 pm »
Quote
Paolo,

You got the message loud and clear. Why am I not surprised?

David
You'll notice I'm not even spelling out the complete word...

Soon it will be: "the concept that dare NOT speak its name"...  ;)

Paolo
« Last Edit: March 09, 2009, 01:59:05 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: [7.1] Cannot name a view in Data Model
« Reply #7 on: March 07, 2009, 12:50:52 am »
 :-X

 :'(

 >:(
No, you can't have it!