When we create a screen or action some time we create a lot of local variables. It would be cool if we could select all these variables and with right click create a structure with them keeping the data type of each variable.
Yes,
would be great addition!
Useful for refactoring as well. Agree
That would be a fantastic adition, like Roman said for refactor purposes would be great
Thanks for the idea!
It would be nice if I could select multiple parameters on a screen, client, service or server action and convert them into a structure.
Outstanding idea!
J.Ja
+1!
Very practical! I like this idea Daniël!
+1
You can already copy-paste parameters from an Action to a structure, but still this would automate:
- Creating an empty structure to be used as input for the Action;
- Removing current parameters and adding the Structure as input;
- Refactoring any code that was calling the Action already.
IMO, the real value-add would be a Service Studio warning for Actions with too many parameters. Clicking the warning should allow the developer to select which parameters should be moved to a structure, and follow the above steps.
Selecting which parameters will be moved is important though, since Structure input parameters don't have an easy way to validate Mandatory attributes.