2 Replies Latest reply on Apr 18, 2019 11:01 AM by Frank Hoffmann-colognedata

    How to check if a form is started via FSAL

    dirkvanhaute

      Hello,

       

      Release notes don't contain anything about determining the startup method. 
      Is there a way to determine which way Forms was started ?  

      I know we could do it with a JPC but I would prefer builtin code.

      Is the WEBUTIL_SEPARATE_FRAME any helpful ?  It is mentioned in the release notes, but nowhere in the documentation (12..

       

      Regards,

      Dirk

        • 1. Re: How to check if a form is started via FSAL
          Matthew D.

          Use built-in get_application_property to get config name from formsweb.cfg an application is using.

           

          Regards

          • 2. Re: How to check if a form is started via FSAL
            Frank Hoffmann-colognedata

            Dirk,

             

            the application can run in FSAL or browser plugin from the same configuration. I would suggest

            to add the parameter "fsalcheck" in the browser configuration (webutiljpi) as additional parameter

            (use static value fsalcheck=FALSE)

             

            Then you can check it during runtime.

             

            fsalcheck=TRUE        you run FSAL

            fsalcheck=FALSE      you run HTTP Plugin

             

            vch_is_fsal := upper(webutil_browser.getappletparameter('fsalcheck'));

              

            if upper(nvl(vch_is_fsal,'FALSE')) = 'TRUE'

              then

                 message('You run FSAL');

               else

                 message('You run http plugin');

            end if;

             

            Also it is helpful to check if you run FSAL on a 32Bit Java Archiv or Plugin

            webutil_clientinfo.GET_SYSTEM_PROPERTY('os.arch') <> 'x86'

             

            Frank