Pass the file id or a parameter from a report (10g) to the distribution.xml
Is there any way to pass the file id or a parameter from a report (10g) to the distribution.xml file?
Hi,
Please review article ID 273960.1 on metalink.
The article actually describes an issue one may run into while enabling a reports distribution xml file to accept dynamic values, but you can extract the answer you're looking for by studying the above mentioned note.
Best Regards and Good Luck,
Mircea.
Similar Messages
-
How is it posible to get the File name, size and type from a File out the H
How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
form JSP
<form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
File: <input type="file" name="filename"/
Path: <input type="text" readonly="" name="path" value="c:"/
Saveas: <input type="text" name="saveas"/>
<input name="submit" type="submit" value="Upload" />
</form>
proces JSP
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="FileUploadBean" %>
<jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
<%
TheBean.doUpload(request);
%>
BEAN
import java.io.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletInputStream;
public class FileUploadBean {
public void doUpload(HttpServletRequest request) throws IOException
String melding = "";
String filename = request.getParameter("saveas");
String path = request.getParameter("path");
PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
ServletInputStream in = request.getInputStream();
int i = in.read();
System.out.println("filename:"+filename);
System.out.println("path:"+path);
while (i != -1)
pw.print((char) i);
i = in.read();
pw.close();
}Thanks it works great.
Here an excample from my code
import org.apache.commons.fileupload.*;
public class FileUploadBean extends Object implements java.io.Serializable{
String foutmelding = "geen";
String path;
String filename;
public boolean doUpload(HttpServletRequest request) throws IOException
try
// Create a new file upload handler
FileUpload upload = new FileUpload();
// Set upload parameters
upload.setSizeMax(100000);
upload.setSizeThreshold(100000000);
upload.setRepositoryPath("/");
// Parse the request
List items = upload.parseRequest(request);
// Process the uploaded fields
Iterator iter = items.iterator();
while (iter.hasNext())
FileItem item = (FileItem) iter.next();
if (item.isFormField())
String stringitem = item.getString();
else
String filename = "";
int temp = item.getName().lastIndexOf("\\");
filename = item.getName().substring(temp,item.getName().length());
File bestand = new File(path+filename);
if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
FileOutputStream fOut = new FileOutputStream(bestand);
BufferedOutputStream bOut = new BufferedOutputStream(fOut);
int bytesRead =0;
byte[] data = item.get();
bOut.write(data, 0 , data.length);
bOut.close();
catch(Exception e)
System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
foutmelding = "Bestand opsturen is fout gegaan";
return true;
} -
Need to get all the files, (well music and video), from my ipod touch 5th gen to my itunes libary. (So basically sync the other way to normal)
Laptop hard drive broke so had to buy a new one and obviously now need to sort out my itunes.
Did try downloading all my purchased stuff onto itunes but it has missed some things off, and there are some files I did not purchase from itunes so need a way of getting them back on there.
Sure this question has been asked a million times but can't find anything to help me on here so thought I'd ask.
-Did have a look at going onto the start menu and opening the hidden items thing but couldn't see any reference to ipod or device on it so wasn't sure how to do it that way.
-On itunes under my device when its connected, the section about manually restoring and backing up, would that help me? Because that says it will manually back up my ipod to my computer then could restore that back up, obviously I don't want to accidnetally get rid of everything on my ipod so didn't want to try that just in case without checking.
(And yes I have disabled auto sync to device when conncected!)
Can anyone help me please? Sorry if i've overcomplicated this!
Thanks:)
ChrisBacking up an iOS device will copy some data to a backup file within iTunes, but this excludes all media. You can also transfer iTunes Store purchases from the iDevice to iTunes but, without using a third-party tool, nothing else. As long as you do not sync the iPod with your new library, the media that's on it will remain ... for as long as it keeps functioning, is not lost, stolen, eaten by the dog, ...
You may also have an option to recover your previous library from your old laptop; as long as its hard drive isn't fried, a computer repair store or technician may be able to extract the drive, mount it in an external enclosure, and copy your data to another PC. Whatever you choose, there is no real alternative to having all your media on your computer, managed by iTunes, and regularly backed up to another device/location. -
Passing parameter from WEBI report to xcelsius
hi
i transfered the parameter from WEBI report (3.1 sp2) table using a link to a gauhe from xcelsius
i can see the parameter the right number in the gauge value but the problem is that the pin does not moveHow are you connecting your report to Xcelsius? Live Office or QAAWS?
-
iTunes Match has stopped uploading - every file errors and says waiting - I have tried to delete the files and use other formats etc. I have had the service since Day 1 and NEVER had an issue. It didn't start until the Delete from Cloud switch to Hide from cloud - the files that do not upload show grayed out on my other devices.
Have you confirmed that you successfull purged iTunes Match by also looking on an iOS device? If so, keep in mind that Apple's servers may be experiencing a heavy load right now. They just added about 19 countries to the service and I've read a few accounts this morning that suggests all's not running perfectly right now.
-
I recently uploaded the Maverick operating system. I wanted to scan some things on my HP Printer/Scanner and could not . This is the error message I received: An error has occurred saving the file because it could not be written to. Check the properties for the file to make sure it is not read-only. I am a novice with the computer and have no one to help. I hope someone knows an easy fix.
Thank youThis worked for me:
"Although it is not a 'fix' for the HP issue, I did find a workaround that helped me. In the Preferences Panel in MacOS X you can pull up the Printer/Scanner preferences and scan directly from OS X. I'd not known of this prior to posting here and it worked like a charm."
"Of course, HP should still update their software, but it's good to know that Apple has it covered for them."
I found it here:
http://h30434.www3.hp.com/t5/Mac-Printing-and-Scanning/MAVERICKS-WONT-SCAN-HP-C3 09A/td-p/3052105 -
How do I make a DVD copy of a file? And does the file have to be converted from mpeg or mp4 or.MOV to a different format before it can be copied and is readable by DVD? Thanks.
Great hearing for you all! I thought I was all alone this past weekend. I did learn a lot this weekend. I really like the InDesign product.(half-the-battle) But to be helped by the prestigious “Sandee Cohen” was an honor indeed.” I ordered the InDesign CC today. Peter, I appreciate all the feedback on Lynda too. They are loaded with lots of good videos. Derek too honed in on one of the most important aspects! Since I have been working with Word for most of the first portion of the book this will be a big help. I looked at the comments big help ! Thanks a ton ALL! Have a wonder day or evening whenever you read this reply.
-
After downloading Maverick I cannot save or email scans from my HP L7780. I receive error message "An error has occurred saving the file because it could not be written to. Check the properties for the file to make sure it is not read-only.
Read the user manual that came w/the scanner and/or contact HP Support.
http://support.apple.com/kb/PH14141 OS X Mavericks: Reset the printing system
http://support.apple.com/kb/HT3669 Printer and scanner software available for download
A scanner driver you may wish to consider: VueScan Scanner Software -
How to fetch the data into one out parameter from two different queries
Hi,
I have an a problem how to implement condition in above procedure,and scenario is
i have to get the output into one out parameter from two queries.i.e if one query data is null
then i have to pick out data from another query into same out parameter.
CREATE OR REPLACE PROCEDURE GET_POLICIESMAP_BASEDON_GHPLID(I_COMPANYID IN NUMBER,
I_CARDID IN VARCHAR2,
PR_RESULTSET OUT SYS_REFCURSOR) IS
/* LOC_INSUREDID VARCHAR2(200);
LOC_RELATIONCODE VARCHAR2(200);
LOC_CURRENTPOLICYID VARCHAR2(4000);*/
BEGIN
OPEN PR_RESULTSET FOR
WITH A AS
(SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
id INSUREDID,
RELATIONCODE,
CURRENTPOLICYID
from INSUREDPERSONS IP
LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
ON PM.POLICYID = IP.Currentpolicyid
where EIN IN (SELECT EIN
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)
AND IP.CURRENTPOLICYID in
(SELECT ID
from policies
where companyid = I_COMPANYID
and dead = 0
AND POLICYTO > SYSDATE - 1))
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE = 0
AND (A.MAINPOLICYID is null or
RELATIONCODE = 0 AND CURRENTPOLICYID = MAINPOLICYID)
UNION
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE > 0;
/* HERE I NEED TO GET THE DATA FROM THIS BELOW QUERY INTO SAME OUT PARAMETER
WHEN ABOVE QUERY DATA CONTAINS NULLS */
/* IF PR_RESULTSET IS NULL THEN*/
OPEN PR_RESULTSET FOR
WITH A AS
(SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
id INSUREDID,
RELATIONCODE,
CURRENTPOLICYID
from INSUREDPERSONS IP
LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
ON PM.POLICYID = IP.Currentpolicyid
where FAMILYID IN (SELECT FAMILYID
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)
AND IP.CURRENTPOLICYID in
(SELECT ID
from policies
where companyid = I_COMPANYID
and dead = 0
AND POLICYTO > SYSDATE - 1))
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE = 0
AND (A.MAINPOLICYID is null or
RELATIONCODE = 0 AND CURRENTPOLICYID = MAINPOLICYID)
UNION
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE > 0;
/* END IF;*/
END GET_POLICIESMAP_BASEDON_GHPLID;
Thanks in Advance,
vvr.SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
id INSUREDID,
RELATIONCODE,
CURRENTPOLICYID
from INSUREDPERSONS IP
LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
ON PM.POLICYID = IP.Currentpolicyid
where EIN IN (SELECT EIN
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)In this code
where EINEIN is a column in INSUREDPERSONS?
and in the sub query below
(SELECT EIN
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)EIN belongs to INSUREDPERSONS or VW_INSUREDINFO?
Please use Alias as we dont know your table structure. -
Hi, a few hours ago I purchased an "audio book" from i-tunes and i samw the files were downloading on my iPad, but I cannot find the audio book! What happened?
HI CEGS,
Welcome to the Support Communities!
Audiobooks can be found in your Music app on the iPad.
I've referenced the section of the iPad User Guide (page 78):
manuals.info.apple.com/en_US/ipad_user_guide.pdf
See additional browse buttons: Tap More.
I hope this information helps ....
Have a great day!
- Judy -
I have done my back up using time machine, now I have a new mac and I need to access the files that I had saved from my old mac. How can I do that?
Use Migration Assistant on your new Mac:
Click Continue:
On the next screen, choose your Time Machine backup disk.
Don't bother to migrate Applications unless you know they will work on your new Mac. For example, PowerPC applications won't work. Just migrate your user account which will copy all your photos, music, movies, and other documents.
Note: you will not be able to migrate the information to same account in which you are already logged in. Migration Assistant will tell you that and recommend what to do. It can migrate the information to a new account, but you will have to give it a name you might want to change later. One way around this is to create a temporary account, log in to it, and run Migration Assistant which will replace your normal account. Then, log out of the temporary account, log in to your usual one, verify everyting works as you expect, and delete the temporary one.
All this can be avoided when you set up a brand new Mac by running Setup Assistant which essentially does the same thing to create your new account, but most people are too excited to do that and elect to migrate later. -
Hi! I'm having trouble opening a indd-file. It was sent to me as a zip-fil along with the used fonts and links. When I try to open the file, I'm getting this error: "Either the file does not exist, you do not have permission, or the file may be in use by another application". I've tried to look up this error both here in these forums and through google, but can't find a similar case. Hope someone can help me with this. Please let me know if you need more information/details, and I'll provide. Thanks!
function(){return A.apply(null,[this].concat($A(arguments)))}
I'm suspecting it to come from a mac user, if that could influence the case...
It does come from a Mac, as is proven by the fonts, which are of no use on my Windows machine, but that doesn't prevent my CS4 to open it without any problem. It seems to me it's a perfectly regular CS2 file.
Just for cheers I set the file to Read-only, but my InDesign opens it regardless (again as a copy, because it's a "converted" file).
Could it be something in your environment? No network read/write privileges, insufficient free hard disk space, stuff like that? -
I imported an hour of video into iMovie HD and cut it down to a 33 sec clip, and emptied the trash. When I save the project, the file size is 20Gb. How can I save just the 33 sec clip?
Non-destructive editing is an important feature of iMovie HD 6.
iMovie preserves the entire copy of every clip you place into your movie in case you change your mind at a later stage.
So, if you have cut out one minute from a 45 minute clip, iMovie will have stored two complete copies of that clip. This is why is helps to set import as 3-5 minute clips rather than one huge chunk. As DV runs at 13GB per hour your project files can get very big.
One workaround is to complete the editing of a section of the movie, then export that to Quicktime: highlight the clip/s, choose Share-Quicktime, turn on Share selected clips only, and choose Full Quality from the pop-ip menu.
Once you have saved the stand-alone clip to your hard drive, you can re-import it into your project using the File/Import command, and delete the original long clip/s from the project. -
I was re-indexing my whole drive and it was going pretty smoothly until it was stuck for about 24 hours. When i took a look in console, this is what appeared:
mdworker32(7488) deny iokit-open IOHIDParamUserClient (Importing type 'com.makemusic.mus' using 'file://localhost/Library/Spotlight/Finale.mdimporter/' - diagnostic:0 - find suspect file using: sudo mdutil -t 12366294)
When I looked back, that "com.makemusic.mus" error message had pretty much been going on all day. I've tried to look for that file in the library preferences folders but I couldn't find them. I am using finale 2012. Can anyone tell me where I can find that file?
ThanksThanks for the update.
The user is oracle and group is dba. I know from the name of the file that it is coming from oracle apps (somewhere in a custom program).
Asgar -
I am trying to re-install Photoshop CS6. The files have downloaded but I get and error message that the Adobe Support Advisor is required to determine what the installation probIem is. I click on the link that says "get the Support Advisor here only to be told the Support Advisor no longer exists!! A blind loop. I need to have Photoshop CS6 installed...what do I do from here??
The CC Cleaner Tool assumes the Akamai Download Manager is activated and it has not. It seems to be the missing file that triggers the error message. \in a previous re-install I was prompted to download & install the Akamai Download Manger, but not this time. Is there somewhere on the Adobe website that I can download it??
Maybe you are looking for
-
I have very slow performance when navigating from one report to another. The report is focused on custom object 1 and works as follows: 1. Custom Dashboard with a prompt and a view selector with a couple charts 2. Charts drilldown to a table based vi
-
How do i change my hp office pro 8600 printer from offline to online
how do i change my hp office pro 8600 printer from offline to online
-
Macbook pro no airport installed
Hi all i have problem in my macbook pro cannot detect airport even i already reinstalled my OSX leopard...anybody can help me regarding this issue.
-
Hi all.... I want to grab the another system screen from my system thru java program. Requirement : Whatever another person is working on that system i shld be able to monitor from my system. Whether is it is possible with java program . How to do th
-
User ststus active or inactive
HI All My project requirement is to find out the user status. Is the user active or inactive.. can anybody provide the technical details for the same. I mean table level..