mibuso.com

Microsoft Business Solutions online community
It is currently Wed Jun 19, 2013 10:51 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: RTC problem with if Codeunit.run then;
PostPosted: Fri Jun 01, 2012 11:49 am 
Offline

Joined: Tue May 09, 2006 11:37 am
Posts: 14
Location: Denmark
Country: Denmark (dk)
Hi
Someone at my company has done a "run-time" (Client) upgrade of a Customers' NAV to R2... So no objects were changed...

Suddenly a certain button doesn't work anymore in RTC... If I run the functionality in the Classic client it works perfectly :-)

I have tested the functionality and If I change a certain line from
if Codeunit.run(XXXX) then;
to
Codunit.run(XXXX);

The code in the codeunit runs again (without any errors) in RTC... How can that be?

I am getting a little anxious because the if codeunit.run then; are used many places...

Thanks.


Top
 Profile  
 
 Post subject: Re: RTC problem with if Codeunit.run then;
PostPosted: Fri Jun 01, 2012 12:42 pm 
Offline

Joined: Wed Apr 07, 2004 9:39 am
Posts: 340
Location: Bangalore
Country: India (in)
Hi,

That is very strange.

It is the OnRun and it cannot be related to a return from a function. So, both the code should run in exactly the same way. If it was a function inside the CodeUnit which is returning a true or false, there may have been some different behavior after the return is captured and validated. But in this case there should not be anything different whether it is If Codeunit.Run then or Codeunit.Run. :?

Rgds,

Chn


Top
 Profile E-mail WWW  
 
 Post subject: Re: RTC problem with if Codeunit.run then;
PostPosted: Sat Jun 02, 2012 8:02 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12266
Location: Brno
Country: Czech Republic (cz)
Were the objects recompiled after the upgrade? This could be critical step since NAV 2009...

_________________
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.


Top
 Profile E-mail WWW  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: