Eson,
The button is grayed out because at least one of the 3 nested entities are not available on the page. This could be because:
Hope that helps,
Mike
Hi Mike,
I indeed found out that the way i set up my nested entities is the reason why i’m having this issue. Can you give me some insights in how i would have to set up the nested data views to put my button in for this to work?
I need data from ApplicationUser, OtherExpenses, Mileageallowance and ExpenseNote. I would think that i can access all this with the current associations in my domain model or am I wrong on this?
Eson,
It looks like if you pass ExpenseNote into the microflow, you can retrieve ApplicationUser, MileageAllowance and and OtherExpenses from that object. That’s the approach I would take, Just pass in an ExpenseNote object and retrieve the required objects using association retrieves.
Hope that helps,
Mike
I tried retrieving everything through the associations but all data which i want to retrieve through associations in the document template does not get filled with info. Only the attributes located on the ExpenseNote entity are shown in the pdf.
When I add an extra data view with for example the ‘MileageAllowance’, i have to add the paramater to the microflow and thus also put by button in a data view which refers to ExpeseNote_MileageAllowance. Doing this makes my button unclickable again because of the reason you stated above.
Do I have to change the way my page is set up to make this work correctly?