Create Structure based on variable type (right click)
Service Studio
Development Environment Release 74


Be usefull a way to convert a variable to structure .
This would save time when developing.

In a project here (when started) an SA was created with an input parm (list of record) defining it in a peculiar way (double click and pointing each one of the attributes). This same SA is called in several points and in all of them the variables that receive the return of it were defined as well.

So, if you need to do maintenance (addition, removal, update, ...) you have to change at all these points.

My idea would allow me to create a struc from one of the variables (minimally the one that is correct) and then set the type of this var to the struc. This would point out the inconsistencies in the other references, if the same adjustment and "voila" would do: future maintenance is much simpler!

Changed the category to
Service Studio

Hey Maycon,

Can you please elaborate and detail a bit what is your scenario and how you would achieve this?

Hi Vasco.

At 13 Dec I've put more details.

Otherwise, follow...

Suppose a scenario with a server action where one of its input/output parameters is a composite variable typed as list record or record. Like this:

=> The same idea applies to variable!

And you need to add an attribute in it but it is used at various points in the system where each of these points has a variable typed in the same way to receive the return of this SA. It is neither correct nor good practice, but it was done so.

Impact: Big/Complex.

Then... converting this output to a struct with right-click allow to change type of all the others variable refs to this new struc.

Changed the status to
On our RadarOn our radar

Hey Maycon,

Didn't see the comment on Dec 13th.

I understand your scenario and I'll mark add idea to our radar. I'll just tweak the title to be better found and voted!


Merged this idea with 'convert local variable to structure' (created on 09 Jul 2020 13:53:00 by Jason Herrington)

Please add ability to convert a local variable (typically type list of record) to a structure.

This comment was:
- originally posted on idea 'convert local variable to structure' (created on 09 Jul 2020 by Jason Herrington)
- merged to idea 'Create Structure based on variable type (right click)' on 20 Jul 2020 08:19:32 by Vasco Pessanha
Changed the status to
on 27 Jul 2011

Hi Maycon,

I'm glad to announce that, from now on, you can simply right-click a variable to create a new structure based on that variable's type:

As always, thanks a lot for your input and you can find your contribution in our product's release notes: 

Hope you enjoy it :)

Hi, Vasco Pessanha

I'm glad to hear about this implementation. But somehow, I can't get it to work.

I have updated the Service Studio to the latest version (11.8.2) and I didn't find any "Create Structure from Data Type" option when I right-click the Record Type variables.

Am I doing something wrong here?

Hey Loi!

I'm glad you want to try this new feature!

We had a small problem but it was already fixed. Can you please restart your Service Studio and try again?

Let us know if it works :)

Francisco - I think at least for me this was a bit different in request.  If you go to a page, and make a record, or list of type record, and then add several items to it.  Then you decide it needs to be used other places the desire was to be able to right click on that record, or list of type record, and select to make that a structure.

Hi Francisco Magalhães!

I did as you suggested, I restarted Service Studio and try it again but it's the same. I didn't see any "Create Structure from Data Type" option.

Hey Loi, Francisco will follow up that issue with you.

Jason, not sure if I got your comment. In your example, with this new capability, you can simply right-click on the variable and automatically create the structure (also setting the type of the variable to that structure). Now you have a structure that you can use to set the type of any variable.

Am I missing something?

Hey Loi!

It's now working, sorry for the trouble!

Hey Francisco!

Yes, it is working now. Thank you so much for this.

By the way, I notice that the option to create Structure only  available to Record Data Type.

For List of Record, I have to first change the variable back to Record, create the Structure and then make it a List type of the newly created Structure. It takes 2 extra steps but it is better than nothing.

Although it would be useful to be able to do that with one click.

Hey Loi,

Glad you already have the feature! Thanks for identifying this little issue.

Agree with your suggestion, it makes sense having this for List variables as well, I'll add that to our backlog.



Hey Loi,

Just to let you know that the team just implemented this improvement and it will be released in the next couple of weeks!

Hope you like it ;)

Hey Vasco,

That is a great news! I'm looking forward to it!  :)