Absolute/Relative Path for elements in xml to rtf template.
Hi all,
I have a small doubt, can anyone help me come out of this issue.
I developed a BI Publisher Report using RTF Template and I am addressing XML elements which are out of the group in the XML file inside the for loop in the RTF template. I am able to get the body of the table but with all blank values on the output.
I thought to give the full path ie., Absolute path instead only the element name, can anyone suggest me how to address an element outside the group in XML file from a for loop in the RTF template. Is it possible to address like that.?
Thanks In advance.
Hi Tim,
I am using BIP 10.1.3.3.2. I am able to access system variable CURRENT_SERVER URL.
Steps:
<?param@begin:CURRENT_SERVER_URL?>
<xsl:value-of select="$ CURRENT_SERVER_URL"/>
CURRENT_SERVER_URL is getting printed in BI Publisher. Value displayed is http://xx4697.xxx.co.in:9704/xmlpserver.
Now we are importing xsl into RTF template. File aaa.xsl is stored at [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app]
We have hardcoded the path for XSL in RTF. The path is <?import: http://xx4697.xxx.co.in:9704/aaa.xsl?>
As we want to set dynamic path we changed hardcoded xsl path to <?import: {$CURRENT_SERVER_URL}/../aaa.xsl?> but it is not working. Sometimes BIP is taking local path of MyDocuments folder and sometimes Desktop path. If I put that XSL file in MyDocuments folder or Desktop, it is working fine. But ideally it should refer [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app] path...
Thanks,
Amit D
Similar Messages
-
Css/js relative path for embedded server
We have recently begun using relative paths for css and js files in our deployed applications:
<link href="../../resources/css/global3.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../../resources/script/globalScript.js" type="text/JavaScript"></script>
I cannot figure out where to put the resources folder on my local machine so the pages will link correctly when running a project on my embedded server in JDev. Can anyone please help?Hi,
the embedded OC4J has its configuration files at
\jdeveloper_installdir\jdev\system\oracle.j2ee.<version>\embedded-oc4j
However, if you use relative addressing then web applications try to find them relative to the public_html directory of the Viewlayer project
Frank -
Get the relative path for java class
How to get Relative path for java class which is inside in web-inf directory in webapps
ajay.manchu wrote:
Hi gimbal2,
My Requirement is i need to run a java class from batch file,when i created batch file in that i need to mention the complete path of the java class,so instead of mentioning that i want to provide only java class name,thats why i asked that one..
can u help me regarding that....
Thanks in advanceI wonder how that would work then. Let's take a fictive example. You have a class com.mycompany.myapp.Foo. This would mean that the class is stored in some directory like this:
c:/webrootdir/myapp/WEB-INF/classes/com/mycompany/myapp/Foo.classTo be able to run such a class from the commandline using Java, you would have to invoke this command:
java -cp c:/webrootdir/myapp/WEB-INF/classes com.mycompany.myapp.FooHow would knowing the exact path to this class help you? -
Using relative path for in file/ftp adapter
Hi All,
How to have a relative path for file/ ftp adapter's inbound/outbound operation?
Example: Consider $ORA_HOME = /home/oracle --> This environment variable can be different on different machines
i want to drop a file in to $ORA_HOME/folder1/folder2 (Or poll for a file).
<partnerLinkBinding name="FTP">
<property name="wsdlLocation">FTP.wsdl</property>
<property name="out_dir" type="LogicalDirectory">What do i write here???</property>
<property name="retryInterval">60</property>
</partnerLinkBinding>
if i cant configure this in partner link section or in activation agent sction, how else do i achieve this?
i am using 10.1.3.* version.
Thanks in advance.
Roshan.You can achive it using the deployment scripts if the directory is changing on the basis of the environment
If you want to change at run time than you can use the jca properties to set using the variables at runtime.
Regards,
Ajay -
Relative Path for Jquery into Content Editor Web Part
Hi;
I'd add a Content Editor Web Part (CEWP) to a web part zone. I'd edit that CEWP in HTML view and add my script which load Jquery and my question : how to use a relative
path for Jquery :
<SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true"
Localizable="false" />
<script src="/sites/XXX/Style%20Library/Scripts/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
My code
</script>
RegardsHi;
Firstly, I have used :
<script src="/Style%20Library/Scripts/jquery.min.js" type="text/javascript"></script>
But any result and any change and If I add /Sites/XXX/ : it works correctly ?
My code is :
<SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true"
Localizable="false" />
<script src="/sites/XXX/Style Library/Scripts/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(displayTitle, "SP.js");
var site;
var context;
function displayTitle() {
//Get the current client context
context = SP.ClientContext.get_current();
//Add the site to query queue
site = context.get_web();
context.load(site);
//Run the query on the server
context.executeQueryAsync(onQuerySucceeded, onQueryFailed);
function onQueryFailed(sender, args) {
alert('request failed ' + args.get_message() +
'\n' + args.get_stackTrace());
function onQuerySucceeded(sender, args) {
$("#layoutsTable table th span").html("Bienvenue sur le site " + site.get_title() + " - Direction Technique");
$("#zz17_V4QuickLaunchMenu ul.root li span:contains('Biblioth')").parent().parent().hide();
$("#zz17_V4QuickLaunchMenu ul.root li span:contains('Listes')").parent().parent().hide();
</script> -
Page Break In XML Publisher RTF Templates Are Not Working
Please refer to the Metalink Doc below:
Subject: Page Break In XML Publisher RTF Templates Are Not Working.
Doc ID: 559111.1
Type: PROBLEM
Modified Date: 24-MAR-2008
Status: MODERATED
In this Document
Symptoms
Cause
Solution
References
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
Applies to:
Oracle XML Publisher - Version: 5.6.3
This problem can occur on any platform.
Symptoms
Using XML Publisher version 5.6.3 in 11.5.10.
Find <?split-by-page-break:?> syntax is ignored.
EXPECTED BEHAVIOR
Expect page breaks to occur at point set by "split-by-page-break:" code.
STEPS
The issue can be reproduced at will with the following steps:
1. Create a template.
2. Call split-by-page-break: inside a loop.
3. Output is not formatted correctly, page break call is ignored,
Cause
Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
Fix is in ScalableStringList.java version 115.4.
This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
Solution
To implement the solution, please execute the following steps:
1. Apply Patch 6165466 when it is released.
2. Test your report.
References
Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
Keywords
XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
Help us improve our service. Please email us your comments for this document. .Hi JDev,
Check this out:
http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
Hope this might help.
Thanks -
Use Relative Path for Photoshop Action?
I have a Photoshop Action that is programmed to open an existing file located in a specific directory. The path to this directory is an absolute path, i.e.:
C:\Program Files\Photoshop Actions\filename.jpg
As long as the Action can find the file in the specified absolute path, everything works fine.
My problem is that if someone tries to run this Action on a different computer (like a Mac), the path specified in the action does not exist and the Action will not work.
The simple solution to this would be to make the action open the file located at a relative path. This way no matter what computer the action is run on, it will always be able to find the file.
Unfortunately, I don't think Photoshop Actions allow relative paths. Does anyone know if using a relative path in an action is possible?
Failing this, how would I use a Photoshop Script to somehow direct the Action to find the correct location of the file? Or is there a better solution?The idea that I use in the xtools installer and else where is this:
1) Convert the action file to XML.
2) Package the XML file and the apps/ActionFileFromXML script with your stuff.
3) An installer script will do a 'replace' (or whatever) on the XML file so that the paths are converted to whatever is needed.
4) The new XML is saved and then converted to a .atn file which is then loaded.
There is an xtools forum at ps-scripts.com that may have some info in addition to the PDF file that comes with the package.
-X -
How to specify relative path for background image in xsl
Hi,
I am generating a PDF from Apcahe FOP. I have an xsl for that, in the xsl fo:block I am displaying a background image. When the image path is absolute like..C:\image\logo.png it works fine. But I want to have the image in my WebContent\images folder and my xsl file is in WebContent\xsls folder. So when I try giving the relative path as ../images/logo.png, the image is not displayed.
Can anyone tell how to do this???
Thanks,
Sanjeev.I have a fo:block like this :
<fo:block border-style="solid" border-width="0.2pt" text-align="left"
background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
font-size="8pt" font-weight="bold" color="white" padding-top="1pt"
padding-bottom="1pt">
<xsl:value-of select="tr/td/span" />
</fo:block>In the above code you can see that the the background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
has been given as absolute. The images folder is in my WebContent directory. I want this path to be relative to the context of my application , something like background-image="url('../images/table_header_center.png')".
Thanks.
sanjeev. -
Relative paths for images upset by forwarding requests
Hello World.
I am using a web app deployed in Weblogic 5.1 with service pack 8.
I have hit a problem which puzzles me. When I forward a request from
one JSP to another (say from A to B) the web server seems to take the
URLs of the images on the served file (B) relative to the path on the
calling file (A). Here's a detailed explanation...
Suppose I have a the web app structured as follow
/oddApp/launch/A.jsp
/oddApp/B.jsp
/oddApp/images/tick.gif
Page A simply stores its request URI and forwards its request to page B
<jsp:forward page="/B.jsp" />
Page B displays its requestURI, contextPath and servletPath. It also
attempts
to show three images
<img src="images/tick.gif">
<img src="../images/tick.gif">
<img src="/images/tick.gif">
When I invoke page B directly, the first image is shown, the others are not.
When I invoke page A, it forwards to B and the second image is shown, the
others are not.
In each case the URI, contextPath and servletPath are correctly displayed
with regard to page B.
URI = [oddApp/B.jsp]
contextPath = [oddApp]
servletPath = [B.jsp]
The URI in A.jsp is also correct (i.e. /oddApp/launch/A.jsp).
The search for the images seems to be relative to the original URI (i.e. not
the URI used to forward), which strikes me as daft. It means that page B
must be aware of where it is being called from. It is perfectly plausible
that
relative paths which suit when called from one location are incorrect when
called from another.
I had thought that including the leadling slash (as shown as the third
image)
would cause the search relative to the document root (/oddApp/), but this
appears not to be the case. The search is done relative to the root of the
server not the web app.
Adding jsp mappings in the deployment descriptor of the web app does not
help (I had thought it a long shot anyway).
Does anyone have any thoughts on this?
PHiL
i face the same problem (WinNT, WLS6.0): my wep app has a contextRoot " root " which makes it react to the URL: http://host:port/root /: it is this folder which will be used as a basis by the Web server But in the jps I use a relative URL for images: / images/toto.gif : it works very well when I deploy my jsp out of a Web-app by setting a document.root to the weblogic web server.On the other hand, once deployed in a Web-app, images are not found because the default path of the browser is http://host:port, without the context root of the Web-app! In other words, my war has images/*.gif in its root but when /images/toto.gif is resolved in a jsp, as the relative URL is not prefixed by my context-root, the image is not search in the war! actually, if I type http://host:port/root/toto.gif, my image appearsany clues? an alias on the web server? a setting in web.xml/application.xml and their weblogic equivalent files?
-
Hi ,
This is my requirement. In the ESS Personal information overview page, I can add a HTML file to the additional information section.
I have created a HTML file by creating a web module and enterprise application and deployed the same through NWDI.
I declare a resource wher ei mention the path. Here i specifed the complete path of the html file ... like
http://hostname:portname/addinfo/addinfo.html. Which i know is a wrong thing to do since when i move the html filel to the production system it will still be accessing the html file in the dev system.
How do i give the relative path here so that the html file accessed is from the production system when we go-live.
Please suggest.
regards
samHi,
One simpler solution is to use an AppIntegrator iView, as explained in the weblog <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2786">Integrating your Web Front-ends into the SAP Enterprise Portal using the Application Integrator</a>. It worked well for us.
You can remove the user authentication part in the portalapp.xml if you don't need it.
Regards,
Martin -
Relative path for servlet property file.
I have the following java file. When I use the absolute path for the configFile, it works. I would like to know how I could use it as relative path as in installation, the name of the directory could change.
How do I fix the problem? Thank you.
---------------------- LoadProperties.java ----------------
import java.util.*;
import java.io.*;
public class LoadProperties {
private String driver="";
private String dbURL="";
private String login="";
private String password="";
static public void main(String[] args) {
LoadProperties lp = new LoadProperties();
} // main
public LoadProperties() {
//String configFile = "C:/1LMS/web-app/WEB-INF/config/db.properties";
String configFile = getClass().getResource("config/db.properties").toString(); <--- This line could not find the db.properties file.
Properties Prop = new Properties();
try {
FileInputStream configStream = new FileInputStream(configFile);
Prop.load(configStream);
configStream.close();
} catch(IOException e) {
System.out.println("Error: Cannot laod configuration file ");
driver =Prop.getProperty("driver");
dbURL = Prop.getProperty("dbURL");
login = Prop.getProperty("login");
password = Prop.getProperty("password");
printResult();
} //Load Property
private void printResult() {
System.out.println("Driver = " + driver);
System.out.println("dbURL = " + dbURL);
System.out.println("Login = " + login);
System.out.println("PSWD = " + password);
} // classhi there,
had the same problem... you need to use following API:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
In your case something like that:
// get the servlet context
ServletContext context = getServletContext();
// directory name where the file is located
String realPath = context.getRealPath("/config");
// get real path to your file
String propertyPath = real+"filename.txt";
hope that helps!!
minu -
How to create a relative path for Flash video on a CDROM
Hello - I need to distribute a web site to a client on a
cross-platform Hybrid CDROM so that they can edit and make
adjustments. This website also includes 2 flash videos that need to
be included on the CDROM.
My problem is this: I encoded the video in the Flash Encoder
app and brought them into the main Flash app for conversion into
swf files. I also used the media controller parameter to add a
control skin to the movies. I now have 2 swf files associated with
the flv video file, and I understand that all 3 of these must stay
together for the video to work properly. The video plays correctly
along with the controller skin on my Mac however only the
controller shows up but no video on the CDROM. I believe that this
has something to do with absolute vs. relative file paths for the
video flv file to the swf controller file.
I do not know how to change this path - I know "where" to
change it within the controller parameter options box but do not
know what syntax exactly to place here. How do you specify a
relative path here? When I try to do it I get an error saying that
the flv file cannot be found.
I am trying to use the following syntax: /video/welding.flv
where video is the name of the folder and welding is the name of
the file. I have done numerous Google searches on this subject and
stil cannot find an answer, so any help is appreciated.OK - I assigned the FLVPlayback component the instance name
of videoPlayer to keep it simple. And I copied the above code into
an Actions - Frame on Frame 1. FYI - The name of the video has been
changed from welding to Timet Sponge.
Now I get the following error messages:
**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 1: 1119:
Access of possibly undefined property contentPath through a
reference with static type fl.video:FLVPlayback.
videoPlayer.contentPath = "";
**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 2: 1120:
Access of undefined property _global.
_global.videoURI = "video/Timet Sponge.flv";
**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1120:
Access of undefined property _global.
videoPlayer.contentPath = _global.videoURI;
**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1119:
Access of possibly undefined property contentPath through a
reference with static type fl.video:FLVPlayback.
videoPlayer.contentPath = _global.videoURI;
**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 1: 1119:
Access of possibly undefined property contentPath through a
reference with static type fl.video:FLVPlayback.
videoPlayer.contentPath = "";
**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 2: 1120:
Access of undefined property _global.
_global.videoURI = "video/Timet Sponge.flv";
**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1120:
Access of undefined property _global.
videoPlayer.contentPath = _global.videoURI;
**Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1119:
Access of possibly undefined property contentPath through a
reference with static type fl.video:FLVPlayback.
videoPlayer.contentPath = _global.videoURI;
Total ActionScript Errors: 4, Reported Errors: 4 -
Relative path for images in RTF templates
Hi everybody!
When I insert an image in a RTF template, I put its path into the web dialog, in order to see correctly the picture when I open the report from the xmlp server, in this way: url:{"http://servername/analytics/res/Images/image.bmp"}
How can I make this path relative, in order to see the images even if the server name changes?
Thanks so!
FrancescoHi Tim,
I am using BIP 10.1.3.3.2. I am able to access system variable CURRENT_SERVER URL.
Steps:
<?param@begin:CURRENT_SERVER_URL?>
<xsl:value-of select="$ CURRENT_SERVER_URL"/>
CURRENT_SERVER_URL is getting printed in BI Publisher. Value displayed is http://xx4697.xxx.co.in:9704/xmlpserver.
Now we are importing xsl into RTF template. File aaa.xsl is stored at [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app]
We have hardcoded the path for XSL in RTF. The path is <?import: http://xx4697.xxx.co.in:9704/aaa.xsl?>
As we want to set dynamic path we changed hardcoded xsl path to <?import: {$CURRENT_SERVER_URL}/../aaa.xsl?> but it is not working. Sometimes BIP is taking local path of MyDocuments folder and sometimes Desktop path. If I put that XSL file in MyDocuments folder or Desktop, it is working fine. But ideally it should refer [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app] path...
Thanks,
Amit D -
Relative Path for Attach menu forms or icon file
How should i able to provide relative path while
attaching Forms,menu or icon files in the Form application.
So that it can be easily portable
Thanx in advance
UpendraYou can use Regedit and do it manually. I am not sure but it seems to me that using Software Packager for deploying application can also change registry environment variables.
-
Relative path for DllPath configurion settings
I want to put oracle client dlls in project directory and to use relative path to point to unmanaged dlls but in this version of odp.net I cann't .
Is it possible to add this feature? For now I will copy the DLLs in application output directory.The Oracle .NET feature requests are tracked here:
https://apex.oracle.com/pls/apex/f?p=18357:46:7715104559110119
Any OTN member can add their own feature request to be voted on by the community. This Oracle .NET feature requests are reviewed periodically by Oracle Development and PM when planning future ODAC releases. On a regular basis, Oracle reviews all the requests and decides which ones to implement.
If you would like your feature request considered, please add it here. Be as clear and concise in your description so that others, including the developers implementing your feature request, know exactly what you are requesting. Your feature request is straightforward, so I don't see a potential problem.
Don't be discouraged if your feature doesn't receive a lot of votes. The most popular features are not automatically incorporated into the next future release. We pick and choose features based on their usefulness, popularity, ease of implementation/testing, Microsoft's product direction, and other factors when deciding what features to include.
Maybe you are looking for
-
Iphoto won't recognize my memory card anymore (since a month ish?) but the mac itself does and puts the icon on the desktop. How do I get it to recognize it again?
-
Static File in Exploded Application
I am trying to read a gif from an exploded application. The exploded application is recognized ( I can view it's index.html page. ), but I can not view a gif that is part of the app. Any suggestions? Is there some special configuration that is necess
-
Why app in ios6 crash frequently and lag .
why app in ios6 crash frequently and lag ios5.1 didnt' happen. Plz fix it OK To bad to saw it. And loss ours trust ios is best than others ... Maps is still bad to use. Search result is wrong. Plz fux ios6 OK To many bug.... Use 4S
-
I recently switched from years of PC to iMac ( OSX 10.7.5) and need to batch convert thousands of old WordPerfect files (many without an apparent file extension) into my new Microsoft 2011 Word. I am a computer nitwit and am hoping for some simple s
-
How to display 16 bit image in VBAI custom inspection interface?
I'm working with 16 bit grey scale images in VBAI. In configuration mode, there is an option on how to handle 16 bit display mapping, and it works very well to preview the effect of the different display possibilities. However, those settings do not