1 Reply Latest reply: Oct 29, 2012 2:43 PM by 970471 RSS

    Environment variables

    929656
      I am creating an internal website that has a page with a link to a different internal website. The target website is developed in a different instance of UCM. As we move our development to different environment, we will have to change our URL to point to the target website in that environment. For eg, the link will link to http://unt-other-app.com/other in unt environment and http://sys-other-app.com/other in sys environment.

      I am thinking of configuring some system variable and access it through IDOC script. How can I access system variables from IDOC script?

      I tried googling around but did not find anything near what I want to do. Can someone point me to some helpful pages? Thanks.
        • 1. Re: Environment variables
          970471
          If the environment variable name is "MyCustomVariable", then you can access it using Idoc Script using <$#env.MyCustomVariable$>.

          #env - Retrieves the value of the specified variable from the environment settings. Does not send an error report to the debug output if the variable is not found.

          http://docs.oracle.com/cd/E28389_01/doc.1111/e10726/c02_application.htm#sthref77

          http://jonathanhult.com