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)

Navision not showing imported/updated data via sql procedure until refreshed

(0) ShareShare
ReportReport
Posted on by

HI All,
I am Inserting and updating data( lot of Item data ) in NAV Database Using Sql stored procedures.
When I tries to run the page in NAV it does not show me data in NAV until I press F5, Refresh button or restart Navision Instance.

Every nav user must press f5 to see update data or just one and navision will update it for everyone?

Is there some solution how to avoid this? CurrPage.Update on AfterGetRecordTrigger( Error : A transaction must be started before changes can be made to database )  or OnOpenPage (Error : Another user  has modified record for this Item after you retrieved  it from database......) doesnt work and WSHShell.SendKeys('{F5}'); solution isnt really good.


George

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at

    How SQL procedure is running ? It is run using SQL management studio or run from Navision ???

  • George Husek Profile Picture
    on at

    SQL procedure is running from SQL Agent, which run user from Navision function

  • mmv Profile Picture
    11,471 on at

    Hi,

    Is the SQL procedure triggered by user action?  If that's the case, have you tried using the CurrPage.UPDATE statement after the SQL trigger.

  • George Husek Profile Picture
    on at

    User have to push button od Item list,I tried CurrPage.UPDATE  on openPage or aftergetrecord trigger on ItemCard but i gor error.

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    What error have you faced? Can you put a screenshot here?

  • Suggested answer
    Community Member Profile Picture
    on at

    It would be safer to run through a report your sql procedure (it requires a brunch of lines in order to call stored procedure via NAV), and to call an update once report action is completed

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