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.
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:
No, I mean entity source editor.
I don’t see either!
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!!
-
go to the source code of the Entity
-
Short-Cut of search for the short cut-
-
Select Edit intention settings
-
Intention screen appears with so many things!!
-
then unselect other checkbox and keep “Add entity attribute to screen” but nothing added to screen, no option for screen to be selected…
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:
- Create new entity attribute.
- In entity code navigate to the attribute name.
- Press
Option+Enter
(Alt+Enter
on Windows). - Select
Add entity attribute to screen
- Select screen to add attribute in.
- Press
OK
.
Two comments:
- When I pressed Option + Enter, Studio is not responding anymore (hang)
- 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?