Open with...
Technical Document







The macro OPEN_WITH_DIALOG can be used to open a document specified in the switches parameter. Some variables might already add a backslash to the variables, so if using variables such as %WIN_DIR%\file.log, might be better.


Open with... Example

<html>
   <script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
   <script language="JavaScript" type="text/javascript"> var $jQuery = jQuery.noConflict(); </script>

   <script type="text/javascript">
     jQuery(document).ready(function()
     {
         jQuery("#open_with").on("click", function (event) 
         {      
           event.preventDefault(); // Recommended to stop the link from doing anything else
           document.dispatchEvent(new CustomEvent('funcIntraLaunch',
           {
              'detail': { task: 'macro', 
                       program: 'OPEN_WITH_DIALOG', 
                      switches: '%MY_DOCUMENTS%\\file.txt'
                        } 
           })); 
         });
     });
   </script>

   <body>
      <a href="#" id="open_with">Open with example</a>
   </body>
</html>