Hi,
I have created a static entity & I want to copy all the records of static entity to Local Entity in run-time.
Thanks,
Assif
I resolved,
I just want to copy all the records from a Static Entity to Local Entity in Runtime.
1- Created a local List Variable of Static Entity Type
2- Added an aggregate of static-entity to the Screen
3- Created a client action of "ListAppendAll"
4- Provided the Local List to CreateALL Entity action
Iterate the Static entity's records and create new ones in the Local entity.
What's your use case?
I tried but getting issues with for-loop.
You have to be more specific otherwise it's hard to help...
Hi Assif,
I assume in step 1 above you created a local variable of type List of YourLocalEntity where YourLocalEntity is a local storage entity based on YourStaticEntity static entity?
Jorge Martins wrote:
Yup, You are right I created a List type local variable.
Thanks :)
A lighter and leaner solution:
1- Create a server action that gets the static records from the DB and retrieve them as a list of the local entity:
2- Create a client action that consumes the above server action, getting its output (which is a list of the local entity) and save it locally: