Custom filename in place of default filename from App Engine

Hi All
I am wondering if it is possible to generate output files from AE/SQR/Crystal with custom names rather than the default names as ProcessName_ProcessInstance?
I am aware that this can be acieved in SQRs as we set the filenames in most of the cases, but I need to check this for AE & Crystal processes.
I have a crystal that creates a bill in pdf format. The pdf bill file is created with name as ProcessName_ProcessInstance. I am exploring if it is possible to create a pdf billfile with name as BillId_Date or as PI_BillId or ProcessName_PI_Bill_Id.
I googled and searched in PeopleBooks but couldn't locate anything that could say if it is possible or not? If possible, how we can achieve it.
Regards
Vishal Mahajan

For AE, have you tried changing the override paramenters in process definition. you can probably use the OT, OF and FP flags to achive this.
See bleow. from 8.50 tools PeopleBooks:
-OT
(Optional) Initialize the PeopleCode meta-variable %OutDestType (numeric).
PeopleCode example of %OutDestType:
&ProcessRqst.OutDestType = %OutDestType ;
-OF
(Optional) Initialize the PeopleCode meta-variable %OutDestFormat (numeric).
PeopleCode example of %OutDestFormat:
Query.RunToFile(Record QryPromptRecord, %OutDestFormat);
-FP
(Optional) Initialize the PeopleCode meta-variable %FilePath (string).
PeopleCode example of %FilePath:
If All(%FilePath) Then
&FILENAME = %FilePath | &FILENAME;
&MYFILE = GetFile(&FILENAME, "E", %FilePath_Absolute);
Else
&MYFILE = GetFile(&FILENAME, "E", %FilePath_Relative);
End-If;

Similar Messages

  • How to identify if the COBOL ran successfully from app engine?

    I have scheduled a COBOL process from App Engine. Once it ran successfully, i need to start another process. How to accomplish this in App engine peoplecode? Is there any flag updated on the successfull run of the cobol process? How to handle when the cobol did not run successfully?

    Refer to PeopleBooks
    http://peoplebooks.cognizant.com/PSOL/PT848/eng/psbooks/tpcl/chapter.htm?File=tpcl/htm/tpcl02.htm%23H4529
    Sample code from PBooks Pasted below
    Rem Set the return code so we are sure it is sent back.
    &Returncode = -1;
    Rem Set the parameters that will be sent across.
    &param1 = "John";
    &param2 = "Smith";
    Rem Set the standard parameters that indicate program name and run-control.
    &RemoteCobolPgm = "CBLPROG1";
    /* call the remote function */
    RemoteCall ("PSRCCBL",
    "PSCOBOLPROG", &RemoteCobolPgm,
    "PSRUNCTL", workrec.runctl,
    "FirstName", &param1,
    "LastName", &param2,
    "Returncode", &Returncode,
    "MessageSet", &msgset,
    "MessageID", &msgid,
    "MessageText1", &msgtext1,
    "MessageText2", &msgtext2);
    if &Returncode <> 0
    WinMessage(MsgGet(&msgset, &msgid, "default message", &msgtext1, &msgtext2));
    end-if;

  • XSL Mapper JDeveloper plugin fails to launch from App Engine

    XSL Mapper JDeveloper plugin fails to launch from App Engine ONLY WHEN THE TARGET LOCATION OF THE SERVICE CONFIGURATION POINTS TO AN HTTPS URL.
    If I make the target location field of the service configuration point to an HTTP url, the plugin launches fine.
    The error message indicates that there is a missing certificate in the chain:
    oracle.tip.tools.ide.common.xsdgrammar.SchemaGrammarException: sun.security.validator.ValidatorException: No trusted certificate found
    A basic google search on this error leads me to believe that I need to add a key to the java clients keystore on my PC. Can anyone confirm or deny this? Has anyone else encountered this?

    After digging pretty hard I believe I've found the cause and two possible solutions...and I quote...
    "This seems to be a known conflict between versions of the Digi 001, the Audio Media III card, Panther OS, Pro Tools, and QuickTime 7 and above. This Mac is running...
    OS Panther 10.3.9
    Pro Tools LE 6.2.2
    This is what I've found from http://sillydog.org/forum/sdt_8928.php (page three of this thread).
    "testing has yielded that the Audio Media III card can be used with Pro Tools LE 6.2.3 on a platform as high as OSX Panther 10.3.9 as long as you do not (I repeat do not) install QuickTime 7ever. The QuickTime 6.5.2 re-installer will not remove problems created by installing QuickTime 7."
    "Basically if you are running what Digidesign refers to as “Legacy” hardware. Audio Media III/ Toolbox or the Digi 001. You are running a version of Pro Tools LE that is incompatible with QuickTime 7. If at any point QuickTime 7 is installed you must re-install (the OS and all programs) to delete its effects, and are stalled on OSX 10.3.9 (w/o QuickTime 7)."
    Knowing this, I was able to find a possible solution here... http://fox-gieg.com/tutorials/2005/undo-quicktime-7/
    The other solution is to upgrade equipment, or re-install OS and other Apps to go backwards.
    Hope this helps some people!

  • How to add custom message in place of default message  for af:inputDate

    Hi ,
    I am using JDeveloper 11.1.1.6.0  ,
    how to display the custom message <af:inputDate in place of default message "please enter valide date or Time" . i am trying through converter datepicker icon is disable .please help me how to add client side converter.
    Thanks
    ARm

    Hi,
    see the ADF Faces skin selector: http://docs.oracle.com/cd/E23943_01/apirefs.1111/e15862/toc.htm#inputDate
    Its has a resources string that you can use to change the message: af_inputDate.TIP_TITLE_SELECT_DATE
    For more see:
    Customizing the Appearance Using Styles and Skins - 11g Release 1 (11.1.1.6.0)
    Frank

  • Custom Filename for Export Data from a Query

    Hi,
    Would like to define a custom filename for the file to be download as a csv from the web query, Is it possible?
    Regards
    Chocks

    This is not possible, it will be system generated.

  • Custom Filename for ESB FileAdapter Write

    Hi,
    I have a ESB service that monitors and deqeues from the oracle.apps.po.event.xmlpo business event via the Oracle Applications adapter. This works fine as the WF_EVENT_T schema is routed via an XSL to a custom XML which is used later.
    However, I want the file to use a custom filename with the file adapter. In principle I know how to do this using the ehdr:setOutboundHeader functionality and have got this to work when setting a static filename.
    However, I want to be able to create the filename based on the Purchase Order Number coming from the WF_EVENT_T schema. It seems that the ehdr:setOutboundHeader function has to be set before any of the XML Template matches, which means at this point the Purchase Order number is not available. Below is the main parts of the XSL.
    <xsl:variable name="CustomFilename" select="'/ns2:PONo"/>
    <xsl:variable name="AssignFilename"
    select="ehdr:setOutboundHeader('/ns1:OutboundFileHeaderType/ns1:fileName',$CustomFilename,'ns1=http://xmlns.oracle.com/pcbpel/adapter/file/Capture_PO_Event_Data/;')"/>
    <xsl:template match="/">
    <ns2:HCNPOWFEVENT>
    <xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
    <xsl:if test='NAME = "DOCUMENT_NO"'>
    <ns2:PONo>
    <xsl:value-of select="VALUE"/>
    </ns2:PONo>
    </xsl:if>
    </xsl:for-each>
    <xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
    <xsl:if test='NAME = "ECX_TRANSACTION_TYPE"'>
    <ns2:POType>
    <xsl:value-of select="VALUE"/>
    </ns2:POType>
    </xsl:if>
    </xsl:for-each>
    <xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
    <xsl:if test='NAME = "ECX_TRANSACTION_SUBTYPE"'>
    <ns2:POSubType>
    <xsl:value-of select="VALUE"/>
    </ns2:POSubType>
    </xsl:if>
    </xsl:for-each>
    <xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
    <xsl:if test='NAME = "ECX_PARAMETER5"'>
    <ns2:OrgId>
    <xsl:value-of select="VALUE"/>
    </ns2:OrgId>
    </xsl:if>
    </xsl:for-each>
    <xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
    <xsl:if test='NAME = "ECX_PARTY_ID"'>
    <ns2:ECXPartyId>
    <xsl:value-of select="VALUE"/>
    </ns2:ECXPartyId>
    </xsl:if>
    </xsl:for-each>
    <xsl:for-each select="/imp1:WF_EVENT_T/PARAMETER_LIST/PARAMETER_LIST_ITEM">
    <xsl:if test='NAME = "ECX_PARTY_SITE_ID"'>
    <ns2:ECXPartySiteId>
    <xsl:value-of select="VALUE"/>
    </ns2:ECXPartySiteId>
    </xsl:if>
    </xsl:for-each>
    </ns2:HCNPOWFEVENT>
    </xsl:template>
    </xsl:stylesheet>
    Any ideas on how this can be achieved ?

    Ok I was able to get fileadapter filenames modified.
    First you cannot do this after a dbadapter query as that functionality seems to be broken. The best way to solve it for me was to simplify the problem, I started with placing the setoutbound header data after reading a simple file and ignoring the files content altogether. I do the set inside a match of the xslt using a constant value, again for simplicity. For the test just put in 'ateststring.txt' in the setoutbound header call, no need to select data from the document at this point; we will get to that. Now get that to work.
    Once you have that working take a value from the incoming document and select it into a variable named myvariable then replace the 'ateststring.txt' with $myvariable. So basically its a three step process for the final solution. Select the data of interest from the document into a variable. add a select statement to make the method call just after that. Make the method call inside the select statement and prepend the variable name with the $ symbol.
    So far I have only tested this file to file and file to ftp, I suspect that jmsadapter to file will work fine too. So the trick for me was to understand that if an incoming document is the result of a query that just wont do. My requirement was to take an input JMS request, use that to drive a query, take the data from the query and write it to a filename as defined in the JMS request. No matter what I did to set the frustrating fileadapter/ftpadapter filename in the header I was unable to do so. I used constant strings etc in every part of the document ( before select, inside select, outside select etc ). It wasnt until I went file to file that I was able to get this to work at all. And then not in the xslt header etc, it MUST be in an area of the document that resulted in a select match, which after review makes sense.
    To work around the query to file issue, I place the results of the data query into a temporary filename%SEQ%.tmp, along with the query results I add the real filename inside the document. I have a file listener that listens for the filename using wildcards filename*.tmp, it takes the file reads it in, pulls the permanent filename from the incoming document, and sets that filename in the header using the steps worked out above by selecting the filename into myvariable.
    You cannot ( to my knowlege ) store variables in ESB so I found I had to put them inside the documents to move the data around. When I am all done with the work through the routing service I strip out the variable data fields that I needed to carry along with the data.
    Please let me know how you are going with this, I hope this saves someone else a bit of frustration.
    Thanks again,
    John

  • Filename from field

    I have seen in past discussions about the difficluty and even impossibility of creating a SAVE AS filename from a field value in an Adobe form.  These discussions were posted back in 2006-2008.
    I am hoping that someone knows a relatively simple way to do this (if it's possible in Acrobat 10)  I am relatively new to Adobe and Javascripts.
    All I want to do is have a button that does a SAVE AS (I can do this), but pull the filename from the "NAME" field in the form and add the .pdf extension and place it in a particular directory on the server.
    Seems like this would be possible...  can anyone point me in the right direction?
    Thanks a million!!
    DMD    

    George,
    I think I should document exactly what is happening, so here goes…
    FROM ACROBAT X PRO - The form is working and saving via the mouse up JavaScript action coupled with the folder-level JS that contains;
    myTrustedSpecialTaskFunc   and  mySaveAs = app.trustPropagatorFunction
    In order to save it for READER users, I do a FILE, SAVE AS, READER EXTENDED PDF, ENABLE ADDITIONAL FEATURES.
    I copy the folder level JS over to the proper JS folder associated with READER
    I can open the file in READER and edit the form fields. 
    When I try to save the file using the Custom Save As button that works in ACROBAT, I get this error;
    NotAllowedError: Security settings prevent access to this property or method.
    Doc.saveAs:4:Field Save:Mouse Up
    NOTES:
    ·         I know that I am using the correct JavaScript folder for READER because I placed this JS code in the folder and it DOES display when I open READER-  app.alert("It works!");
    ·         I am saving the file in both instances to c:\temp\filename.pdf
    ·         When I distribute the form, I will be able to place the folder-level JS on the users machine.
    Per your last post, when I open the file that I have saved as above for READER in ACROBAT and go to file>properties>security I have the following displayed;
    Security: No Security
    Can be opened by: All versions of Acrobat
    Document Restrictions Summary
    Printing: Allowed
    Changing the document: Not allowed*
    Document assembly: Not allowed*
    Content copying: Allowed
    Content copying for accessibility: Allowed
    Page extraction: Allowed
    Commenting: Allowed
    Filling of form Fields: Allowed
    Signing: Allowed
    Creation of template pages: Not allowed*
    *This document restricts some Acrobat features in order to allow for extended features in Adobe Reader
    At this point, I am a a loss as to what is causing the error.  I hope this documentation helps you see where my problem is.
    Thanks,
    Dan

  • Getting filename from HttpServletRequest

    hi,
    i am doing a simple servlet for uploading file.
    i have been googling around, but i could't find a way to retrieve the filename from the HttpServletRequest object. most solution uses another party's code.
    below is the simple code from the html that takes in the file
    <form action="/TestJSP/test2" method="post" enctype="multipart/form-data">           
                <input type="file" name="test">
                <p>
                <input type="submit" value="Upload File!">
    </form>on the servlet side, i tried using
    String filename = request.getParameter("test") ;but i keep getting a null value for the filename.
    thanks in advance!

    of lots of apache package, like the FileItemFactory
    and ServletFileUpload, even the FileItem class.The package is written for a much wider audience, it is designed to do a lot more than just read the name of the file being uploaded. I don't know if you read their Guide.
    Keep in mind that the solution posted on the other thread was custom written to solve the posters problem, which is a lot more than reading the file name.
    If you want shrunken code, then it's not that difficult:
    package test71;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    import org.apache.commons.fileupload.*;
    import javax.servlet.http.*;
    import java.util.List;
    public class AnotherFileUploadServlet extends HttpServlet {
        public void doPost(HttpServletRequest request, HttpServletResponse response) {
            FileItemFactory factory = new DiskFileItemFactory();
            ServletFileUpload upload = new ServletFileUpload(factory);
            List<FileItem> items = null;
            try {
                items = upload.parseRequest(request);
                for (FileItem item : items) {
                    if (!item.isFormField()) {
                        String fileName = item.getName();
                        System.out.println("File Name is: " + fileName);
            } catch (FileUploadException e) {
                e.printStackTrace();
    }

  • Send Filename from j2se FILE Adapter

    Hi,
    I need store filename from local file to xml element. When I use j2ee adapter there is no problem. I sended Filename to Adapter Metadata and through DynamicConfigurationKey in mapping I write it to element.
    My question is: How could i do it in j2se plain adapter? (In our customer there is no way for using j2ee adapter)
    Many thanks,
    Paul.

    hi,
    try this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //obtengo la Key del FileName
    DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    /people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically
    Hope it helps
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM

  • Read filenames from jar-file

    Hi,
    I want to read image names in a jar-file directory in a web start application. This used to work in previous versions of jdk,
    but when I use jdk 1.6.0_20 I get this errormessage:
    "http:\server:8080\test\client.jar The filename, directory name, or volume label syntax is incorrect".
    Why doesn´t this work anymore?
    Some of my code looks like this:
         getFiles("images/toolbuttons/val/", ".gif", true);
         public String[] getFiles(String catalog, String fileNameEnd,
             boolean removePath)
              JarFileFinder jarFileFinder = new JarFileFinder();
              String jarFilePath = jarFileFinder.getClassLocation(
                  this.getClass().getName());
              String[] files = null;
              try
                   if (fileNameEnd != null)
                        fileNameEndFilter = new FileNameEndFilter(fileNameEnd);
                   files = getFilesInJar(jarFilePath, fileNameEndFilter, catalog,
                       removePath);
              catch (Exception e)
                   MessageUtil.messageOk(null, this.getClass().getName(), e.getMessage());
              return files;
         private String[] getFilesInJar(String jarFilePath, FilenameFilter filter,
             String catalog, boolean removePath)
             throws Exception
              ZipFile zipFile = new ZipFile(jarFilePath);
              Enumeration e = zipFile.entries();
              String name;
              ZipEntry zipEntry;
              ArrayList filesList = new ArrayList();
              while (e.hasMoreElements())
                   zipEntry = (ZipEntry) e.nextElement();
                   name = zipEntry.getName();
                   if ((filter == null || !filter.accept(null, name)) ||
                       (catalog != null && !name.startsWith(catalog)))
                        continue;
                   if (removePath == true)
                        name = name.substring(name.lastIndexOf("/") + 1);
                   filesList.add(name);
              String[] files = new String[filesList.size()];
              for (int i = 0; i < filesList.size(); i++)
                   String s = (String) filesList.get(i);
                   files[i] = s;
              return files;
    public class JarFileFinder
         public String getClassLocation(String classname)
              try
                   Class clazz = Class.forName(classname);
                   if (clazz == null) return null;
                   URL url =
                       clazz.getProtectionDomain().getCodeSource().getLocation();
                   String location = url.toString();
                   if (location.startsWith("jar"))
                        url = ((JarURLConnection)
                            url.openConnection()).getJarFileURL();
                        location = url.toString();
                   if (location.startsWith("file"))
                        return new File(URLDecoder.decode(url.getFile(), "UTF-8")).getAbsolutePath();
                   else
                        return URLDecoder.decode(url.toString(), "UTF-8");
              catch (Exception e)
                   MessageUtil.messageOk(null, this.getClass().getName(), e.getMessage());
              return null;
    }

    AndrewThompson64 wrote:
    Lisa_R wrote:
    ..I tried to remove the URLDecoder, but the result was the same. I still get:
    "http:\server:8080\test\client.jar The filename, directory name, or volume label syntax is incorrect".Given an URL should use '/' as opposed to '\', and starts with 2 '/' rather than one, it is not surprising that URL was rejected. Strange as it may seem, programming by typing random characters into an editor will rarely, if ever, work to create a working application.Yes, I agre that it´s not that surprising that the URL was rejected (even though the URL work in firefox and IE). But I didn´t write it that way. The code that put the URL together worked fine in previous versions of the jdk.
    >
    ..The reason why I want to read the filenames from the jar instead of including a list of the names is that if you
    want to add an image then all you have to do is include it in the directory.. That is largely irrelevant, since the Jar needs to be freshly built, uploaded by the developer, and downloaded by the client. Since all of that needs to be done for the addition of a single image, you might as well add an Ant task to the build that provides a single file (like I suggested earlier) that lists the resources of interest. It would take less time to write an Ant task, than debug all the hoops the code is currently jumping through(1) in order to get the information of interest.
    If this was the only place were this method was used I would agre with you, but unfortunatelly it´s not. The application dosen´t only read image filenames it also reads class-names.
    1) And even if you got that working, it would be likely that Sun would introduce some change in the next version of Java that breaks it again. My advice is to stop fighting it, and go with the flow.Thats not good of course! But it has been working for a long time, so I think I will try to make it work again....
    Is there someone out there who has done this or knows how to do it I would appreciate some help! :-)

  • Customized filename for output

    Hi,
    Is there someway to set the filename of an outgoing file adapter based on the contents of the file? We're processing invoices and would like to include the invoicenumber in the file containing the invoice ( each file can only contain exactly one invoice ).
    Thanks in advance
    Thomas

    I use the following code in the xsl to create a custom filename:
    <xsl:variable name="HR_ID"
    select='/imp1:verstuurPlaatsingRequest/imp1:PlaatsingCompleet/ns1:StaffingAction/ns1:ReferenceInformation/ns1:HumanResourceId[@idOwner="StaffingCompany"]/ns1:IdValue[@name="id"]'/>
    <xsl:variable name="FILENAME"
    select="concat('albronuit_', kim:getCurrentDateTime('yyyyMMddHHmmssSSS'),'_', $HR_ID, '.xml')"/>
    <xsl:variable name="SET_FILENAME_OUT"
    select="ehdr:setOutboundHeader('/fhdr:OutboundFtpHeaderType/fhdr :fileName', $FILENAME, 'fhdr=http://xmlns.oracle.com/pcbpel/adapter/ftp/;')"/>
    The first step takes the id from my input xml, the second creates the filename and the third passes this filename to the outboundheader.
    Anne

  • How to show filesystem(filenames from a folder) in SSRS

    Hallo everyone,
    I haved already tried the following solutions
    http://forums.asp.net/t/1422162.aspx?System+Security+SecurityException+Request+for+the+permission+of+type+System+Security+Permissions+FileIOPermission+mscorlib+Version+2+0+0+0+Culture+neutral+PublicKeyToken+b77a5c561934e089+failed+
    AND
    http://stackoverflow.com/questions/8476231/ssrs-custom-code
    Both didn't work.
    My problem is:
    What I want is to show all filenames from a certain folder in SSRS.
    I started with custom code in SSRS:
    Public Function getArrayOfFilename(pathname As String) as Array
    Dim arrayOfFilename As String() = System.IO.Directory.GetFiles(pathname)
    System.Array.Sort(Of String)(arrayOfFilename)
    Return arrayOfFilename
    End Function
    My questions are:
    1. If I try to call this function in a textbox like this:
    getArrayOfFilename("C:\Help\")
    then I get this error:
    [rsRuntimeErrorInExpression] The Value expression for the textrun ‘Textbox8.Paragraphs[0].TextRuns[0]’ contains an error: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    2. Can I use this array as a dataset to carete a list or table  in SSRS?
    Thanks for any hint!

    The error message is related to permission. You are trying to access the file system object of the reporting server.
    Moreover creating a dataset from a custom code can be challenge, instead we can simply use TSQL to do this.
    ----------------- RUN TO ENABLE COMMAND SHELL
    EXEC sp_configure 'xp_cmdshell', 1;
    GO
    -- To update the currently configured value for this feature.
    RECONFIGURE;
    ----------------------QUERY
    DECLARE @folder VARCHAR(100) = 'C:\TESTING'
    DECLARE @DOSCommand varchar(1024); SET @DOSCommand =  'dir ' + @folder +'\'  + ' /A-D  /B'
    EXEC MASTER.dbo.xp_cmdshell @DOSCommand
    Regards, RSingh

  • Get filename from file sender adapter

    Hi Experts,
    I have a question regarding the file/ftp adapter (sender).
    I have a directory with xml and pdf files. for every xml file there is a pdf file with the same filename. for example:
    file1.xml
    file1.pdf
    file2.xml
    file2.pdf
    file3.xml
    file3.pdf
    Now I want to read the xml file with the file sender adapter. afterwards I want to read the related pdf file. for example: If I read the file file1.xml afterwards I want to read the pdf file file1.pdf with the file sender adapter. For this it is nessessary to get the filename from the xml file so that I can read afterwards the pdf file. How can I realise it?
    Thanks and best regards
    Christopher

    Hi srinivas,
    thanks for your quick answer.
    That the file adapter is not able to read pdf files is clear to me. In this case I only want to transport the pdf. that works fine. I tested it.
    the problem is the following:
    I have a xml file with the name "file1.xml". I read the xml file with the sender file/ftp adapter configured with filename "*.xml". Then I want to import the pdf file with the name "file1.pdf". Therefor I need the filename from the xml file.do you know what I mean? So XI has to know the filename of the xml to import the pdf with the same name ...
    regards

  • How to acces the filename from Message Header during variable substitution

    Hi,
    We need to access the attribute filename from Message Header during Variable Substitution.We are able to access the following attributes of Message Header
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if we want to specify the interface name from the message header in the target directory or in the file name scheme, we enter message:interface_name as the reference.
    In the same way i need to access the filename which we get in the Message Header(which we get in the Message Header when we check the Adaptor specific message properties and filename in sender CC).Any suggestions on the same
    Thanks and Regards,
    Bhargav
    Message was edited by:
            bhargav gundabolu
    Message was edited by:
            bhargav gundabolu

    Hi Bhargav,
    Use this UDF to retreive the file name from the Dynamic Configuration Payload in the mapping.
    getFileName(UDF) -
    > Filename(node in the target structure).
    public String getFileName(Container container)
       //write your code here
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Create a node in the target structure top hold the filename returned by the UDF.
    Now your payload will have the filename along with the actual data.
    U can use the variable substution now as u use for the other data in the payload since the filename is now a part of your payload.
    Regards
    San

  • Custom Filename for PDF Report

    Hi,
    I have a requirement to download pdf for a report. I provided the download action as a column link on the report. Clicking the link I direct to the URL for the custom report I created (f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT= MyReport). Pdf gets downloaded with the name MyReport.pdf. But I need to provide a custom name for the downloaded pdf, it should be based on the Id value of the report column something like this Emp123.pdf where 123 is the employee Id (selected row's employee id value in my report).
    I searched in the forums and came across this thread APEX 3 PDF Report Export Custom Filename? but here its mentioned that
    " In this case there's no separate attribute for the file name. And we don't do substitutions on the report query name, so setting the name dynamically as you described in your sample, won't be possible. "
    Since the thread is a old one so posting a new one. Any pointers is highly appreciated.
    Thanks,
    Rakesh

    1. Call the report with utl_http.
    2. Store the output as a BLOB. Either local variable or store it in a table.
    3. Print the blob.
    Here is how you can print the blob and read the package spec for utl_http.
    Re: display a blob on webpage using mod-plsql

Maybe you are looking for