web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Form with multiple data sources

(1) ShareShare
ReportReport
Posted on by 636

Hi Experts,

I have a requirement that in a form I need to have two different data sources, for example Table A and Table B. In the form design I have two tabs for each table fields. There is a number sequence set for a field in the Table A. My problem here is when I enter the fields in the first tab (Table A) and when I click on the second tab the data which I entered in Table A is getting saved. I don't want to happen this, it should save the record only when I fill the details in both the tabs and press ok command. No idea why it is saving the record when I am switching the tabs. Any help please.

Thanks 

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    Records on forms are saved whenever you move to another record on the same or different data source. You can't prevent this. Only one record at a time can remain "unsaved".

    If you need the user to complete a more complex data entry including multiple records and/or multiple tables, and save it only once the user is done, you should have temporary tables as your form data sources. When the user clicks OK, you would then save data to the actual tables.

  • D365  beginner Profile Picture
    636 on at

    Thanks Mr. Nikolaos for your valuable input. I have decided to go with temporary tables instead of actual data tables.

    May I ask you one more thing, In the same above form, can I make mandatory fields in the form from both data sources ? Imagine I use two data sources in the form Table A (Header) and Table B (grid) having a relation between them which could be an employee number. I need the user to fill the header part and  at least one record in the grid before closing the form. Can I make use of validatewrite() here ? If yes how ?

    Thanks in advance.

  • KE-25091748-0 Profile Picture
    15 on at
    Hi, do you mind telling me how you were able to show a tab for each data source? I'm in the same position, would like to add data from table 2 to the main form from table 1, as editable text areas, option sets, etc. and not lookups, but no luck.
     
    Thanks 
  • Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at
    Your description is very brief, but you didn't mention anything about the topic of this thread (how to prevent saving when switching to a different data source), therefore your question doesn't seem to belong here.
     
    Please create a new thread explain your particular scenario and problem there. Please include more details, because it isn't currently clear what you need.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans