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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to validate table fields from Pages.

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a drop down in a subpage of a document. I want to pre-select a specific value when I create a new page. I tried InitValue property of field in table and also assigning value to respective control in OnNewRecord trigger of page. Both methods seem to work but I also need to call the OnValidate trigger of field because I am calculating other fields in this OnValidate trigger.

Is there any better way other than the two methods I mentioned above, if not then how can I call OnValidate trigger of field from line page.

Thanks,

*This post is locked for comments

I have the same question (0)
  • Verified answer
    CDsilva Profile Picture
    4,188 on at
    RE: How to validate table fields from Pages.

    Hi Zulfi,

    Use validate function to call OnValidate trigger. 

    valid.JPG

  • Verified answer
    Suresh Kulla Profile Picture
    49,257 Super User 2025 Season 2 on at
    RE: How to validate table fields from Pages.

    On NewRecord trigger is the right place to have an initial value, if you use validate function it should execute the validate trigger. Check Sales Order Subform page It calls InitType function on the new record to set Type

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans