Hi All,
I have 1 customization using System.Data.SqlClient.SqlConnection
insert and update data is successfull
but the problem is sometimes when i open the page it will not changed immediately.
after i press refresh then it will change.
i have added in OnOpenPage ()
Currpage.update;
but still not working.
any idea what should I add?
0
Answers
When that said, you can probably use this command: https://docs.microsoft.com/en-us/dynamics-nav/selectlatestversion-function--database-
...to fix it, but it will still be the wrong approach as it will hurt performance...
this one i push data from database A to Database B
if only 1 database, i can use Changecompany
Depending on you NAV version, you can actually use webservice between different NAV databases.
I will allways agree with @lynge, going throw SQL is not a good idea.
But to help with your current problem, you could try to use SELECTLATESTVERSION
https://docs.microsoft.com/en-us/dynamics-nav/selectlatestversion-function--database-
But it would hurt preformens
thanks for the advise.
Selectlatestversion works for me.
thank you so much !
I have Added this code
but when i drilldown i got this error message.
do i need this --> CurrPage.Update();
in my code
Thanks
i used this code in the page
When i drilldown from jetreport, it supposed to open this page
but it will show error message