How to set file name and destination folder without user interaction

how can I set the file name and destination folder to generate a pdf file like "c:\myfolder\document.pdf" in this folder automatically.
Is there a tag in .joboptions ?
Goal: User click print button. In the background a pdf will be generated in e.g. "C:\myfolder\document.pdf".
that`s it.
I know that the query dialog for save as can be turned off. But the file name depends on the application.
Thanks for your help.
TK

Hello,
Please post this  in  PI forums
Regards, Anil

Similar Messages

  • File adapter - How to pass File name and path at runtime

    Hi gurus,
    We want to use PI 7.0 as an ftp server and expose the config as a webservice where the service consumer can pass one or more file names and the path to pick them and drop them on a fixed ftp server.
    So precisely, I need to be able to set the file name, target directory parameters in both sender and receiver file/ftp adapters at runtime. is this possible at all ?
    I am aware of passing Adapter specific parameters from sender file adapter to receiver file adapter to create the same folder structure and file names. But my requirement is different. I hope I am clear.
    Could I please get some advise on this .
    Thanks & Kind Regards,
    Jhansi.

    Hi Jhansi,
    Either you can go ahead with dynamic configuration as said by other SDN'ers. Else can go with Java Mapping:
    Here is the code for Java Mapping:
    import com.sap.aii.mapping.api.*;
    import java.io.*;
    import java.text.*;
    import java.util.*;
    public class GetDynamicConfiguration implements StreamTransformation {
    private Map param;
    public void setParameter(Map map1) {
    this.param = map1;
    public void execute(InputStream inputstream, OutputStream outputstream) throws StreamTransformationException {
    try {
    AbstractTrace trace = null;
    // a) Set ouput File name
    String directory=null;
    trace = (AbstractTrace)param.get(StreamTransformationConstants.MAPPING_TRACE );
    param.put(DynamicConfigurationKey.create("http://sap.com/xi/XI/Dynamic", StreamTransformationConstants.DYNAMIC_CONFIGURATION), "");
    DynamicConfiguration conf = (DynamicConfiguration) param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    String filename =conf.get(key);
    conf.put(key, filename);
    trace.addInfo("File name is "+filename);
    if(filename.equals("in.txt"))
    directory = "/home/ftpxi/in";
    if(filename.equals("test.txt"))
    directory = "/home/ftpxi/in/test";
    if(filename.equals("shweta27.txt"))
    directory = "/home/ftpxi/in/test";
    trace.addInfo("Directory name is "+directory);
    conf.put(key1, directory);
    // b) Just copy input file to output file
    byte[] b = new bytehttp://inputstream.available();
    inputstream.read(b);
    outputstream.write(b);
    } catch (Exception exception) {
    exception.printStackTrace();

  • How to print file name and date on document

    How can we print the file name and date, like in the old days, on a document as a header or footer?

    Not the print dialog for iWork but in the app itself. Here is Pages:
    Regards,
    Colin R.

  • How to run eCATT in dialog mode(foreground) without user interaction(Enter)

    Hi,
        As part of performance testing using eCATT we want to execute a test script in dialog mode(foreground) without user interaction like pressing enter at end of each screen. The reason behind this is we want to run a test script 1000 times in dialog mode to analyze the performance of that particular transaction code. Hence its not practical to keep pressing enter at end of each screen. We do not want to execute this in background as that does not simulate the real time transaction processing and give the exact performance analysis.
    We have a test script with VA01 recording and are able to execute it perfectly in background as well as foreground (by pressing enter at end of each screen).
    I would like to know if there are any settings to be made to execute the test script in dialog mode without pressing enter. I have referred the below link which has not solved my purpose.
    ECATT - Running in Foreground (Enter Key)
    Thank You.

    Gopi,
    I never used this transaction before, but my approach would be as below. You may want to try and let me know how it works.
    Before running this script from ST30, first try to run from SECATT for one iteration to make sure the script and target system RFCs are working. Then try again in ST30. Still if you have the issue, ask your basis to take a look when you kick off from ST30 in the target system whether ST30 were able to successfully make the RFC call to that system.
    thanks
    Venkat

  • How to get file name and set it as static text in a dialog

    Hi,
    I m new to InDesign Programming.
    I have a menu that creates a dialog with different controls in it.
    The dialog will appear only if there is an open file. I need to display the name of the open file as a static text in the dialog. I know to get the name of the current file but don't know how to pass this each time the dialog is opened.
    Can someone help me in doing this?
    I m using InDesign CS3 in MAC OS.
    Thank You.

    those are the methods, but you can't use getCharacterEncoding(), actually, cuz it seems it's not necessarily filled in.. or at least that might be on some servers only, like Tomcat 4. As for encodings, you need to do a search for character encoding names and use the appropriate one.

  • How to set file names?

    Using TCS 5, RH11, FM12, all patched up, if I set a marker, such as "Filename" in FrameMaker, can RoboHelp use the contents of that marker to set the file name of the HTML file it creates? How? Thoughts?
    Cheers,
    Sean

    Hi,
    Thanks for working with me on this. I appreciate your help. The last time I used RoboHelp was when Blue Sky owned it, at the original version 6. I see it has aged logically.
    Cheers,
    Sean

  • How to set file name in a JFileChooser to be some default String?

    Dear all,
    I am tring to make my JFileChooser more user-friendly, so every time that a JFileChooser show up, I would like to fill the file name with some default String, instead of just leaving them blank.
    Does anybody know how to do this?
    Many Thanks!

    look up the set...() methods of the JFileChooser api docs

  • JList: how a set a "name" and "value" for a element

    my JList
    DefaultListModel listMBuddy;
    JList listBuddy;
    listMBuddy = new DefaultListModel();
    listBuddy = new JList(listMBuddy);
    listMBuddy.insertElementAt("buddy name 1", listMBuddy.size());
    listMBuddy.insertElementAt("buddy name 2", listMBuddy.size());
    listMBuddy.insertElementAt("buddy name 3", listMBuddy.size());a string "buddy name 1" will be show in JList, it is like a name of element.
    how i set value for "buddy name 1"? like html
    <select>
    <option value="5">buddy name 1</option>
    <option value="7">buddy name 2</option>
    <option value="2">buddy name 3</option>
    </select>
    thanks

    You have to write your own renderer.
    example:
    public class MyListsRenderer extends JPanel implements ListCellRenderer {
         JTextArea t;
         private LinkedHashMap<Integer, String> departmentsList;
         private LinkedHashMap<Integer, Boolean> checkedList;
         public MyListsRenderer(int tabSize) {
              t = new JTextArea();
              t.setTabSize(tabSize);
         public Component getListCellRendererComponent(JList list, Object value,
                   int index, boolean isSelected, boolean cellHasFocus) {
              Integer id = (Integer) value;
              // you need to create class that get an id (value) and return name
              //this is my example:
              String name = Contacts.getInstance().getContacts().get(
                        (Integer) value);
              t.setText(name);//this is the text in the list row
              add(t);
              return this;
    }

  • How to incorporate File name and timestamp automatically into select and save file dialog box?

    Hello,
    i am trying to incorporate the file name which is inputed by the user along with the timestamp into the selected and save file dialog box. Can you help?
    Thanks
    Solved!
    Go to Solution.

    You can pass a default file name to the 'File Dialog' Express VI.
    Use the 'selected path' output to open the file.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness
    Attachments:
    FileDialog.vi ‏21 KB

  • How to set static name and id for IFRAME html generated

    Hi,
    The name and the id of the Iframe is generated dynamically as shown in this example (final html generated):
    <IFRAME frameBorder=0 id="ivuFrm_page0ivu3" name="pb_837905732" title="Direccion Comunicaciones Integradas Home" src="home_direccion_comunicaciones_integradas.html" style="WIDTH:100%;HEIGHT:455px;" fixedHeight="455px" ></IFRAME>
    However, we need to link to this iframe using the  "target" property which has not been possible because we need static iframe name.
    Anny suggestions?
    THANKS.

    Hi,
    first of all  i think it is possible, you just need create a layout with nwds,  Thats possible in a .Par project you need this referance in portalapp.xml ;
    <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
    after creating this  you need create a jsp file for coding, it is possible with writing this in portalappxml ;
    <property name="com.sap.portal.reserved.layout.TemplateFile" value="example.jsp"/>
    in this jsp page write this code:
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
    <%@ page import = "com.sapportals.portal.prt.pom.IPortalNode" %>
    <%@ page import = "com.sapportals.portal.prt.connection.IPortalResponse" %>
    <%@ page import = "com.sapportals.portal.prt.connection.PortalHtmlResponse" %>
    <%@ page import = "com.sapportals.portal.prt.util.html.HtmlDocument" %>
    <%@ page import = "com.sapportals.portal.prt.util.html.HtmlMeta" %>
    <%@ page import = "com.sapportals.portal.prt.util.html.HtmlTitle" %>
    <%@ page import = "com.sapportals.portal.prt.util.html.HtmlDocType" %>
    <%
    IPortalNode portalNode = componentRequest.getNode().getPortalNode();
    IPortalResponse portalResponse =
         (IPortalResponse) portalNode.getValue(
              IPortalResponse.class.getName());
    HtmlDocument htmlDocument = null;
    if (portalResponse instanceof PortalHtmlResponse) {
         PortalHtmlResponse htmlResponse =
              (PortalHtmlResponse) portalResponse;
         htmlDocument = htmlResponse.getHtmlDocument();
         com.sapportals.portal.prt.util.html.Html htm = htmlDocument.getHtml();
         com.sapportals.portal.prt.util.html.HtmlBody body = htmlDocument.getBody();
         body.getElement("iframe name");
    You can get elements and change, remove or add new elements to framework
    %>
    <table width ="100%" >
                       <lyt:template>
                           <tr>
                        <td width ="25%" align="center" valign="top">
                                <lyt:container id="column1" /> 
                           </td>
                        <td width ="50%" align="center" valign="top">
                             <lyt:container id="column2" />
                           </td>
                           <td>     
                        <td width ="25%" align="center" valign="top">
                             <lyt:container id="column3" />
                           </td>
                      </tr>
                      </lyt:template>
              </table>
    After Deploying the layout, create a page with this layout and inculude the this empty  page to framework.
    İts should be work.
    Best regards.

  • How to compare index names and columns from different user?

    I am using below query to compare two indexes from 2 different users but even though index name and columns are same... result shows me they are different.. what I am doing wrong? Thanks
    WITH t AS
            (SELECT COUNT (DISTINCT index_owner || index_name || indexed_cols)
                       cnt
               FROM (  SELECT index_owner,
                              index_name,
                              listagg (column_name, ',')
                                 WITHIN GROUP (ORDER BY column_position)
                                 indexed_cols
                         FROM dba_ind_columns
                        WHERE index_name='XPKTBL_A'
                     GROUP BY index_owner, index_name))
    SELECT CASE
              WHEN cnt > 1 THEN 'Indexes are different'
              WHEN cnt = 0 THEN 'Indexes dont exist'
              WHEN cnt > 1 THEN 'Indexes are identical'
           END
              commnt
      FROM t
    Result:
    Indexes are different
    but Actually if you check below they are same After when I run this query:
    SELECT index_owner,
             index_name,
             listagg (column_name, ',') WITHIN GROUP (ORDER BY column_position)
                indexed_cols
        FROM dba_ind_columns
       WHERE index_name='XPKTBL_A'
    GROUP BY index_owner, index_name;
    Result:
    Index_owner
    Index_name
    Index_cols
    USER1
    XPKTBL_A
    FIELD_A1
    USER2
    XPKTBL_A
    FIELD_A1

    Hi,
    Erhan_toronto wrote:
    I am using below query to compare two indexes from 2 different users but even though index name and columns are same... result shows me they are different.. what I am doing wrong? Thanks
    WITH t AS
            (SELECT COUNT (DISTINCT index_owner || index_name || indexed_cols)
    So index_owner is 'USER1' in one case, and 'USER2' in the other; right?
    A string that starts with 'USER1' will be distinct from a string that starts with 'USER2', no matter what the rest of the string contains.  Maybe you don't want to compare the owners, or maybe you meant to use some other column (such as table_name) instead of index_owner).
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE, CREATE INDEX and CONNECT statements), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How can I set the file name and folder for output to PDF from another application?

    I am developing an application in Microsoft Access where the printed reports are to be saved in PDF format for archive purposes. I can send the output to Adobe X, but the default file name is the Access report name and the folder selected is the one last used.
    What I need to do is to create the file with a specific name (which changes for each run) and to a specific folder (which also changes for each run).
    The language I'm using is Visual Basic for Applications which is located in an Access form that controls the report production.
    Any suggestions, please?

    Got it - many thanks.

  • Save As with suggested file name and folder

    I would like the user to be able to press a save button on the pdf and the "Save As dialogue box" pops up pre-populated with a file name and location choosen. The user can then choose to name the file something otherwise or select a new location. I would just like to save them the steps of copying the field data and finding the correct folder (deeply buried on server) however to place the finished document in.
    This doesn't seem to require a trusted function, but how do I suggest the file name based on a field name in the document. And how do I suggest the folder the document should be saved into?
    Thanks in adavance.

    Hi,
    you need a folder level script to use the browseForDoc method.
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=10 4

  • How to set dynamic name of the mail attachment according to source file ?

    Hi,gurus:
    Our scenario is like below:
    Sending files from an FTP server to another FTP server without using the integraiton repositary,and the file name is not changed .Now, we want to also send the file to some with by mail adapter.The scenario  now works by using two business services in receiver determination.But the name of the attachment is "untitled.xml".We know how to set the file name staticly,but how to set the name dynamicly according to the source file name ?
    I have checked miachel's blog "XI: Dynamic name in the mail attachment - pseudo "variable substitution"(/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution),but how can I get the source file name?
    And another question:Must we restart the adapter or j2ee engine to make the user defined module work?

    Hi,
    >>>but how can I get the source file name?
    form dynamicconfiguration (ASMA)
    >>>And another question:Must we restart the adapter or j2ee engine to make the user defined module work?
    no need for a restart
    Regards,
    Michal Krawczyk

  • How to send orignal file name to destination

    Hi All,
               How do we send orignal file name to destination in receiver file adapter?
    Xier

    Hey,
    In the below URL - find the parameters against sender comm.channel and receiver comm.channel
    http://sapient.xi.googlepages.com/xi-excellentintegration
    You will find in <b>Adapter Specific Message Attributes</b> - Sender channel & Receiver channel -2 in my above URL.
    If its not clear, then let me know.
    Best regards,
    raj.

Maybe you are looking for

  • How can I use Drupal as a third party CMS with ATG E-Commerce Application?

    Hi Friends, We are planning to use a third party Freeware Content Management System (CMS) for web site content in ATG E-Commerce Application, instead of ATG content Administration or merchandising. Can anybody please let me know how can I use a third

  • ITunes will not launch when iPod is connected

    I've been having a problem over the last several days where iTunes will bounce a couple of times in the Dock, the black triangle appears below the Dock icon, but no window opens up and eventually iTunes shows that it's not responding. I am unable to

  • Printing problem with Acrobat V.10.1.12

    I recently had to complete a mail merge type exercise to create labels and supply print ready PDF to commercial printer.  The complete document was 3,334 pages.  When I went to print the PDF printer seemed to be going through all the motions, but at

  • CS4 - New layer won't show added color overlay, gradient, patterns?

    I'm using CS4 Extended for a few years... its been working fine but all of a sudden my layers are blank? I've tried Google but can't find a solution. Started a new graphic for a label using a 300dpi resolution, 23.250" inches wide and 2.500" high. Fi

  • HT201342 My husbands icloud took over my iPhone

    I plugged my iphone 4 into my MacBook Pro to sync - nothing new - but my icloud disappeared and my husband's icloud took over.  My icloud is no long present in my mail accounts on my MacBook Pro or on  my iphone.  Can't we have two iclouds on the Mac