How to populate Edit picture dialog?

0
Noob question. I'm continuing with the sample 'Employee' app and want to allow for a new photo to be uploaded. I've created a System.Image called EmployeePhoto entity in my Domain model and associated it with my Employee entity. Now I need to hook things up so that when I click the photo in the Employee detail page it opens an Edit Photo page. This is where I'm stuck. I presume I need to create a Microflow but can't work out how to pass the current EmployeePhoto object to the microflow such that it'll populate the Edit Photo dialog. Any suggestions?
asked
2 answers
0

Hi Richard,

You could use the image viewer widget to call a microflow when the image is clicked. This microflow can have a parameter of the image that you are showing so that you can pass it to a new page.

 

To setup the widget, place it in a dataview with a data source of the image that you are trying to show or in a dataview with a datasource that has an association to the image that you want to show. Then in your widget properties you can select the data source and set the on click action.

 

Your microflow will have a parameter of the image that you are showing, and then you can use the show page activity to open a new page and pass the image object. 

 

Hope this helps!

answered
0

Thanks for the feedback. That's pretty much what I've got.

Here's my domain model:

and microflow

 

and here's the page that gets called

 

 

answered