47
Views
2
Comments
Solved
change to Structure from Entity.
Question
Application Type
Reactive
Service Studio Version
11.54.66 (Build 63364)

I want to change to Structure from Entity.


There is an entity A and a struct that has the same structure as entity A.

There is an entity B and a struct that has the same structure as entity B.

There is an entity C and a struct that has the same structure as entity C.


I don't want create n pieces of logic.


Something like generic programming.


Java

public static  T_To change(T_From in_param, Class toClass)


C#

static void Change(ref T_From in_param, ref T_To out_param)


For example, as an internal processing approach,

BeanUtils.copyProperties or

Jackson's objectMapper.readValue(jsonString, toClass)

I'm thinking of using a similar Function and Forge that can also be used in Outsystem.


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi,

OutSystems does not have this generic concept in their visual language. You need to assign the entity record to structure per entity.

Regards,

Daniel

2024-09-29 02-08-42
Teck Dev for Minimum cost

It seems impossible. . thank you.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.