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 :
Microsoft Dynamics NAV (Archived)

NAV 2018. Page type web service, field order

(0) ShareShare
ReportReport
Posted on by 3,013

I was wondering how does NAV handle the order of fields in a Page web service.

For example, I'm working with the Sales Order Page, that has the Sales Order SubForm SubPage. Update Method.

When you update a Sales Order Line, and for example you fill in the Item No., some fields like the location code are blanked out. This is one of the problems I'm having. When I update a Sales Line, the location code is empty.

How do I ensure that Location code is filled in, only after the No. field is validated? In what order does the Page web service validate the fields?

On conclusion, when updating a Sales Line from using a Page web service, the Location Code is blank. I need to avoid this.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    The NAV web service executes the business logic defined on NAV (C/AL), so it's here were you have to check or debug. I think that the location code is blank because you don't have a location code set in the Sales Header or associated to the Item card.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Ghetz,

    The NAV Webservice will validate the fields based on the order you have listed on the page. For example if the location code is after No. then it will override after the No. Validate if there is any logic in the Validate to populate the Location Code.

    It executes the validation logic on the Table/Page but the sequence is followed based on your page. I have encountered this issue recently and have to arrange the fields on the page to avoid overriding other field value.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans