Seting initial values

Hi

I have related entities that need a few attributes initialized on data from the parent entity.
I used “initializing using create action” on the parent screen as in the manual and it works, as described in the sample.
But my problem is that, as I say, I have more than one attribute to initialize.
How do I pass more than one mapping to the createAction? The “setInitialValues” seems to accept only one.

Thanks

1 Like

Hi Pedro,

In fact, the setInitialValues() method accepts a map, so you can pass a map of attribute names to initial values.