Csv-export with dynamic filename or include a report footer?
Hi All,
I have a question regarding the exported csv file contains a variable value as part of the file name.
I read the following thread and example from Denes here:
http://htmldb.oracle.com/pls/otn/f?p=31517:39:2021865942697087
How to generate Excel file name
I created a test page per instruction and I could successfully duplicate the effort and verified the csv file contains the variable value if I click on 'export to CSV' from the link.
However, the application I am working on is slightly different. Basically in page 1, there is a 'download' button which branches to the page 2. And in page 2, in Layout and Pagination section, the value for the Report Template is set to Export CSV. In REport Export session, I set enable CSV output to Yes and file name is: &P20_REPORT_DATE..csv. Of course, I also have a hidden item &P20_REPORT_DATE whose value gets set in page process before header. Note: in this case, the user never really see the search results on screen when they click on the 'download' button which is different from the above example.
When I run the application, the file name simply doesn't show up correctly, instead it is &P20_REPORT_DATE.csv. It appears that the value of the P20_REPORT_DATE is never set.
Also, is there any way I could include a report header or footer to indicate when the report is generated?
Your help is greatly appreciated.
Thanks,
Hi all,
I'm using Application Express 3.1.1.00.09.
What I want to do is include the current date in the report filename. I created an item on Page 0 called P0_CURR_DATE, which is the value of "select current_date from dual". So, the filename I attempted to create is Vendor_&P0_CURR_DATE._report (notice the & and the . are included).
When I click the report csv report link, the popup window shows file name as Vendor__report.csv (that's two underscore characters with no characters in-between).
I think that I have figured out my problem. I originally created the item on Page 0, as "Display as Text (does not save state)". So, after I change the item to "Display as Text (saves state)", the csv report filename becomes Vendor_28-JUL-08_report.csv .
I guess that's the pitfalls of being a newbie!
Thanks to all who offered help and suggestions.
Bryan
Message was edited by:
BryanG
Similar Messages
-
Csv-export with dynamic filename ?
I'm using the report template "export: CSV" to export data to a csv-file. It works fine with a static file name. Now, I would like to have a dynamic file name for the csv-file, e.g. "ExportData_20070209.csv".
Any ideas ?Ran,
This is a procedure, which will export result of any query into a flat file in your directory:
PROCEDURE export_rep_to_bfile (
p_query IN VARCHAR2,
p_directory IN VARCHAR2,
p_filename IN VARCHAR2 DEFAULT 'export_csv.csv',
p_delimiter IN VARCHAR2 DEFAULT ';',
p_coll_name IN VARCHAR2 DEFAULT 'MY_EXP_COLL'
IS
v_file UTL_FILE.file_type;
v_column_list DBMS_SQL.desc_tab;
v_column_cursor PLS_INTEGER;
v_number_of_col PLS_INTEGER;
v_col_names VARCHAR2 (4000);
v_line VARCHAR2 (4000);
v_delimiter VARCHAR2 (100);
v_error VARCHAR2 (4000);
v_code VARCHAR2 (4000);
BEGIN
-- Get the Source Table Columns
v_column_cursor := DBMS_SQL.open_cursor;
DBMS_SQL.parse (v_column_cursor, p_query, DBMS_SQL.native);
DBMS_SQL.describe_columns (v_column_cursor,
v_number_of_col,
v_column_list
DBMS_SQL.close_cursor (v_column_cursor);
FOR i IN v_column_list.FIRST .. v_column_list.LAST
LOOP
v_col_names :=
v_col_names || p_delimiter
|| (v_column_list (i).col_name);
END LOOP;
v_col_names := LTRIM (v_col_names, ';');
v_file := UTL_FILE.fopen (p_directory, p_filename, 'W');
UTL_FILE.put_line (v_file, v_col_names);
--for ApEx when used outside of ApEx
IF htmldb_collection.collection_exists (p_collection_name => p_coll_name)
THEN
htmldb_collection.delete_collection
(p_collection_name => p_coll_name);
END IF;
htmldb_collection.create_collection_from_query
(p_collection_name => p_coll_name,
p_query => p_query
COMMIT;
v_number_of_col := 50 - v_number_of_col;
FOR i IN 1 .. v_number_of_col
LOOP
v_delimiter := v_delimiter || p_delimiter;
END LOOP;
FOR c IN (SELECT c001, c002, c003, c004, c005, c006, c007, c008, c009,
c010, c011, c012, c013, c014, c015, c016, c017, c018,
c019, c020, c021, c022, c023, c024, c025, c026, c027,
c028, c029, c030, c031, c032, c033, c034, c035, c036,
c037, c038, c039, c040, c041, c042, c043, c044, c045,
c046, c047, c048, c049, c050
FROM htmldb_collections
WHERE collection_name = p_coll_name)
LOOP
v_line :=
RTRIM ( c.c001
|| p_delimiter
|| c.c002
|| p_delimiter
|| c.c003
|| p_delimiter
|| c.c004
|| p_delimiter
|| c.c005
|| p_delimiter
|| c.c006
|| p_delimiter
|| c.c007
|| p_delimiter
|| c.c008
|| p_delimiter
|| c.c009
|| p_delimiter
|| c.c010
|| p_delimiter
|| c.c011
|| p_delimiter
|| c.c012
|| p_delimiter
|| c.c013
|| p_delimiter
|| c.c014
|| p_delimiter
|| c.c015
|| p_delimiter
|| c.c016
|| p_delimiter
|| c.c017
|| p_delimiter
|| c.c018
|| p_delimiter
|| c.c019
|| p_delimiter
|| c.c020
|| p_delimiter
|| c.c021
|| p_delimiter
|| c.c022
|| p_delimiter
|| c.c023
|| p_delimiter
|| c.c024
|| p_delimiter
|| c.c025
|| p_delimiter
|| c.c026
|| p_delimiter
|| c.c027
|| p_delimiter
|| c.c028
|| p_delimiter
|| c.c029
|| p_delimiter
|| c.c030
|| p_delimiter
|| c.c031
|| p_delimiter
|| c.c032
|| p_delimiter
|| c.c033
|| p_delimiter
|| c.c034
|| p_delimiter
|| c.c035
|| p_delimiter
|| c.c036
|| p_delimiter
|| c.c037
|| p_delimiter
|| c.c038
|| p_delimiter
|| c.c039
|| p_delimiter
|| c.c040
|| p_delimiter
|| c.c041
|| p_delimiter
|| c.c042
|| p_delimiter
|| c.c043
|| p_delimiter
|| c.c044
|| p_delimiter
|| c.c045
|| p_delimiter
|| c.c046
|| p_delimiter
|| c.c047
|| p_delimiter
|| c.c048
|| p_delimiter
|| c.c049
|| p_delimiter
|| c.c050,
v_delimiter
UTL_FILE.put_line (v_file, v_line);
END LOOP;
UTL_FILE.fclose (v_file);
IF htmldb_collection.collection_exists (p_collection_name => p_coll_name)
THEN
htmldb_collection.delete_collection
(p_collection_name => p_coll_name);
END IF;
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
IF DBMS_SQL.is_open (v_column_cursor)
THEN
DBMS_SQL.close_cursor (v_column_cursor);
END IF;
v_error := SQLERRM;
v_code := SQLCODE;
raise_application_error (-20001,
'Your query is invalid!'
|| CHR (10)
|| 'SQL_ERROR: '
|| v_error
|| CHR (10)
|| 'SQL_CODE: '
|| v_code
|| CHR (10)
|| 'Please correct and try again.'
|| CHR (10)
END export_rep_to_bfile;You may adjust this to get a report query, by doing the following:
DECLARE
x VARCHAR2 (4000);
BEGIN
SELECT region_source
INTO x
FROM apex_application_page_regions
WHERE region_id = TO_NUMBER (LTRIM (p_region, 'R'))
AND page_id = p_page_id
AND application_id = p_app_id;
END;which will get your region query.
...and there you go.
Denes Kubicek -
Reporting Services Auto Export to PDF on a shared location with dynamic filename
Hi Guys,
I have this ERP system that is calling a url with the Document No parameter, the link automatically converts to a PDF but comes up with the OPEN/SAVE/CANCEL box however i want to automatically save to a default location...is this possible?
Secondly i need the filename to be saved as the Paramter Name and the date.pdf in the format DocumentNo- Datetime.pdf is this also possible?
Thank you in AdvanceHi Dan,
According to your description, you want to export a report to PDF using URL access. And trying to export the report with specify name automatically without prompting the OPEN/SAVE/CANCEL box. The file name should come from the parameters of the report.
For security reasons, it is not allowed to write files on a client computer (Shared folder), except for a few pieces of information in cookies.
While using URL access to export a report, the exporting process will save the file with the report’s name automatically.
In order to export the report to a specify folder with a specify name, we can send a request to the Report Server in custom application, and then receive the data from the Report Server. In the custom application, save the data to the specify folder with the specify name in server side.
Please follow these steps to archive the target:
1. Create a C# Web application.
2. In the page_load event of a page, embed the following code:
string URL = "http://localhost/Reportserver?/AdventureWorks Sample Reports/Employee Sales Summary";
string Command = "Render";
string Format = "PDF";
//We can get values of these parameters from Request object.
string paramReportMonth = "12";
string paramReportYear = "2003";
string paramEmpID = "288";
URL = URL + "&rs:Command=" + Command + "&rs:Format=" + Format + "&ReportMonth=" + paramReportMonth + "&ReportYear=" + paramReportYear +"&EmpID=" + paramEmpID;
System.Net.HttpWebRequest Req = (System.Net.HttpWebRequest) System.Net.WebRequest.Create(URL);
Req.Credentials = System.Net.CredentialCache.DefaultCredentials;
Req.Method = "GET";
//Specify the path for saving.
string path = @"C:\" + paramEmpID + "-" + paramReportYear + "-" + paramReportMonth + @".pdf";
System.Net.WebResponse objResponse = Req.GetResponse();
System.IO.FileStream fs = new System.IO.FileStream(path, System.IO.FileMode.Create);
System.IO.Stream stream = objResponse.GetResponseStream();
byte[] buf = new byte[1024];
int len = stream.Read(buf, 0, 1024);
while (len > 0)
fs.Write(buf, 0, len);
len = stream.Read(buf, 0, 1024);
stream.Close();
fs.Close();
3. Use the URL of the above page with parameters to export a report to the specify folder with specify filename.
E.g. http://<server>/custom application/export.aspx?parameterReportYear=2003¶metermonth=12&EmpId=288
Of course, we can pass other parameters with the URL such as Format.
Please feel free to ask, if you have any more questions.
Thanks,
Jin Chen
Jin Chen - MSFT -
Extremely slow PP Export with Dynamic Links
I have very slow exports from Premiere Pro that are entirely made with Dynamic Links to AE (green screen footage).
It's taking about 4+ hours to export a 12 minute video!
I'm on an iMac late 2012
3.2 GHz Intel Core i5
24 GB 1600 MHz DDR3
NVIDIA GeForce GTX 675MX 1024 MB
OS Yosemite
Footage is on an external HD
Project file is on main HD
Writing exported file to external HD
I've followed several troubleshooting tips including:
Uninstall and re-install CC 2014
Clean adobe media files
Check permissions on all folders
Switch Open CL to Software Only
Unchecked "Display out of sync indicators for unlinked clips"
Disabled "Show Duplicate Frame Markers"
Disabled "Show FX Badges"
I've also tried changing the location of where the final file is written to.
I've also tried this on my MBP with 2.3 GHz Intel Core i7, 8 GB RAM and AMD 6750M
Same results.
Any ideas? Am I missing something obvious here?
Thanks.Wrong forum. This is the hardware forum for hardware related posts.
-
Hi everyone.
I want to know how export oracle tables with dynamic file name on windows XP platform.
bye.You'd have to generate the export command-line or par file using a script -- Windows or SQL !
It would be easy to use SQL to generate the script.
So you could have a BATch file that
a. Calls the SQL to generate the export command-line or parfile
b. Executes the export
even possibly run in a loop.
Hemant K Chitale -
Picking files from FTP server with dynamic Filename.
Hello Experts,
I want to pick some files from a FTP server in a File to Idoc scenario. The files in the Ftp Server are created with the filenames as timestamp of the file when it was created. How do I pick up these files?
Thanks,
MerrillyHi,
The above masking concept (*.txt, . etc) will be applicable for the files with NFS only,
See the below link to apply it
/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
The below link will help you to build up the adapter module to read the dynamic file name
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805
This could be applicable for FTP ...
Thanks
Swarup -
Export query results to flat file with dynamic filename
Hi
Can anybody can point me how to dynamic export query serults set to for example txt file using process flows in OWB.
Let say I have simple select query
select * from table1 where daterange >= sysdate -1 and daterange < sysdate
so query results will be different every day because daterange will be different. Also I would like to name txt file dynamicly as well
eg. results_20090601.txt, results_20090602.txt, results_20090603.txt
I cant see any activity in process editor to enter custom sql statment, like it is in MSSQL 2000 or 2005
thanks in advanceYou can call existing procedures from a process flow the procedure can create the filename with whatever name you desire. OWB maps with file as target can also create a file with a dynamic name defined by an expression (see here ).
Cheers
David -
[JS][CS4]PDF Export With RegExp Doesn't Include First Zero-Please Help
This is a script we put together with the help of Jongware, Shonkyin and Kaysan a while back...
Here's the link to the original thread:
http://forums.adobe.com/thread/481958?tstart=0
( function() {
if(app.documents.length != 0){
var myFolder = app.activeDocument.filePath;
if(myFolder != null){
var myPageName, myFilePath, myFile;
var myDocument = app.activeDocument;
//var myBaseName = myDocumentName + "_" ;
//1. Update modified links, find and alert operator of missing links.
var linksLog = updateLinks(myDocument, "");
if (linksLog != "") {
alert("Missing Links\n" + linksLog + "\nPlease resolve and try again.");
return;
function updateLinks(doc, log) {
var myLinks = doc.links;
for (var j = myLinks.length - 1; j >= 0; j--) {
switch (myLinks[j].status) {
case LinkStatus.normal :; case LinkStatus.linkEmbedded : break; // nothing to do
case LinkStatus.linkOutOfDate : myLinks[j].update(); break; // update
case LinkStatus.linkMissing :
log = log + "Link '" + myLinks[j].name + "' is missing\n";
break
} // end switch
} // end for
return log
} // end updateLinks
var my_suffix = decodeURI(app.activeDocument.name).replace(/^(\d+).*/, '$1');
//my_suffix = Number(my_suffix);
if (typeof (my_suffix) != 'number')
my_suffix = Number(my_suffix);
for(var myCounter = 0; myCounter < myDocument.pages.length; myCounter++){
if (myDocument.pages.item(myCounter).appliedSection.name != ""){
myDocument.pages.item(myCounter).appliedSection.name = "";
myPageName = myDocument.pages.item(myCounter).name;
app.pdfExportPreferences.pageRange = myPageName;
myFilePath = myFolder + "/" + "MyTest_" + (my_suffix + myCounter) + ".pdf";
myFile = new File(myFilePath);
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
myDocument.exportFile(ExportFormat.pdfType, myFile, false, "[Press Quality]");
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
else{
alert("No documents are open. Please open a document and try again.");
exit();
alert("Finished exporting");
The problem is, I never considered pages 0 through 99. The script works perfect for 138-140 TEST 10_WORKER.indd. It creates PDFs named:
MyTest_138.pdf
MyTest_139.pd
MyTest_140.pdf
If the document name is 098-100 TEST 10_WORKER.indd, It creates PDFs named:
MyTest_98.pdf - should be MyTest_098.pdf
MyTest_99.pdf - should be MyTest_099.pdf
MyTest_100.pdf - This is perferct
And of course, the double 0s, 008-010 TEST 10_WORKER.indd
MyTest_8.pdf - should be MyTest_008.pdf
MyTest_9.pdf - should be MyTest_009.pdf
MyTest_10.pdf - should be MyTest_010.pdf
Why doesn't it use the first 0(s) in the name? 0 is a digit and every RegEx tester I've checked it with includes the zero.
Any assistance with getting this script to use the leading zero if there is one would be greatly appreciated.
Also, if there is a way to export each PDF from a multipage document which doesn't start with a number, it would be extremely helpful.
Thanks in advance
DannyThe zeros aren't there because they never were there. Your loop starts at 0 and that could be a page number. To pad your page numbers to three-digit numbers, replace this line:
myFilePath = myFolder + "/" + "MyTest_" + (my_suffix + myCounter) + ".pdf";
with this one:
myFilePath = myFolder + "/" + "MyTest_" + (my_suffix + pad(myCounter)) + ".pdf";
and add the following function somewhere at the end of your script:
function pad (n) {
return ("00000"+n).slice(-3);
Peter -
Load XML with dynamic filename
Hi,
I am trying to create a load xml function where I can send
the filname to load to the function, however I get a syntax error
with the following function, can anyone see what is wrong here?
function loadXML(file){
myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success) {
if (success) {
// Success
} else {
// fail
myXML.load(path+file);
Thanks for your adviceI was trying to do the same thing and came across this great
tutorial. I think your syntax is just a little off.
myXML=new XML();
myXML.ignoreWhite=true;
myXML.onLoad=function(ok){
if(ok){
//trace('data loaded');
allData=this.firstChild.childNodes;
for(i=0;i<allData.length;i++){
trace(allData
.attributes.text);
}else{
trace('error');
myXML.load('gridTest.xml');
<?xml version="1.0" encoding="iso-8859-1"?>
<nav>
<but text="home">
<heading>You are at Home</heading>
<content>This is the text that is displayed when click
on home</content>
</but>
<but text="About Us">
<heading>You are at the about us
section</heading>
<content>This is the text that is displayed when click
on about us</content>
</but>
<but text="Contact"></but>
<heading>You are at Contact</heading>
<content>This is the text that is displayed when click
on Contact</content>
</nav> -
Problem with dynamic columns in the BEx report
Hi Gurus,
I am tryging to build some planning application using BI-IP and input ready queries.
I'm facing issues with making the columns in the query 'dynamic'. The example is given below: -
Lets say there are states and cities for which we have to plan sales volumes. Depending on the value I choose for 'State' it should create as many columns for 'Cities' as per the hierarchy of the cities.
Lets say if I choose Maharashtra then the report shud look like :-
State-> Maharashtra
Rows Column1 Column2 Column3
GL Account Mumbai/0quantity Pune/0quantity Aurangabad/ 0quantity
1000000 1000 1500 1200
State--> Karnatka
Rows Column1 Column2
GL account Bangalore Mangalore
1000000
Any idea how this can be achieved?
Best Regards,
SSCHi friend,
See the link below it is having the solution of hiding the columns in smart forms
Hide table columns in smart form?
Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
I think this will solve your issue if you still have queries please revert back to me i will help you.
Thanks,
Sri Hari -
How to generate a second csv file with different report columns selected?
Hi. Everybody:
How to generate a second csv file with different report columns selected?
The first csv file is easy (report attributes -> report export -> enable CSV output Yes). However, our users demand 2 csv files with different report columns selected to meet their different needs.
(The users don't want to have one csv file with all report columns included. They just want to get whatever they need directly, no extra columns)
Thank you for any help!
MZHello,
I'm doing it usually. Typically example would be in the report only the column "FIRST_NAME" and "LAST_NAME" displayed whereas
in the csv exported with the UTL_FILE the complete address (street, housenumber, additions, zip, town, state ... ) is written, these things are needed e.g. the form letters.
You do not need another page, just an additional button named e.g. "export_to_csv" on your report page.
The csv export itself is handled from a plsql procedure "stored procedure" ( I like to have business logic outside of apex) which is invoked by pressing the button "export_to_csv". Of course the stored procedure can handle also parameters
An example code would be something like
PROCEDURE srn_brief_mitglieder (
p_start_mg_nr IN NUMBER,
p_ende_mg_nr IN NUMBER
AS
export_file UTL_FILE.FILE_TYPE;
l_line VARCHAR2(20000);
l_lfd NUMBER;
l_dateiname VARCHAR2(100);
l_datum VARCHAR2(20);
l_hilfe VARCHAR2(20);
CURSOR c1 IS
SELECT
MG_NR
,TO_CHAR(MG_BEITRITT,'dd.mm.yyyy') AS MG_BEITRITT ,TO_CHAR(MG_AUFNAHME,'dd.mm.yyyy') AS MG_AUFNAHME
,MG_ANREDE ,MG_TITEL ,MG_NACHNAME ,MG_VORNAME
,MG_STRASSE ,MG_HNR ,MG_ZUSATZ ,MG_PLZ ,MG_ORT
FROM MITGLIEDER
WHERE MG_NR >= p_start_mg_nr
AND MG_NR <= p_ende_mg_nr
--WHERE ROWNUM < 10
ORDER BY MG_NR;
BEGIN
SELECT TO_CHAR(SYSDATE, 'yyyy_mm_dd' ) INTO l_datum FROM DUAL;
SELECT TO_CHAR(SYSDATE, 'hh24miss' ) INTO l_hilfe FROM DUAL;
l_datum := l_datum||'_'||l_hilfe;
--DBMS_OUTPUT.PUT_LINE ( l_datum);
l_dateiname := 'SRNBRIEF_MITGLIEDER_'||l_datum||'.CSV';
--DBMS_OUTPUT.PUT_LINE ( l_dateiname);
export_file := UTL_FILE.FOPEN('EXPORTDIR', l_dateiname, 'W');
l_line := '';
--HEADER
l_line := '"NR"|"BEITRITT"|"AUFNAHME"|"ANREDE"|"TITEL"|"NACHNAME"|"VORNAME"';
l_line := l_line||'|"STRASSE"|"HNR"|"ZUSATZ"|"PLZ"|"ORT"';
UTL_FILE.PUT_LINE(export_file, l_line);
FOR rec IN c1
LOOP
l_line := '"'||rec.MG_NR||'"';
l_line := l_line||'|"'||rec.MG_BEITRITT||'"|"' ||rec.MG_AUFNAHME||'"';
l_line := l_line||'|"'||rec.MG_ANREDE||'"|"'||rec.MG_TITEL||'"|"'||rec.MG_NACHNAME||'"|"'||rec.MG_VORNAME||'"';
l_line := l_line||'|"'||rec.MG_STRASSE||'"|"'||rec.MG_HNR||'"|"'||rec.MG_ZUSATZ||'"|"'||rec.MG_PLZ||'"|"'||rec.MG_ORT||'"';
-- DBMS_OUTPUT.PUT_LINE (l_line);
-- in datei schreiben
UTL_FILE.PUT_LINE(export_file, l_line);
END LOOP;
UTL_FILE.FCLOSE(export_file);
END srn_brief_mitglieder;Edited by: wucis on Nov 6, 2011 9:09 AM -
SSRS 05 snapshot with dynamic date parameter
I want to use snapshot for a SSRS 05 report due to high volume of report data. This report uses 2 date parameter which will keep changing every month ( mmyyyy) format. I read many blogs but it seems I can not have snapshot report in dynamic date situation.
Can someone please suggest if there is any workaround to use snapshot with dynamic date parameter . The report server version is 2005.
GaurHi Gaur,
In Reporting Services, the snapshot is a report that contains layout information and data that is retrieved at a specific point in time. There’s a couple of requirements in order to use a snapshot:
Stored credentials for the data source.
Defaults for all Parameters.
Based on my research, we can use snapshot with dynamic date parameter. When we select 'Render this report from a report execution snapshot’ with a schedule and Apply in Execution tab, a snapshot is created and subsequently refreshed on a schedule. When we
render the report at a time, the report would be rendered with the latest snapshot layout information and data, then use the current parameter value to filter the snapshot report data. In this way, the current data would be different from the snapshot report
based on the current parameter values, but we can still use snapshot with dynamic date parameter.
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Dynamic Filename in BPM process (SOAP with attachm. and PayloadSwapBean)
Hello together
I have the following BPM process:
1. IDoc=>WebServiceRequest
2. WebServiceResponse (payload) => IDoc
3. WebServiceResponse (attachment) => File
XI receivs an IDoc an map it to an WebService. The Webservice is called by XI and we receive the WebServiceResponse including a PDF attachment.
The challenge is to store the PDF attachment with a dynamic filename from the payload of WebServiceResponse.
We use the PayloadSwapBean to change the payload to the PDF attachment. But then we are not able to access the required information on the original WebService-XML-Response via variable substitution.
Is there a solution in the standard or have we to use a custom adapter module?
Thx
manukuHi Jayasimha,
We can do this by "Adapter Specific Message Properties" of ur comunication channels.
1.If u want to keep the output filename same as input filename, no need to use the UDF. only the 'adapter specific parameters' in both sender n receiver file adapter will do that.
In case if u want to get the filename inside our mapping we have to create a user defined function
which will return the filename and map it to one of our XML tags. 2nd point gives solution 4 that:
2. If u want to generate an output file taking some input from the payload,then u hav to use the UDF.There u hav to populate the name.
Pretty much.... if you set an attribute from the sender side, for example, you can use a UDF and access the particular attribute sent and use it in the mapping. In another example, where no attributes are sent from the sender, you can still actually set a particular attribute, say a filename derived from the payload, using a UDF, and enable the receiver attribute to use it. That's where the UDFs come in - either to get or set particular adapter specific message attributes.
This will be a very helpful blog which solves ur query:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regards,
Vinod. -
How to export file with original filename number suffix, but with more digits
Is there a way to keep the original filename number suffix, but change the formatting of the number, adding leading zeros for instance?
When I import photos from my camera I like to rename them, and give them sequential numbers, e.g. "2015-01 Hamburg 1.cr2", "2015-01 Hamburg 2.cr2", "2015-01 Hamburg 10.cr2", .. "2015-01 Hamburg 134.cr2", and so on.
Normally when I export photos I like to keep the file names exacly as I imported them (except the extension) e.g. 2015-01 Hamburg 1.jpg, "2015-01 Hamburg 2.jpg", .. "2015-01 Hamburg 10.jpg", .. "2015-01 Hamburg 134.jpg".
But sometimes I would like to export them with leading zeros, typically when adding photos to a web site or blog where there are sort mechanisms that only support simple sort algorithms based on file names, meaning the sort order of my photos with their original file names would become "2015-01 Hamburg 1.jpg, "2015-01 Hamburg 10.jpg", .. "2015-01 Hamburg 134.jpg", "2015-01 Hamburg 2.jpg".
So I would like the file names to be "2015-01 Hamburg 001.jpg", "2015-01 Hamburg 002.jpg", "2015-01 Hamburg 010.jpg", "2015-01 Hamburg 134.jpg".
By keeping the original file number suffix I can easily go back to the original file whenever I need to, and the sort order would work even with simple sorting.
The export Filename Template Editor gives quite advanced support for numbering files when exporting, see attached screenshot. There's support for exporting files with custom file names, and adding sequence, total and image number with padding (up to 9999/####). But those add new numbers, they do not consider the original filename number suffix. If I use the "Image # (001)" for instance, my example above would export as "2015-01 Hamburg 001.jpg", "2015-01 Hamburg 002.jpg", "2015-01 Hamburg 003.jpg", "2015-01 Hamburg 004.jpg", if those were the four photos I wanted to export, making it hard for me to trace them back to the original photo.
I have found no way of adding such padding on the original file number.
Does anyone know if this is possible or have suggestions for a workaround?
It shouldn't be too hard for Adobe to support this I'd imagine.
export pattern rename files file_number filename_template_editorI do not know if you can do what you explained above, but there is a workaround to this (and a way to avoid having to do it in the future):
In the Library module, make sure your images are sorted by Capture Date (this will put them in the right order, even with suffixes like 1, 13, etc.)
Select all images, and then Rename them, using a Custom text followed by a Sequence number. The Custom text in this case should be the original name (such as, 2015-01 Hamburg, as in your example). Make sure the Sequence number is formatted with enough zeroes to include all the numbers in your images.
In the future, when you rename images during Import, make sure you select the Sequence number format that will include all the needed zeroes, so you don't have to go through this again. -
Slow PPr Export with all Dynamic Links
I have very slow exports from Premiere Pro that are entirely made with Dynamic Links to AE (green screen footage).
It's taking about 4+ hours to export a 12 minute video! Without the dynamic links, it takes about 20 minutes.
I'm on an iMac late 2012
3.2 GHz Intel Core i5
24 GB 1600 MHz DDR3
NVIDIA GeForce GTX 675MX 1024 MB
OS Yosemite
Footage is 1920x1080 .MOV with H.264 Codec, Linear PCM
Footage is on an external HD
Project file is on main HD
Writing exported file to external HD
I've followed several troubleshooting tips including:
Uninstall and re-install CC 2014
Clean adobe media files
Check permissions on all folders
Switch Open CL to Software Only
Unchecked "Display out of sync indicators for unlinked clips"
Disabled "Show Duplicate Frame Markers"
Disabled "Show FX Badges"
I've also tried changing the location of where the final file is written to.
I've also tried this on my MBP with 2.3 GHz Intel Core i7, 8 GB RAM and AMD 6750M
Same results.
Any ideas? Am I missing something obvious here?
Thank youHi Matt,
Try this: close After Effects when rendering in Premiere Pro.
Thanks,
Kevin
Maybe you are looking for
-
Setting up additional script directories
Hi - I work for a company with a sizeable number of texture artists. I've been creating a set of photoshop helper scripts for them to use, and I'm trying to figure out how to get photoshop to detect it automatically. The way that I see noted all over
-
License Expiry Problem in R/3
Can you guide me how to get rid of license expiry problem in R/3.
-
Is 2 gig of ram enough for a 2011 2,3 ghz mac mini for doing some games? Like GTA IV
Is the standard 2GB of ram enough for a 2011 2,3GHz Mac Mini for doing games? Like GTA IV. Or do I even have to go for the faster 2,5GHz model?
-
hi, i want the datagrid headings alone to be aligned as center and rest of the columns to be aligned as left For example my data grid should look like this Header 1 Header 2 xxxx yyyy xxxx yyyy i have used data grid align property, it effects the ent
-
HT1386 How do I sync library on new computer with old iPhone
When I bought my iPhone, I was required by my company to sync with my work computer. Of course, by iTunes library is on my home computer. I am no longer with the company so I do not have access to that computer. Now I want to sync my iPhone with my