Options

IF classic client FORM else if RTC page

suvidhacjsuvidhacj Member Posts: 3
edited 2010-05-20 in NAV Three Tier
Hi..
I am currently working on upgrade from NV 4.0 SP1 to NAV 2009 RTC.
The client will be using classic client aswell as RTC.

The database runs a form evertime the user logs in.
i.e., form.run is called in codeunit 1.

so now, in case the user uses RTC, the client should be able to open the Page instead of the form.

For this i need to add some code in CU 1 to recognise if client is opening the DB using classic client
or RTC.

something like,
IF Classic client then
FORM.RUN
else if RTC then
PAGE.RUN.

But How exactly??

Answers

  • Options
    lvanvugtlvanvugt Member Posts: 774
    The system method ISSERVICETIER is TRUE when on RTC and FALSE when on Classic:
    IF ISSERVICETIER THEN
      ...
    
    Luc van Vugt, fluxxus.nl
    Never stop learning
    Van Vugt's dynamiXs
    Dutch Dynamics Community
  • Options
    BeliasBelias Member Posts: 2,998
    anyway, if you code a form.run(21) (which is the customer card, for example) under page, it still works, because form 21 does exists.
    you will probably do not need to use ISSERVICETIER instruction
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    suvidhacjsuvidhacj Member Posts: 3
    ISSERVICETIER works great...
    Thanks a lot :)
Sign In or Register to comment.