listen to en Checkbox

0
Hallo, Ik heb de Mendix introduction course gevolgd ben nu wat aan het bouwen geslagen, maar loop toch tegen wat problemen aan: in het gespreksverslag wil ik een leverancier kiezen en dan wil ik allen de namen van de contactpersonen van die leverancier zien. Achter de contactpersonen eigenlijk een vinkbox oid met "aanwezig" of "afwezig" of "nvt" hetzelfde geldt voor de contract- en leveranciersmanagers. Vervolgens een tesktbox "besproken " en de actiepunten. Dan moet er een microflow komen die het gespreksverslag opslaat en als PDF bijlage mailt naar iedereen die aanwezig of afwezig was. Bij contractbijlagen moet ik de bijlagen kunnen uploaden bij het juiste contract en juiste item. Indien bij een contract is op "ja" staat moet bijlage ook aanwezig zijn anders moet er ergens een attentiesignaal zijn dat dit contract actie nodig heeft, Kan iemand mij op het juiste spoor zetten? Dan zal ik je toevoegen tot mijn project. met vriendelijke groeten, Willy
asked
1 answers
0

I do not know the application so I am guessing on some parts. My assumption is that you have some entity (may be an inheritance of the system.user entity) to identify persons in the application. And I assume that there already is some attribute that is used to identify a contactperson (either an enumeration or a boolean). If so you can use an xpath to limit the persons to the persons with that condition (where the boolean is set to true or where the enumeration is contactperson or something like that).

For the creation of the document you can use a microflow. I assume the trigger is here a button for this microflow. In the microflow you create the pdf document. You need to create a document template for that. Look at the documentation here: https://world.mendix.com/display/refguide6/Document%20Templates After the creation of this document you can use that to create an email (use the email with template module for that) with this document as attachment.

The last part can be achieved with a microflow that checks if all the conditions are met. My assumption here is that this checks needs to be done when the entity is saved. So you could use a custom save microflow that first checks the condition and if all is ok commits the object or gives a message to the user that he needs to upload the contract documents.

Hope this helps a bit. If you have more question edit your original post (never try to answer your own questions) and try to be as specific as possible what the problem is that you encounter.

Regards,

Ronald

answered