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 :
Small and medium business | Business Central, N...
Suggested Answer

Trouble with Lists

(0) ShareShare
ReportReport
Posted on by 22

So Im working on a Table which I created. It displays the users' vacation hours (custom fields I put in the resource groups). I've made a repeater to show all the resource users I have and give the ability to add value to increase each user's vacation hours. (See pic below)

pastedimage1682359079002v1.png

The No., Name, and Vacation balance are pulled from the resource record, and Add/Subtract Vacation Balance is a new field.


When I enter the values for each user and submit, the final value I entered gets updated for each of the users

pastedimage1682363905789v1.png

I'd like it to separate each line and update all of the values on submit, but I'm having difficulty progressing. Any help would be great.
Do I need to create a temporary table or something to make this work?

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    98,421 Super User 2026 Season 1 on at

    Hi, If this is a List page, this should not be happening. You can refer to the standard Payment Terms or Payment Methods page.
    Is there some code in the trigger of the field, table, or page?

    Thanks.

    ZHU

  • bcaron1000 Profile Picture
    22 on at

    I had some code on the page  for processing,

    area(Processing)

           {

               action("Submit Changes")

               {

                   ApplicationArea = All;

                   trigger OnAction();

                   begin

                       //add confirmation yes no

                       currentUser := Database.UserId;

                       todaysDate :=   System.CurrentDateTime();

                       repeat

                           leaveChanges.changeID := 0;

                           leaveChanges.changedBy:= currentUser;

                           leaveChanges.changedResource:=Rec."No.";

                           leaveChanges."Date Changed":= todaysDate;

                           leaveChanges."OldVacationHours":=Rec.myVacation;

                           // leaveChanges."OldSickHours":=oldSickHours;

                           leaveChanges."Changed Vacation Amount":= addVacation;

                           // leaveChanges."Changed Sick Amount":= addSickHours;

                           leaveChanges."NewVacationHours" := totalVacation;

                           // leaveChanges."NewSickHours" := newSickHours;

                           leaveChanges.Insert(true);

                           Rec.myVacation := totalVacation;

                           Rec.MODIFY(TRUE);

                       until Rec.Next() = 0;

                   end;

               }

           }

    Im guessing as the value is only one value that is my issue

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,850 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,045 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans