Changes made to list dont reflect in parent object - Mendix Forum

Changes made to list dont reflect in parent object

0

I have an entity called 'SelectedMonths', which contains a list of 'Month'.

  1. I have a parameter called 'SelectedMonths' of type 'SelectedMonths' in my Microflow.
  2. I retrieved the object 'MonthList' from 'SelectedMonths' object.
  3. I created a new object called 'NewMonth' of type 'Month'.
  4. Added the 'NewMonth' object in 'MonthList'.
  5. Now, when I again try to retrieve 'MonthList_2' from 'SelectedMonths' object, the newly added element is not reflected in the second list,

 

What I am doing wrong?

asked
2 answers
0

Hi Sajjad,

 

If you add the 'NewMonth' to 'MonthList', then why a second retrieve, you'll be able to use this 'MonthList' with the newly added month immediately.

Also, I would try to avoid using plural names for entities. 

 

Cheers,

Dave

answered
0

Hi Sajjad,

Is the 'MonthList_2' an database retrive? Did you commit the object: 'NewMonth'?

 

BR,

Rick

answered