How is your experience with the OutSystems Community?
12
Views
3
Comments
MapEmai with document
Question

Hi All,

I want to map the email with selected document,

1.Add email will add the email

2.All documents to be shown at right side.

3.I can add multiple emails in the email or can add single email.If add single email then based on email selection I want to select the document so email will have those documents.

4.If I add multiple emails in the email,then for all those email the documents to be mapped,

5.On each selection of email,The right side document section to be reset again.

Only emails to be added and not the document (document section is common for all emails.

Can anyone please check the attached oml and suggest the changes

Want to reset again the document section on each selection of email and want to map the email with respective docs.

Regards


CheckbocListdocs.oml
UserImage.jpg
Preeti zade

Hi All,

Can any one please check,I want to map the email with the documents,So that document to be sent to those emails.

On selection on email the documents section to reset and again can select the documents,

Diffrent emails can be added and again document section to reset and can add multiple documents,

Table belwo wants to print the list email with their documents,

PFA oml ,The selected list of docs not populating wrt email.


CheckbocListdocs1.oml
2026-02-26 06-29-24
Rahul
 
MVP

Hi @Preeti zade ,

The implementation is not aligned with the requirement.

The solution should have a single Email input and a dynamic list of Documents.

Suggested implementation:

  • Keep the Email field outside the document list section so it is entered only once.

  • Create local variables for SelectedDocumentType and DocumentName.

  • On clicking the Add button:

    • Validate that both fields are populated.

    • Create a new record with DocumentType and DocumentName.

    • Use ListAppend to add the record to the DocumentsList.

    • Refresh the table/list bound to DocumentsList.

    • Reset SelectedDocumentType and DocumentName to their default values.

This allows users to add multiple documents one by one for the same Email address. The table below should display all added documents, and the final Submit action should save the Email along with the complete DocumentsList.

 

UserImage.jpg
Preeti zade

Hello Rahul,

I need to add different email as well to bind each email with their douments.

So have added add button and list will append for emails

On change of each email the document section to refresh and to add the selected documents for that email.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.