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

Notifications

Announcements

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
    96,256 Super User 2025 Season 2 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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,638

#2
YUN ZHU Profile Picture

YUN ZHU 837 Super User 2025 Season 2

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 704 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans