Bind webdynpro context to txt file

Hi, I m creating an application using GP API.
My first callable object creates a .txt report file and my second callable object sends a mail to administrators, with the previously created .txt report file attached.
I would like to bind the .txt file atatched to the first callable object context, so that, the second callable object can get it.
The problem is that I do not know how to do it.
If I use the type com.sap.ide.webdynpro.uielementdefinitions.Resource it will not be compatible with my text file of type File.
Any idea ? I would realy appreciate your help, since I've looking for a solution for days...
Thanks

Of course I can.
I create the file like this:
try {
               mailData = File.createTempFile("mailData", ".txt");
               mailData.deleteOnExit();
          } catch (IOException e3) {
               // TODO Auto-generated catch block
               logme("IOException : " + e3.getMessage());
I am developping a Web Dynpro DC as a callabe object. I would like to map this callable object to another one that is in charge to send a mail within the txt file attached. This is my business scenario. I know that I can send a mail directly through the web dynpro application but ti is not part of the business rules.
I cannot bind the txt file to the context, unless it is binary or IWDResource...
Thanks for your reply...

Similar Messages

  • Round trip clearing adobe form field values not binded to webdynpro context

    Hi ,
    I have developed a webdynpro ABAP application with Interactive form. I'm calling a webservice on 'exit event' of the one of the form fields. Once webservice is executed, Im filling a table with 300 rows which is in the form. The table fileds are binded to webservice fields from the dataview of the form , these are not webdynpro context attributes in the data view.
    But when I open any seach help , this table values are disappearing. I need to execute the webservice again to get the values.
    can any one tell why the values in the table are disappearing? since I have binded to the webservice fields the values should remain there.
    Apprecaite your response.
    Regards,
    Ravi

    I looked over that note yesterday, but too quickly - i thought it was an older note explaining which standard programs to run to test out the connection etc...
    but i see now that there is an important point:
    The "pdfSource" attribute of the InteractiveForm UI element should be linked only if the Web Dynpro ABAP application requires the PDF document for further processing (saving data to the database, and so on). However, it is mostly only the data entered in the interactive form that is relevant for the application. If this attribute is linked, the Web Dynpro ABAP framework must request an updated PDF document from the Adobe document services each time data is changed in the form.
    It looks like this is saying that a round trip is possible in WDA.
    EDIT - I wish SAP would fix this certificate issue. My first post every day is doubled because of it.
    Edited by: robert phelan on Jan 7, 2010 3:22 PM
    Edited by: robert phelan on Jan 7, 2010 3:25 PM

  • MIclient gets closed ,generates the HTTPError.txt file when save ispressed

    We have created an application which displays data in a table .When the application is launched through mobile client and the save button is pressed after making any change in the existing data than the client gets closed and an HTTPError.txt file gets generated which displays the following trace.
    <?xml version="1.0" encoding="UTF-8"?><!-- Server Error Page --><XBCML version="2" supportBits="42" xmlns:SAP="SAP"><Localization dateFormat="MM/dd/yyyy" decimalSeparator="." groupingSeparator="," locale="en_US"/><Client name="" version="" supportBits="6A"/><Server supportBits="537205" workProtectMode="%WORKPROTECTIONMODE%"><Exception text="An error has occurred: Failed to process the request. [] " callStack="java.lang.IllegalArgumentException: No InternalState found for id &quot;110&quot;. List of available states { [0]-CONSISTENT (0); [101]-NEW (101); [102]-MOIFIED_LOCAL (102); [103]-MOIFIED_GLOBAL (103); [104]-REMOVED_LOCAL (104); [105]-REMOVED_GLOBAL (105); [201]-INSERTED (201); [202]-UPDATED (202); [203]-DELETED_LOCAL (203); [204]-VALUE_DELETED_GLOBAL (204); [299]-HARD_DELETED (299); [301]-REJECTED_INSERT (301); [302]-REJECTED_UPDATE (302); [303]-REJECTED_DELETE (303); }
         at com.sap.tc.mobile.cfs.mbosync.InternalSyncState.getByShortValue(InternalSyncState.java:1169)
         at com.sap.tc.mobile.cfs.mbosync.MBOChangeListener.transistNodeWithClientModify(MBOChangeListener.java:205)
         at com.sap.tc.mobile.cfs.mbosync.MBOChangeListener.beforeUpdate(MBOChangeListener.java:651)
         at com.sap.tc.mobile.cfs.pers.cache.DefaultPersistenceManager.validateUpdate(DefaultPersistenceManager.java:1523)
         at com.sap.tc.mobile.cfs.pers.impl.spi.cache.AbstractPersistable.mdDoModify(AbstractPersistable.java:197)
         at com.sap.models.SORDER_HEADER.setVKORG(SORDER_HEADER.java:346)
         at com.sap.app.customercomp.wdp.IPublicCustomerComp$IQueryResultElement.wdSetObject(IPublicCustomerComp.java:2021)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdSetObject(MappedNodeElement.java:74)
         at com.sap.tc.webdynpro.progmodel.context.NodeElement.wdSetObject(NodeElement.java:649)
         at com.sap.tc.webdynpro.progmodel.context.AttributePointer.setObject(AttributePointer.java:421)
         at com.sap.tc.webdynpro.clientserver.data.PendingUserInput.transportPendingUserInput(PendingUserInput.java:676)
         at com.sap.tc.webdynpro.clientserver.data.PendingUserInput.transport(PendingUserInput.java:364)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.transportPendingUserInput(DataContainer.java:318)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.transport(ClientComponent.java:579)
         at com.sap.tc.webdynpro.clientserver.phases.TransportIntoContextPhase.execute(TransportIntoContextPhase.java:54)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:161)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:109)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:96)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:469)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:52)
         at com.sap.tc.webdynpro.clientimpl.scxml.client.SmartClient.executeTasks(SmartClient.java:612)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1431)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1251)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoProcessing(AbstractExecutionContextDispatcher.java:158)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoProcessing(ExecutionContextDispatcher.java:88)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:81)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:507)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:527)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:458)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:249)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:699)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:231)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:231)
         at com.sap.tc.mobile.mwd.runtime.fwk.dispatcher.http.WebDynproRequestHandler.handleRequest0(WebDynproRequestHandler.java:157)
         at com.sap.tc.mobile.mwd.runtime.fwk.dispatcher.http.WebDynproRequestHandler.handleRequest(WebDynproRequestHandler.java:110)
         at com.sap.tc.mobile.mwd.runtime.fwk.dispatcher.http.AbstractRequestHandler.handleRequest(AbstractRequestHandler.java:306)
         at com.sap.tc.mobile.mwd.runtime.fwk.dispatcher.http.SimpleHttpServer.handleRequest0(SimpleHttpServer.java:247)
         at com.sap.tc.mobile.mwd.runtime.fwk.dispatcher.http.SimpleHttpServer.handleRequest(SimpleHttpServer.java:215)
         at com.sap.tc.mobile.mwd.runtime.fwk.dispatcher.http.SimpleHttpServer.run(SimpleHttpServer.java:164)
         at java.lang.Thread.run(Unknown Source)
    "/></Server></XBCML>
    The applicationhas been built according to the mobile application development steps for Mobile application for laptops through NWDS.As i m new to it please help me to solve the issue .

    Thotheolh wrote:
    I was thinking that the String format of the key retrieved in the getKey() of treating it literally as a byte[].It does not work like that.
    >
    Example is that you retrieve the String key = "B@12rty]"; The only way you would get this is if you had taken the toString() method on an array of bytes. The toString() method of an array does not give one a String representation of the content of the array - it just gives you a pseudo reference to the array which is of little practical use.
    How do you convert the String into byte[] byte as exactly "B@12rty]" so that when you do a do a System.out.println(byte); it would return "B@12rty]" rather than other things.See my comment above.
    >
    In simple terms , treating the String as a byte[] by literally taking the String is the byte[] without converting it into something else so to save the trouble.Strings contain characters. Bytes are not characters so Strings should not be used as containers for bytes.

  • Accessing txt files in the App server from web application

    Hi All,
    We have a use case, where we need to access txt files from the ADF web application.
    We will display to the user the path of the file and whenever he/she clicks, it should be downloaded automatically to the users machine.
    Environments we need to develop: JDeveloper 10.1.3.4 and Oracle App Server 10.1.3.1
    And our server has credentials and only those who have access to the server can access the files.
    Point me or suggest me a good solution to this use case.
    Regards,
    Naga.

    Hi Joonas,
    i was able to download the files, thanks a lot for your guidance. i will mark your answer as correct.
    Can you let me know how to achieve the following usecase.
    1. there will be multiple text files in the server i.e., out of our web application context like in some folder
    2. And we need to give user a http link and if he clicks on the link that file should be downloaded automatically to his machine.
    and we are using oracle app server 10.1.3.4, please point me to some document or example.
    thank you.
    naga.

  • Only writing Integer pixel array to a .txt file,or showing in Frame

    Sir,
    I want to write integer values (range:0 to 255) to a .txt file .Actually after manipulating a .jpeg/.gif image I have gotten a 2D pixel array and a 1D pixel array that can be easily shown in console but I want to write this pixel array into a .txt file. Using of writeInt() is not working. Actually after using this faction the created file contain information which is non-alphanumeric /alphanumeric characters......
    following is error free the code: Plz. See only and only into the �class TestImage�and plz look after line marked by //�my_problem_to_be_resolved.�It is just few lines of code .I promise you will not be bothered.Plz��..
    import java.awt.*;
    import java.io.File;
    import java.io.FileWriter;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.imageio.stream.*;
    import java.awt.image.Raster;
    import java.awt.image.WritableRaster;
    class Image {
    protected int width,height;
    // 'samples' stores the image pixel values.
    protected int[][] samples;
    // Constructor: Reads the image from the
    // specified file name.
    public Image(String filename)
    throws Exception { read(filename); }
    // Returns the pixel width of the image.
    public int getWidth() { return width; }
    // Returns the pixel height of the image.
    public int getHeight() { return height; }
    // Reads the image from the specified file
    // name into the 'samples' array. Throws an
    // exception if the image is stored in an
    // unsupported file format (currently only
    // .GIF, .JPG, and .PNG are supported by Sun).
    public void read(String filename)
    throws Exception {
    // Extract the file name suffix.
    String ext = filename.substring
    (filename.indexOf('.')+1);
    // Create a file object for the file name.
    File fileImage = new File(filename);
    // Get a list of ImageReaders that claim
    // to be able to decode this image file
    // based on the file name suffix.
    Iterator imageReaders = ImageIO.
    getImageReadersBySuffix(ext);
    ImageReader imageReader;
    // Grab the first ImageReader in the list.
    if (imageReaders.hasNext())
    imageReader = (ImageReader)
    imageReaders.next();
    // If we get here we cannot decode the image.
    else throw new IIOException
    ("Unsupported image format");
    // Create a file input stream object to
    // read the image date.
    FileImageInputStream imageInputStream =
    new FileImageInputStream(fileImage);
    // Tell the ImageReader object to read data
    // from our file input stream object.
    imageReader.setInput(imageInputStream);
    // Get the width and height of the image.
    width = imageReader.getWidth(0);
    height = imageReader.getHeight(0);
    // Read the image from the file input stream,
    // and close the input stream when done.
    BufferedImage bufImage =
    imageReader.read(0);
    imageInputStream.close();
    // Get a raster object so we can extract the
    // pixel data from the BufferedImage.
    WritableRaster wRaster =
    bufImage.getRaster();
    // Create our 'samples' 2d-array.
    samples = new int[height][width];
    // Extract the image data into our 'samples'
    // array.
    for (int row = 0; row < height; row++)
    for (int col = 0; col < width; col++)
    samples[row][col] =
    wRaster.getSample(col,row,0);
    // Write the image stored in the 'samples'
    // array to the specified file. The file name
    // suffix should be a supported image file
    // format (currently either .JPG or .PNG).
    public void write(String filename)
    throws Exception {
    // Extract the file name suffix.
    String ext = filename.substring
    (filename.indexOf('.')+1);
    // Create a file object for the file name.
    File fileImage = new File(filename);
    // Get a list of ImageWriters that claim to
    // be able to encode images in the specified
    // image file format based on the file name
    // suffix.
    Iterator imageWriters = ImageIO.
    getImageWritersBySuffix(ext);
    ImageWriter imageWriter;
    // Grab the first ImageWriter in the list.
    if (imageWriters.hasNext())
    imageWriter = (ImageWriter)
    imageWriters.next();
    // If we get here we cannot encode the image.
    else throw new IIOException
    ("Unsupported image format");
    // Create a file output stream object to
    // write the image data.
    FileImageOutputStream imageOutputStream
    = new FileImageOutputStream
    (fileImage);
    // Tell the ImageWriter to use our file
    // output stream object.
    imageWriter.setOutput
    (imageOutputStream);
    // The ImageWriter.write() method expects a
    // BufferedImage. Convert our 'samples' array
    // into a BufferedImage.
    BufferedImage bufImage =
    createBufferedImage();
    // Encode the image to the output file.
    imageWriter.write(bufImage);
    imageOutputStream.close();
    // Draws the image stored in the 'samples'
    // array on the specified graphics context.
    public void draw(Graphics gc,int x,int y){
    BufferedImage bufImage =
    createBufferedImage();
    gc.drawImage(bufImage,x,y,null);
    // Converts the 'samples' array into a
    // BufferedImage object. Students do not have
    // to understand how this works.
    private BufferedImage
    createBufferedImage() {
    // Create a monochrome BufferedImage object.
    BufferedImage bufImage = new
    BufferedImage(width,height,
    BufferedImage.TYPE_BYTE_GRAY);
    // Create a WriteableRaster object so we can
    // put sample data into the BufferedImage
    // object's raster.
    WritableRaster wRaster =
    bufImage.getRaster();
    // Copy the 'samples' data into the
    // BufferedImage object's raster.
    for (int row = 0; row < height; row++)
    for (int col = 0; col < width; col++)
    wRaster.setSample
    (col,row,0,samples[row][col]);
    // Return the newly created BufferedImage.
    return bufImage;
    } // End of Class Image
    class TestImage {
    public static void main(String args[])
    throws Exception {
    // Create a frame to display the image.
    Frame frame = new Frame("Test Image");
    frame.setSize(1024,768);
    frame.setVisible(true);
    Graphics gc = frame.getGraphics();
    try {
    // Read the image from the file.
    Image img = new Image("C:/lilies.jpg");
    int height=img.getHeight();
    int width =img.getWidth();
    //�my_problem_to_be_resolved.�
         File image_object_arry=new File("C:/Image_array.txt");
         FileOutputStream image_object_arry_stream= new FileOutputStream(image_object_arry);
         DataOutputStream int_image_object_arry_stream=new DataOutputStream(image_object_arry_stream);
    //Conversion of two dimensional pixel arrry into one dimensional array
    int intPixels1[] = new int [height * width];
    int k = 0;
    for(int i = 0; i <= width; i++) {
    for(int j = 0; j <= height; j++) {
    intPixels1[k] = img.samples[i][j];
    int_image_object_arry_stream.writeInt((int) intPixels1[k]);
    // System.out.println(intPixels1[k]);
    k = k+1;
    import java.awt.*;
    import java.io.File;
    import java.io.FileWriter;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.imageio.stream.*;
    import java.awt.image.Raster;
    import java.awt.image.WritableRaster;
    class Image {
    protected int width,height;
    // 'samples' stores the image pixel values.
    protected int[][] samples;
    // Constructor: Reads the image from the
    // specified file name.
    public Image(String filename)
    throws Exception { read(filename); }
    // Returns the pixel width of the image.
    public int getWidth() { return width; }
    // Returns the pixel height of the image.
    public int getHeight() { return height; }
    // Reads the image from the specified file
    // name into the 'samples' array. Throws an
    // exception if the image is stored in an
    // unsupported file format (currently only
    // .GIF, .JPG, and .PNG are supported by Sun).
    public void read(String filename)
    throws Exception {
    // Extract the file name suffix.
    String ext = filename.substring
    (filename.indexOf('.')+1);
    // Create a file object for the file name.
    File fileImage = new File(filename);
    // Get a list of ImageReaders that claim
    // to be able to decode this image file
    // based on the file name suffix.
    Iterator imageReaders = ImageIO.
    getImageReadersBySuffix(ext);
    ImageReader imageReader;
    // Grab the first ImageReader in the list.
    if (imageReaders.hasNext())
    imageReader = (ImageReader)
    imageReaders.next();
    // If we get here we cannot decode the image.
    else throw new IIOException
    ("Unsupported image format");
    // Create a file input stream object to
    // read the image date.
    FileImageInputStream imageInputStream =
    new FileImageInputStream(fileImage);
    // Tell the ImageReader object to read data
    // from our file input stream object.
    imageReader.setInput(imageInputStream);
    // Get the width and height of the image.
    width = imageReader.getWidth(0);
    height = imageReader.getHeight(0);
    // Read the image from the file input stream,
    // and close the input stream when done.
    BufferedImage bufImage =
    imageReader.read(0);
    imageInputStream.close();
    // Get a raster object so we can extract the
    // pixel data from the BufferedImage.
    WritableRaster wRaster =
    bufImage.getRaster();
    // Create our 'samples' 2d-array.
    samples = new int[height][width];
    // Extract the image data into our 'samples'
    // array.
    for (int row = 0; row < height; row++)
    for (int col = 0; col < width; col++)
    samples[row][col] =
    wRaster.getSample(col,row,0);
    // Write the image stored in the 'samples'
    // array to the specified file. The file name
    // suffix should be a supported image file
    // format (currently either .JPG or .PNG).
    public void write(String filename)
    throws Exception {
    // Extract the file name suffix.
    String ext = filename.substring
    (filename.indexOf('.')+1);
    // Create a file object for the file name.
    File fileImage = new File(filename);
    // Get a list of ImageWriters that claim to
    // be able to encode images in the specified
    // image file format based on the file name
    // suffix.
    Iterator imageWriters = ImageIO.
    getImageWritersBySuffix(ext);
    ImageWriter imageWriter;
    // Grab the first ImageWriter in the list.
    if (imageWriters.hasNext())
    imageWriter = (ImageWriter)
    imageWriters.next();
    // If we get here we cannot encode the image.
    else throw new IIOException
    ("Unsupported image format");
    // Create a file output stream object to
    // write the image data.
    FileImageOutputStream imageOutputStream
    = new FileImageOutputStream
    (fileImage);
    // Tell the ImageWriter to use our file
    // output stream object.
    imageWriter.setOutput
    (imageOutputStream);
    // The ImageWriter.write() method expects a
    // BufferedImage. Convert our 'samples' array
    // into a BufferedImage.
    BufferedImage bufImage =
    createBufferedImage();
    // Encode the image to the output file.
    imageWriter.write(bufImage);
    imageOutputStream.close();
    // Draws the image stored in the 'samples'
    // array on the specified graphics context.
    public void draw(Graphics gc,int x,int y){
    BufferedImage bufImage =
    createBufferedImage();
    gc.drawImage(bufImage,x,y,null);
    // Converts the 'samples' array into a
    // BufferedImage object. Students do not have
    // to understand how this works.
    private BufferedImage
    createBufferedImage() {
    // Create a monochrome BufferedImage object.
    BufferedImage bufImage = new
    BufferedImage(width,height,
    BufferedImage.TYPE_BYTE_GRAY);
    // Create a WriteableRaster object so we can
    // put sample data into the BufferedImage
    // object's raster.
    WritableRaster wRaster =
    bufImage.getRaster();
    // Copy the 'samples' data into the
    // BufferedImage object's raster.
    for (int row = 0; row < height; row++)
    for (int col = 0; col < width; col++)
    wRaster.setSample
    (col,row,0,samples[row][col]);
    // Return the newly created BufferedImage.
    return bufImage;
    } // End of Class Image
    /*class TestImage {
    public static void main(String args[])
    throws Exception {
    // Create a frame to display the image.
    Frame frame = new Frame("Test Image");
    frame.setSize(1024,768);
    frame.setVisible(true);
    Graphics gc = frame.getGraphics();
    try {
    // Read the image from the file.
    Image img = new Image("C:/srk.jpg");
    // Display the image.
    img.draw(gc,10,40);
    // Flip the image upside down
    //img.flipX();
    // Display the flipped image.
    img.draw(gc,20+img.getWidth(),40);
    // Write the new image to a file
    img.write("HorseNew.jpg");
    } catch (Exception e) {
    System.out.println
    ("Exception in main() "+e.toString());
    class TestImage {
    public static void main(String args[])
    throws Exception {
    // Create a frame to display the image.
    Frame frame = new Frame("Test Image");
    frame.setSize(1024,768);
    frame.setVisible(true);
    Graphics gc = frame.getGraphics();
    try {
    // Read the image from the file.
    Image img = new Image("C:/lilies.jpg");
    int height=img.getHeight();
    int width =img.getWidth();
    File image_object_arry=new File("C:/Image_array.txt");
    FileOutputStream image_object_arry_stream=new FileOutputStream(image_object_arry);
         DataOutputStream int_image_object_arry_stream=new DataOutputStream(image_object_arry_stream);
    //Conversion of two dimensional pixel arrry into one dimensional array
    int intPixels1[] = new int [height * width];
    int k = 0;
    for(int i = 0; i <= width; i++) {
    for(int j = 0; j <= height; j++) {
    intPixels1[k] = img.samples[i][j];
    int_image_object_arry_stream.writeInt((int) intPixels1[k]);
    // System.out.println(intPixels1[k]);
    k = k+1;
    catch (Exception e) {
    System.out.println("Exception in main() "+e.toString());
    catch (Exception e) {
    System.out.println("Exception in main() "+e.toString());
    }

    My Friend, you need to put your code within CODE tags
    And I suspect if anyone would go through your code this way.
    Assuming your problem is to write pixel values to a file you may use this,
          try{
            // Create file
            FileWriter fstream = new FileWriter("out.txt");
            BufferedWriter out = new BufferedWriter(fstream);
            for(int i =0; pixels.length() ; i++)
              out.write(pixels[i]+"\t");
           //Close the output stream
           out.close();
           }catch (Exception e){//Catch exception if any
          System.err.println("Error: " + e.getMessage());
        }

  • Corruption in cshelp.txt file on save

    When I add a topic ID to the cshelp.txt file using the
    Context Sensitive Text-Only Topics editor and click Save, I get an
    error message about an invalid file. When I open the file in
    notepad it looks like this:
    . t o p i c H I D C _ B U T T O N _ C H A N G E _ S E T T I N
    G S _ S E C U R I T Y _ P R O P S _ P R O P P A G E
    T e s t t e x t
    The editor has added a space between each character (and
    removed one after topic). I think it is related to Unicode
    enhancements in RH7, but it means I cannot create a help file (CHM)
    that has working CS help.
    Has anyone got a workaround for this?
    Thanks

    I started this thread and have since developed a workaround
    (similar to jc@salient) which I have detailed in a two-page Word
    document. The document also explains several RoboHelp defects
    related to this problem (hint to any Adobe people who monitor this
    forum).
    This interface doesn't seem to allow attachments; so, if
    anyone needs a copy, email me at [email protected] and
    ask for it. Please put Robohelp on the subject line.
    If anyone adds refinements later, please share.
    Regards

  • [CS3 JS]  Reading TXT file content into String

    Hello,
    I'm currently wanting to display a dialog box that has a dropdown menu containing all countries of the world.
    I have an external txt file that contains a list of all countries.
    I thought I would simply read-in the contents of the 'txt' file into a string and use it for displaying the list.
    For example
    i Instead of the usual:
    > var myLandMenu = dropdowns.add({stringList:["A", "B"...], selectedIndex:0});
    i I thought of doing something like:
    > var myLandList = ....? HELP ?....
    > var myLandMenu = dropdowns.add({stringList:myLandList, selectedIndex:0});
    Is this the way to do it?
    What would be the way to read in the text file content as a string?
    Thanks in advance,
    Lee

    > var myLandList = ....? HELP ?....
    > var myLandMenu = dropdowns.add({stringList:myLandList, selectedIndex:0});
    It's hard to tell from context, but myLandList needs to be an array of strings.
    If the file has one element per line, this would be one way of handling the
    conversion:
    var file = File("~/countries.txt");
    file.open("r");
    var str = file.read();
    file.close();
    var myLandList = str.split(/[\r\n]+/);
    And assuming that this is ScriptUI and not the older ID UI, the menu creation
    would look more like:
    var myLandMenu = dropdowns.add(bounds, myLandList);
    myLandMenu.items[0].selected = true;
    -X
    for photoshop scripting solutions of all sorts
    contact: [email protected]

  • Saving and Loading variables in a .txt file (Offline)

    I'm working a software we've done with Flash, but we'd want
    people to be able to save the variables they selected. We need them
    to be able to save the value of about 10 variables in a file on
    their desktop, and then be able to load that file again.
    Is it possible to do that without having to use php or stuff
    like that (that's why we want to make it an offline applications so
    we don't have to use php to be able to save files).
    I know Actionscript looks a lot like Javascript and with
    Javascript it's really easy to do, but all the saving functions are
    blocked in Flash for security reasons.
    If anyone knows how to do that, to simply save and load a
    .txt file, please let me know. If it would be possible also to
    change the .txt to whatever else it would be even better. The file
    can still be opened in Notepad but at least it looks a bit more
    professionnal to have our own extension. Again in Javascript or
    with a .bat file it's really easy to save variables to whatever
    type of file, even to non existing types, it simply creates a text
    file with an unknown ending.
    Thanks!

    I found a page that explains in a really easy way how to
    communicate with Javascript if the flash object is contained in an
    html page, but I couldn't find any page explaining how it works if
    it's not in an html page. On our side, before using the software
    we're creating we'll convert it to a .exe. How can we call a
    Javascript from that .exe since we can't incorporate the Javascript
    in the container since there isn't really a container... Is there a
    way to link to a Javascript (.js) that would be in the same folder
    as the .exe? Or would there be a way to incorporate the Javascript
    right into the .exe?
    Let me know if any of you have a solution for that.
    Thanks!
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000342.html#wp126566

  • Webdynpro context not available in Interactive form layout

    Hi,
    I have take one Interactive form element and provided the Tempalte Source (new formanme) it asked me to create the pdf interface i give the interface name, and,selected the context then save it. pdf layout design is opend but there is not context which i have mapped from wd in pdf.
    where as if i use sflight in webdynpro context node, it is working ( i can see the dataview of sflight in pdf layout) but not in case of z*structures any reason please let me know.
    Thanks,
    mahesh.gattu

    What is the datasource of your UI interactive forms.
    data source is the context of the webdynpro view.
    as i described earlier, i am assigning the context when creating the form interface.
    once it is done automatically datasource will be binded with context ndoe.
    i am getting one more problem,i selected enable check box to become interactive form even though the form is not become interactive why.
    even i tried with activex/native both also.
    thanks,
    mahesh.gattu

  • Program not showing in open with context for HTML files

    I have a windows 8.1 64 Pro PC with a program called 1stPage.exe installed.
    When I right click a .txt file I get 'Edit with 1st Page' in the context menu and it also shows in the open
    with menu.
    However HTML files do not show these options. I have checked the registry and it would appear that the program
    is set up on the open with menu exactly the same for both file types.
    So it would appear that something is blocking 1stPage from showing against HTML files but I can't figure out
    what I need to change.
    Cheers
    Baz

    OK we have further developments
    I tried installing this program on a Windows 7 32bit machine and I get exactly the same issue.
    I tried it with both IE and chrome as default browsers and I tried changing default html editor.
    I therefore suspect this when this program installs it is not setting all the registry entries windows 7/8
    require.
    I know it's an old program but I have been using it for years and see no reason to change.
    So I need help in understanding what I need to do to get windows 7/8 to display the context menu entry correctly

  • Reading TXT files on WEBmode

    Hy
    My problem is to read TXT-Files in Webmode. In Client-Server mode it works fine. I use the function "text_io". In Webmode i get an error "No data found" (i think it is FRM-40375).
    In which virtual directory should the files placed on the OAS????
    Does anybody have some examples for me???

    You need to specify the directory unless your files are in the current working directory of the servlet container.
    The following can help you see some of your application context:
            // Get the server configuration information and display it.
            String thisServer= getServletConfig().getServletContext().getServerInfo();
            System.out.println("The servlet Engine version: " + thisServer);
            // What is the servlet root path ?
            String prefix =  getServletContext().getRealPath("/");
            System.out.println("prefix = '" + prefix + "'");
            // What is the app root ?
            String AppRootDir = getServletConfig().getServletContext().getRealPath("/");
            System.out.println("The app root directory : " + AppRootDir );

  • Bind additional context elements

    Hi
    İs it necessary to restart AS Java when editing the model
    binding and bind additional context elements to an
    already existing Model Node in the context?
    Regards
    erdem

    Hi,
    It is only necessary when you are trying to reimport the BAPI ....incase your portal is IN SP14 then no problem.
    You can use the ARFC tool to remove the cache
    http://blrsapepdev002:50000/webdynpro/dispatcher/sap.com/tcwdtools/WebDynproConsole
    Try removing the cache from here , or wht you can do ....open the JCO which is used for the MetaData and recreate it. 
    all of them works fine
    regards
    pankaj prasoon

  • Netinstall with txt file to name the computers.

    Hi,
    I am new to ther OSX Server, I managed to clone a macbook with netinstall. Since I am going to clone 34 macbooks for my students with same image I need to name them and bind them to OD.
    To name the computer I hav created a txt file with tab delimited columns which look like this:
    00:0D:93:49:FD:E1 ->tab Computer_Name ->tab Host_Name
    00:0D:93:49:FD:E2 ->tab Computer_Name ->tab Host_Name
    Can some one please verify that the txt file will work with the netinstall to specify computer names?

    *Klanflo wrote:*
    *Can some one please verify that the txt file will work with the netinstall to specify computer names?*
    This is the correct textual format. What Apple forgets to tell you is the file needs +UNIX line endings+, not Macintosh line endings. I use TextWrangler to save the file in UNIX format. Works like a charm.

  • How to open and edit "*.txt" file with "Notepad"

    Hello guys!
    I'm facing problem with SharePoint 2010 Enterprise and got no clue how to solve it.
    What I want to do is to open "*.txt" (which is placed to "Documents Library") in "Notepad", so I could edit it and save (publish) directly to SharePoint from "Notepad".
    If I upload any Microsoft office File, such as "*.docx", "*.xls", etc - it works as it should - document opens in appropriate application and everybody is happy.
    But, when I create documents library, put some "*.txt" file there and click on it - it opens in new browser's tab as text, so I cannot edit the file.
    What I tried to do is to activate feature "Open Documents in Client Applications by Default" - not happy.
    Edit "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML\DOCICON.XML" - I've modified "txt" entry as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <DocIcons>
        <ByProgID>
        </ByProgID>
        <ByExtension>
    <Mapping Key="txt" Value="ictxt.gif" EditText="Notepad" OpenControl="SharePoint.OpenDocuments"/>
        </ByExtension>
        <Default>
            <Mapping Value="icgen.gif"/>
        </Default>
    </DocIcons>
    Still not happy.
    So, how do I make this stuff work?

    Found this link which has more information on this scenario:
    http://sharepoint.stackexchange.com/questions/1427/open-txt-file-in-notepad-from-sharepoint
    A programmatic workaround:
    http://weblogs.asp.net/bsimser/archive/2005/01/24/359911.aspx
    Andrew Milsark, MCITP,MCTS
    Fpweb.net - The SharePoint Hosting Pioneer
    Blog : http://blog.fpweb.net
    Twitter : http://www.twitter.com/amilsark

  • Archiving TXT files in Sender File Adapter--Unformatted Way

    Hello,
    I am Archiving TXT files thru Sender file adapter, files are getting archived to specified directory.No issues in that.,
    When i open the archived files, those are not in the correct format way that i placed before file pickup.
    Header & lines got messed up side by side.
    Regards

    Hi,
    If the file that it being archived is not transformed, it should exactly be the same as the original file.
    Please make sure that you are not transforming the archive file by any means(unix script, mapping logics etc).
    As suggested above, it is advisable to open the file in the editors like textpad, ultraedit etc. The difference in the alignment could be because of the notepad editor.
    Try to open the original and archived files in any of those(textpad,ultraedit etc) editors and check.
    Please let us know if you are still able to find the difference in the alignment.
    Regards,
    Subbu

Maybe you are looking for

  • How to get photos from txt msgs into gallery, and to my home pc

    I have no problem getting photos from Gallery into my home PC (Windows 7) using the USB cord.  I cannot figure out how to save a photo which has been sent to me via txt msg.  tried the bottom left menu, and nothing there to help.

  • Missing authorization check on the IM Reports

    Hi, We use RAIMINFO reports (S_ALR_87012805, S_ALR_87012806 u2026 ) to display structure and values in Ferrero Spa investment program On the initial screen, the value types which have to be output, are determined by the authorization checks to be car

  • Windows 8.1 (64 Bit) crash: DRIVER_IRQL_NOT_LESS_OR_EQUAL

    Hi  -- Today, I've started to experience bluescreens when running 3D games. The error says DRIVER_IRQL_NOT_LESS_OR_EQUAL. I'm running a 64 bit Windows 8.1. Can someone tell me how to fix this and let me know what is wrong with my computer? I have a M

  • Calls show up as Private or Unknown

    IPhone 6 Plus Model MGAL2LL/A My phone number and/or name do not show up. I am identified as Unknown or Private, like a solicitor. How can I just show up as myself?

  • Fld selectn for mvmt type 201 / acct 96220 differs for CO/PP order (011)

    Hi all, Purpose :  Our client want to use Statistical Internal Order in Movement Type - 201 with entries to be get posted to selective G/L Accounts relating to Vehicle Expenses For that purpose we have made the Order field as "Optional Field" for tra