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

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

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,614 on at
    RE: NAV 2018. Page type web service, field order

    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.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: NAV 2018. Page type web service, field order

    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans