Screen update if Entity is updated in Studio prior to V7

In agile methodology, we do often change the Entity attributes during development or even subsequent enhancements where the Studio prior to v7 prompts an option to select corresponding screens where I want to make such corresponding changes by adding such fields or composit entity etc. Once selected, the studio automatically updates the screen. This is a very productive feature and I enjoy such productive feature of the Studio. I believe may other developers do. This feature is still missing up to Studio v 9 published today. May we request CUBA team to bring this functionality of the studio in next version?

Hi!

Actually, this functionality exists, but have been changed a bit.
You can navigate to created entity attribute, press Alt+Enter and select Add entity attribute to screen. You will see a list of screens to add attribute in.

Hi Alexander
Thanks for sharing this info. What would be the short-cut in MacOS?
I tried Control + Enter and get the following short-cut but do not see “Add entity attribute to screen” option.
image

I forget to notice one small thing, that the shortcut works from code editor, so you need to navigate the attribute in source code.

Do you mean from Screen code editor?
Here is what I see:

image

No, I mean entity source editor.

I don’t see either!

image

Moreover, even if it is there, this is an additional step without any benefit. Will this be possible to bring back the V6 way i.e. prompting when saved the Entity after adding any new Attribute?

Try to navigate to attribute name. Maybe there is no screens left to add specified attribute in.

I don’t see so!
If I choose Attribute… then it takes me to the window to add a new Attribute of the Entity.

And I have not added the new field to the screen yet (double checked).

On Mac, try shortcut Command+Enter.

Sorry, that short-cut inserts a new line and pushes the code down, no such short-cut appears!!

The shortcut name is Show Intention Actions. I advise you to find it in your CUBA Studio keymap settings. Go to Settigs->Keymap. Use search field to find the shortcut.

Ok, I found it.

It’s too many steps!!

  1. go to the source code of the Entity

  2. Short-Cut of search for the short cut-

  3. Select Edit intention settings
    image

  4. Intention screen appears with so many things!!
    image

  5. then unselect other checkbox and keep “Add entity attribute to screen” but nothing added to screen, no option for screen to be selected…
    image

It’s became a nightmare!

Sorry for misleading, the correct shortcut for Mac is Option+Enter.

Please, don’t unselect any checkboxes of CUBA code generation section.

The full instruction is:

  1. Create new entity attribute.
  2. In entity code navigate to the attribute name.
  3. Press Option+Enter (Alt+Enter on Windows).
  4. Select Add entity attribute to screen
  5. Select screen to add attribute in.
  6. Press OK.

Two comments:

  1. When I pressed Option + Enter, Studio is not responding anymore (hang)
  2. You see so many steps! This is the main observation that it is no more robust compared to previous version in this specific functionality.

Hi CUBA Team
I saw somewhere @knstvk kindly indicated that this will be considered but not sure where. Anyway, Would you please take this into consideration for subsequent release of version 7+ which was a very productive feature in v 6.x?