Hello Poornima,
You would probably have to create an active link with a set fields action using 
the $PROCESS$ keyword to parse the ar.ini file, located in the AR System\home 
directory on the client.  For example, if the time zone is set to "GMT+5:30  
(IST) Asia/Calcutta", you should find the following line in the ar.ini file:

  TZ=Asia/Calcutta

(It looks like the ar.ini file only stores the name of the time zone, not the 
actual numerical offset from GMT).

You could use a set field value similar to the following to extract this 
information to a text field:

  $PROCESS$ cmd /c findstr "TZ=" "C:\Documents and Settings\All 
Users\Application Data\AR System\home\ar.ini"

If you just want to extract the name of the time zone (e.g., "Asia/Calcutta") 
and drop the "TZ=" prefix, you can get a little fancier:

  $PROCESS$ cmd /c for /f "tokens=1-2 delims==" %a in ('findstr "TZ=" 
"C:\Documents and Settings\All Users\Application Data\AR System\home\ar.ini"') 
do @echo %b

(Of course, you could also use the SUBSTRING function in ARS if you prefer).

If your clients have the AR Home folder installed to different locations other 
than the 'All Users' profile, you may need to make this more dynamic.

Also, you should probably add the following statement into the 'Run If' on the 
active link, so that it does not run in the Mid-Tier environment:

  $CLIENT-TYPE$ != 9

Hope this helps,

Thomas

  ----- Original Message ----- 
  From: poornima shanthi 
  Newsgroups: gmane.comp.crm.arsystem.general
  To: [email protected] 
  Sent: Tuesday, June 17, 2008 3:01 AM
  Subject: Time Zone Related


  ** Hi ALL,



        When a user selects from the menu Tools > Options > Locale > Time Zone 
and selects a time zone other than the PC default, that selected time zone 
needs to be populated in one field.  How is it possible? 



        This is not for preference server option where i can take from the AR 
System User preference form. I am not Using Preference server option here.



        Any suggestions on this?





        Thnks,

        Poornima
       


------------------------------------------------------------------------------
  Bollywood, fun, friendship, sports and more. You name it, we have it. 
__Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" html___

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to