Custom Environment Parameters

I have been trying to help out a customer recently with a nasty SSL setup for their BIP instance. Wont get into detail but although BIP is running on an SSL server its not seeing itself as running on it. Links and images in the outputs are not 'https' but rather 'http'. Having got the dev team to dig into their code, it appears to be the web server set up that is at fault.

I came up with an idea to work around the issue for now so that they could move forward with their project while the web server issue is addressed - a custom parameter.
Some of you that have turned debug on might have seen several parameter values going by in the log prefixed with 'xslt.' This is what gave me the idea.

You will need to set up the xdo.cfg file to hold the parameter. It needs to sit in the $JDK_HOME/jre/lib directory. Or under the config directory in the reports repository e.g. XMLP\Admin\Configuration for the standalone release.


Heres the beginning of mine:

<config version="1.0.0"  xmlns="http://xmlns.oracle.com/oxp/config/">
    <!-- Properties -->
    <properties>
        <!-- System level properties -->

        <!-- PLEASE SELECT A VALID TEMPFILE DIRECTORY!!! -->
        <property name="system-temp-dir">c:/Temp</property>

        <!-- PDF compression -->
        <property name="pdf-compression">true</property>

        <!-- PDF security -->
        <property name="pdf-security">false</property>
        <property name="pdf-open-password">user</property>
        <property name="pdf-permissions-password">owner</property>
        <property name="pdf-no-printing">true</property>
        <property name="pdf-no-changing-the-document">true</property>

        <!-- Custom Properties -->
        <property name="xslt.SERVER_PROTOCOL">"https"</property>
    </properties>

I have a custom property(parameter) SERVER_PROTOCOL. Notice the double quotes surrounding the value, they are a must!

Now in my template I just need to declare the parameter

<?param:SERVER_PROTOCOL?>

Notice you dont need the 'xslt.'prefix. Then I can reference the value

<?$SERVER_PROTOCOL?>

Im using this as a workaround in this case but Im sure you will come up with other uses.

Comments:

The environment refers to the air, water and land in which people, animals, and plants live. So human beings, animals, plants, air, water and soil are the main elements of the environment.

Posted by Chiropractic Marketing on February 06, 2010 at 09:33 PM MST #

This reminded me of a great chiro campaign I downloaded a month ago. Hopefully it's still available; www.starfishletter.com/LimitedAccess

Posted by Marcelle Rosencranz on April 15, 2010 at 12:31 PM MDT #

I read this on the last blog that I was at: "In the 114 years since chiropractic began, the existence of chiropractic subluxations has never been objectively demonstrated. They have never been shown to cause interference with the nervous system. They have never been shown to cause disease. Critics of chiropractic have been pointing this out for decades, but now chiropractors themselves have come to the same conclusion." I find it funny how everyone bashes on Chiropractors claiming that "it is fake, just like acupuncture". And yet, when someone hurts their back, the same people dont refer them to a surgeon, they simply say "You should see a Chiropractor" Morons.

Posted by The Chiropractor Guy on October 06, 2010 at 07:21 AM MDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Follow bipublisher on Twitter Find Us on Facebook BI Publisher Youtube ChannelDiscussion Forum

Join our BI Publisher community to get the most and keep updated with the latest news, How-to, Solutions! Share your feedback and let us hear your voice @bipublisher on Twitter, on our official Facebook page, and Youtube!

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today