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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Lines Subpage Current record jumps to previous record automatically

(3) ShareShare
ReportReport
Posted on by 112
Hi Experts,
 
Hope you are doing fine.
 
I am trying to update header field from OnModify trigger of lines table in which  Header.OnModify(true) of Header Table.
 
Now we have two things which are :
 
We observed that a different extension have a table extension of Lines Table containing some logic in OnBeforeInsert trigger and in that they are modifying a text field of Header Table, It is working fine.
Now we also develop another table Extension for Lines table with OnInsert/OnBeforeInsert trigger and trying to update a customized datetime field of Header , It is updating , but what is happening on Lines subPage , when we come to next line It triggers OnModify trigger of Previous line (if change happened) and after completing trigger , Lines record jumps to previous line automatically.
 
I have attached video for more understanding .Please suggest something.
 
I have some queries in my mind (don't know , they can be reason behind it ) which are :
 
Two table ext having onBeforeModify and updating header table will create this issue and same for OnAfterModify?
Is using OnbeforeModify/OnInsert/OnAfterInsert on second extension will create this issue ?
 
This is related to LS but issue related to BC. Please Help..
 
Thanks in Advance.
 
I have the same question (0)
  • Suggested answer
    Sagar Dangar, MCP Profile Picture
    799 Super User 2025 Season 2 on at
    Hi,
     
    Modifications only writes on database level if you go to second line. Here you might used Modify(true) and fields validation , it might be cause.
     
    Try use Modify() only and use assignment only ( Do not use Validate()) and check
     
     
  • Suggested answer
    YUN ZHU Profile Picture
    95,763 Super User 2025 Season 2 on at
    Very strange, try writing it on the page field, and then add the Page.Update([Boolean]) Method, see if this problem still exists.
     
    Thanks
    ZHU
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,150 Super User 2025 Season 2 on at

    Modifications are committed to the database only when you move to the next line. If you're using Modify(true) along with Validate(), that could be causing the issue.

     

    Try using just Modify() without Validate(), and assign the values directly instead. Then test the behavior again.

     

    ✅ Mark this answer as verified if it helps you.

  • Unanonyms.5974 Profile Picture
    112 on at
    Thanks Everyone,
     
    will try to do from Page side with onModify trigger . Could not say , it will work , but it's very strange.

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

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 2,116

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans