2 Replies Latest reply on Jun 26, 2011 8:57 AM by VanceMorrison

    Web Viewer Calculation Question

    shogun

      Title

      Web Viewer Calculation Question

      Post

      Hello - 

       

      Have a question about a calculation.  

      In my Contacts layout I want to be able to go into my "Map's" tab and depending on which radio button is clicked "Work" or "Home"  I want Google maps to launch in the web viewer and show the driving directions for that contact.  

      I can get this to work with two separate calculations, one for "driving directions to work address" and "driving directions to home address" however I would like for this to be tied to the radio buttons,  so I end up with one calculation that works for either depending on which one is selected.  

       

      Here is an example of the calc that displays Google driving directions from our office to the selected work address. 

       

       

      PrintGoogleDirections ( 

       

      T13_Contacts_SHOWS||xJoin||::setup address ; 

      T13_Contacts_SHOWS||xJoin||::setup city ; 

      T13_Contacts_SHOWS||xJoin||::setup state ; 

      T13_Contacts_SHOWS||xJoin||::setup postal code ; 

      T13_Contacts_SHOWS||xJoin||::setup country ; 

       

       

       

      T13_CONTACTS::Address_WorkStreet ; 

      T13_CONTACTS::Address_WorkCity; 

      T13_CONTACTS::Address_WorkState ; 

      T13_CONTACTS::Address_WorkZip; 

      T13_CONTACTS::Address_WorkCountry)