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
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.
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,028
André Arnaud de Cal... 878 Super User 2025 Season 2
Sohaib Cheema 579 User Group Leader