KM file picker for new WPC editors

Hi there,
I'm using new WPC editors and I want to insert some picture from KM into paragraph. However, the displayed popup only allows that users input the full URL.
I'm aware of a "KM file picker" for old editors with tinyMCE (missing "KMPicker.htm" file for TinyMCE editor in WPC in 7.3)
Is there something similar for new editors?
Thanks in advance.
Best regards,
Marcelo

hi..
  Well, you never close the outputstream this and put
try{          
          String path = wdContext.currentContextElement().getCurrentFolder() +  wdContext.currentContextElement().getKMFolder();
          ResourceContext context = new ResourceContext(getEP5User());
          RID rid = RID.getRID(path);
          IResourceFactory factory = ResourceFactory.getInstance();
          ICollection folder = (ICollection) factory.getResource(rid,context);
          String fileName = wdContext.currentFileElement().getFileresource().getResourceName();
             InputStream inputStream = wdContext.currentFileElement().getFileresource().read(false);
          File destfile = new File(fileName);
          FileOutputStream out = new FileOutputStream(destfile);
                                //ADD THIS LINE FOR READ ARRAY OF BYTES
                                byte[] readData = new byte[1024];
                                int i = inputStream.read(readData);
          while ( i != -1 )
                                               out.write(readData, 0, i);
                                                i = inputStream.read(readData);
                                //CLOSE THE OUTPUTSTREAM
                                out.close();
          BufferedInputStream bufInStream = new BufferedInputStream(new FileInputStream(destfile));
             Content con = new Content(bufInStream, "text/plain", -1);
             IResource newResource = folder.createResource(fileName, null, con);
     }catch (Exception e){
If helps you, regards
Josué Cruz

Similar Messages

  • Default File Type for New Forms - How to change?

    Hi,
    How can I change propperty: Default File Type for New Forms?
    It is enabled! Do I have to be Administrator to change it? I have SAP ALL..
    SFP -> Layout -> Tools --> Options -> Document Handling
    tnx, Adibo.

    There is no authorisation required for changing the file type. You are saying its enabled, then you can change it.
    Edited by: Nikhil Poojari on Aug 28, 2009 6:50 AM

  • ERR:10003 Unexpected data store file exists for new data store

    Our TimesTen application crashes and then it can not connect TimesTen datastore, and then we use ttIsql and get error "10003 Unexpected data store file exists for new data store".So we must rebuild the DataStore.
    I guess the application damages the datastore because we use "direct-linked" mode. Is it true?
    Should I use "Client-Server" mode if our data is very important?
    thx!

    Your question raises several important discussion points:
    It is possible (though very unlikely in practice) for a C or C++ program operating in direct mode to damage the contents of the datastore e.g. by writing through an invalid memory pointer. In the 11+ years that TimesTen has existed as a commercial product we have so far never seen any support case where this was diagnosed as the cause of a problem. However, it is definitely a theoretical possibility and rigorous program testing and use of tools such as Purify is strongly recommended when developing in C or C++ in direct mode. Java programs running in direct mode are completely 'safe' unless they invoke non-Java code via JNI when a similar risk is present.
    The reality is that most customers who use TimesTen in very high performance mission critical applications use mainly direct mode...
    Note also that an application crashing should not cause any damage or corruption to a datastore, even if it is using direct mode, as Times%Ten contains explicit mechanisms to guard against this.
    Your specific problem (error 10003) is nothing to do with the datastore being damaged. This error reflects a discrepancy between the instance main daemon's metedata about all the datastores that it is managing and the reality. This error occurs when the main daemon does not know about a datastore and yet when it comes to connect to (and hence create) the datastore it finds that checkpoint or log files already exist. The main daemon's metadata is managed solely by the main daemon and is completely separate from the datastore and datastore files (the default location is <tt_instance_install_directory>/info, though you can change this at install time). The ususal cause of this is that someone has been manually manipulating files within that directory (which of course you should never do) and has removed or renamed the .DBI file corresponding to the datastore.
    This error should never arise under normal circumstances and certainly not just because some application has crashed.
    Rather than simply switching to the (much slower) client/server mode I think we should try and understand why this error is occurring. Could you please post the following:
    1. Output of ttVersion command
    and then we can take it from there.
    Thanks, Chris

  • Auto code completion settings for new ABAP Editor

    Dear all,
    I am working in New ABAP editor but i am unable to set auto code completion,
    please tell about customising of new ABAP editor for Auto code completion.
    Thanks and regards,
    Gaurav Sood

    Hello,
           1.      Choose Utilities ® Settings.
    The User-Specific Settings dialog box appears.
           2.      Choose ABAP Editor. 
           3.      Set the new editor mode.
    From:
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/29dee414483fe1e10000000a11466f/frameset.htm
    Regards,
    Jorge Diogo

  • Additional 2 zeroes appear after flat file upload for New Taiwan Dollar

    Hi,
    Appreciate if anyone has encountered this issue when loading up flat file for New Taiwan Dollar currency. Example.
    Flat File Data
    0CHRT_ACCTS - SSG1
    0COMP_CODE - TW80
    0FISCYEAR - 2007
    0FISCPER     
    0FISCPER3     
    0VERSION - 1
    0VTYPE - 10
    0CURTYPE - 10
    0GL_ACCOUNT - 100050
    ZBDGT_USD -
    ZBDGT_LC     
    0LOC_CURRCY - TWD
    ZAUDIT_LC - 815,537
    After data is loaded into cube
    0CHRT_ACCTS - SSG1
    0COMP_CODE - TW80
    0FISCYEAR - 2007
    0FISCPER     
    0FISCPER3     
    0VERSION - 1
    0VTYPE - 10
    0CURTYPE - 10
    0GL_ACCOUNT - 100050
    ZBDGT_USD -
    ZBDGT_LC     
    0LOC_CURRCY - TWD
    ZAUDIT_LC - 81,553,700
    Appreciate any assistance. Points will be rewarded if solution can resolve issue.
    Best regards,
    Eric Tang

    Hi Simon,
    Ok, this is the a line from the flat file
    0CHRT_ACCTS - SSG1
    0COMP_CODE - TW80
    0FISCYEAR - 2007
    0FISCPER
    0FISCPER3
    0VERSION - 1
    0VTYPE - 10
    0CURTYPE - 10
    0GL_ACCOUNT - 100050
    ZBDGT_USD -
    ZBDGT_LC
    0LOC_CURRCY - TWD
    ZAUDIT_LC - 815,537
    and this is what is shown in the listcube
    0CHRT_ACCTS - SSG1
    0COMP_CODE - TW80
    0FISCYEAR - 2007
    0FISCPER
    0FISCPER3
    0VERSION - 1
    0VTYPE - 10
    0CURTYPE - 10
    0GL_ACCOUNT - 100050
    ZBDGT_USD -
    ZBDGT_LC
    0LOC_CURRCY - TWD
    ZAUDIT_LC - 81,553,700

  • File maneger for new ipad

    HI ALL!! I CALL FROM ITALY...
    I NEED TO KNOW IF THERE IS A NEW APP FOR NEW IPAD FOR MANAGING FILES AND FOLDERS SIMILAR TO "IFILE" WHICH ALLOWS TO MANAGE ALL WITHOUT SYNCHRONIZING WITH YOU PC OR IMAC I WOULD TO NOT USE JAILBREAK THANKS

    You might want to look at GoodReader.

  • REgarding link for NEW ABAP Editor

    Hi All,
              I wanted to install NEW ABAP EDITOR. CAn any one give me the link from where we need to install the new ABAP editor..
    Thanks,
    Suresh

    Hi kutam,
    it comes with support packages since 4.7 and GUI640 and is included in ECC600.
    Use tools->settings to switch to new editor.
    Regards,
    Clemens
    Message was edited by:
            Clemens Li

  • For new sap editor

    hi,
    i want ask to u from where i can get the NEW FRONT END EDITOR
    for my home pc it looks very nice and codes in editor are easily read due to colors of variable keywords and others.
    plz tell me where i am get it.
    thanks
    jayant

    May I refer you to my previous answer?
    Download Netweaver Trial Version from here https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80fd9a0a-e306-2a10-c896-b84c77c13ed2
    It includes the new editor.
    I believe there is a blog somewhere about using the new editor in version 4.7, but I could never get it to work.  https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9b87a4c2-0501-0010-838a-c2186fa02c39
    matt

  • What is the file structure for new iMovie for Mac?

    Under the previous version of iMovie for Mac, iMovie stored my clips and finished projects in folders that I was able to create on my hard drive.  I have one folder named Events and another folder name Projects.  With the new version of iMovie for Mac (the one that came with OS X Mavericks), I see there now is a file named iMovie Library 2.imovielibrary on my hard drive.  Can someone explain how clips and projects are stored in the new iMovie versus the previous version of iMovie?  Is all my content now stored in the iMovie Library 2.imovielibrary folder?  The "date modified" on my previous Events and Projects folders shows 23 October, so it seems that the new iMovie no longer accesses those folders.  Sound correct?  Can I delete those old folders?  Thank you

    pomme4moi wrote:
    Do you know why the file is named iMovie Library 2.imovielibrary?  Does the "2" imply there is another iMovie Library.imovielibrary file somewhere, without the "2"?  Can I rename the package file to iMovie Library.imovielibrary without the "2"?
    I wouldn't rename any of the files that iMovie creates in the Finder. You're asking for trouble.
    I think the reason for the "2" is that at some point iMovie encountered a folder already with that name.
    Did you re-install iMovie version 10 or do anything else that may have been non-standard with your installation?
    Matt
    Message was edited by: Matthew Morgan

  • 1003 error:unexpected data store file exists for new data store

    dear chris
    when we use timesten, what happened cause the error 1003, I don't know what cause it happen. it works well before. but it happened today twice.
    anyone know the reason ?? Any help is appreciated!
    Thanks

    The TimesTen daemon maintains a 'catalog' containing information about datastores that it is managing. From the daemon's perspective, a datastroe is uniquely identified by the pathname for the checkpoint files (the value of the DataStore attribute in a DSN definition). The daemon knows nothing about DSNs or ODBC.INI files...
    A datastore is physically created, and hence registered with the instance daemon, the first time something connects to it specifying the ODBC/connection attribute AutoCreate=1 (which is the default value). From that point, the datastore has a physical existence (checkpoint and log files exist on disk), is known to the daemon and hence will appear in the output of the ttStatus command.
    If at the time you connect to a datastore with AutoCreate=1 and the daemon has no record of the datastore it will try and create it. If it finds that the checkpoint files already exist in the specified location on disk then this is 'unexpected' (since the datastore should not exist yet) and error 1003 results.
    Seems like you have somehow got some checkpoint files existing that the daemon does not know about. You have made some kind of mistake somewhere I guess; maybe you copied files around inadvertently?
    Chris

  • Which MB should i pick for new system?

    Hi i'm new to the forum and just signed up. Sorry if this isn't posted in the right section. I'm about to build a new system with a AMD 64 +3700 (which i allready bought)
    But i can't choose the right MB. Last time i built something it was 2 years ago. Much have changed :o
    I've been looking at this MB for a while.
    K8N Neo4-FI
    http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_detail.php?UID=651
    I have 2 questions about it
    1. I've read that the NB Fan is loud. Can i replace it with something else?
    2. I haven't decide which video card to get. But i wonder if any of these 2 will fit cos of the NB?
    Sapphire Radeon X1800XT 256MB GDDR3
    XFX GeForce 7600GT 256MB GDDR3 XXX

    Quote from: Kafkacell on 28-May-06, 20:07:16
    Go for MSI K8N Neo4 Platinum 
    Yeah.. the Platinum is a more "feature rich" board & supposedly has a more tweakable BIOS as well. I like mine fine.
    Quote from: Kafkacell on 28-May-06, 18:43:13
    IMHO, we should wait to mature AM2 a little, and also as Richard has said to prices come down, but undoubtly that's the way to follow if you are planning to upgrade your system. There is no case upgrading now to 939, and in few months to AM2
    Very true - if you have a decent pile of 939 parts, there's no real reason not to use them.
    Quote from: Kafkacell on 28-May-06, 18:43:13
    and also AMD has said that no more 939's are going to be developed, just the models that has been produced until now.
    Now THAT is a rotten shame. It would have been nice to get 1 generation of 65nm, 939 CPU's as a "going away" present. Bet some of those would OC' like crazy...

  • Checking for new comments not working

    A little while back I wrote in about how to know when people had written comments on my blog entries. The reply was helpful, in telling me that iWeb puts a red label on the app icon in the dock when you have unread comments; just like MAIL does. HOWEVER, when you open the app, and click on File>Check for new comments, nothing happens - I've tried it on all three levels, the archives, the entries, and main page, AND the site, but nothing shows up. Any ideas what to do next? Using latest iWeb version, too. I know I can use a free blog site and redirect but I'd like not to have to do that if possible. And the other suggestion, writing a script, was a bit daunting time-wise for me when I checked on what that required...
    Thanks!

    I seem to have gotten my iWeb out of "checking for new comments". I went to File > "publish all to .mac" After it was done publishing all my sites to .mac, I restarted the program, and it finally finished checking for new comments. (It did take a while to finish though) I am not sure why this worked, but it did. I hope this helps.

  • Where are the buttons gone File upload and Download in New ABAP Editor

    Where are the buttons gone of File upload and Download in New ABAP Editor in ECC 6.0.
    Or some new utility added for this feature.
    Kindly guide.
    Thanks,
    pradeep

    Go to Utilities>more Utilities>upload/download is there.
    Amresh.

  • Simple ques.: how to open new empty editor file in Xcode 4.0?

    I use Xcode 4.0 as an editor for stand-alone C++ programs.  In earlier versions, I  would just open a new empty file (cmd-shift-N, I think; the new file option, which was just cmd-N, gave me something else) and start typing. But in v. 4.0, I haven't found the option to do this.  Under File->New, it only offers me the option of new project or new workspace.  There is an option for new file, but it's grayed out.  So what I have to do now, to get a new empty editor file, is open an existing C++ program in Xcode, delete the contents, and save it under a new name.

    Alas, that doesn't work either (I had already tried that).  When I click on the Empty Icon I don't get an empty file.  Instead, I get a dialog box asking me to create a project.  Then when it's finished I get this:
    Now, once I've done this, THEN I can do (because it's no longer grayed out) File/New/New File/Other/Empty (so this, at least, now explains why my submenu looked different from K T's: he must already have had a project created, while I had not).  But besides having all these unnecessary steps (since I have no interest in creating a project), it still doesn't give me just the simple text editor I used to be able to get; instead I get this more complicated-looking window with what looks like a debugger, which I'm not using:
    On the other hand, if I open one of my existing C++ programs in XCode, then I do get just exactly the type of text editor window I used to be able to get just by directly doing cmd-shift-N.    So does anyone know how to get to this directly, without creating a project, etc.?:

  • How to add support for new file type.

    Using the ESDK, I would like to add support for new file type ( a new extension). this new extension will function like any other non visual code editor but will have specific syntax highlighting, code folding and explorer.
    I am trying ot figure out if I need to create a new editor or use existing JDeveloper code editor and add support for new file type. Does anyone have a high level outline on how to do this using the ESDK that is specifically targeted at adding new file type support for a text based code editor?
    I have looked at the Samples and keep going in multipe directions. It would be cool if there was an example that was how add syntax higlighting for new file type.
    Thank you

    Brian, thank you. I looked at this extension and it answered a lot of questions for me. I was going in the right direction but needed a little help and bost of confidence, this is just what I needed. I created the LanguageSupport, LanguageModel, Addin, Node and TextDocument that are specific to the new file type. I was getting hung up on how to hook this into the JDevelpoer editor. I keep thinking I have to create a custom editor but it looks like I don't have to and it looks like I can associate this file support with the editor framwork, for version 10.1.3.2, with the following in the Addin Initilize() method.
    Recognizer.mapExtensionToClass(MY_EXTENSION, MyNode.class);
    CodeEditor.registerNodeType(MyNode.class, MY_EXTENSION);
    LanguageModule.registerModuleForFileType(new MyLanguageModule(), MY_EXTENSION);
    I have done this but still not able to recognize the new file type.
    At this point, I just want to be able to recognize the new file and display it's associated icon or display a messare to the message log. I put a System.out.println("test") in the Initilize() method of my addin. then I registered MyAddin in the extension.xml. JDeveloper sees this new extension and it is loaded but I have not been able to show the test message or display the new icon when I open the new file type.
    extension.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <extension xmlns="http://jcp.org/jsr/198/extension-manifest"
               id="teisaacs.jdev.myext.MyAddin" version="1.0.0" esdk-version="1.0"
               rsbundle-class="teisaacs.jdev.myext.resources.MyResBundle">
        <name rskey="EXTENSION_NAME">My Code Editor</name>
        <owner rskey="EXTENSION_OWNER">Me</owner>
        <dependencies>
            <import version="10.1.3">oracle.jdeveloper</import>
        </dependencies>
        <hooks>
            <jdeveloper-hook>
                <addins>
                    <addin>teisaacs.jdev.myext.MyEditorAddin</addin>
                </addins>
            </jdeveloper-hook>
            <feature-hook>
                <description>My Code Editor</description>
                <optional>true</optional>
            </feature-hook>
            <document-hook>
                <documents>
                    <by-suffix document-class="teisaacs.jdev.myext.model.MySourceDocument">
                        <suffix>my</suffix>
                        <suffix>MY</suffix>
                    </by-suffix>
                </documents>
            </document-hook>
            <editor-hook>
                <editors>
                    <editor editor-class="teisaacs.jdev.myext.editor.MyEditor">
                        <name rskey="EXTENSION_NAME">My Editor</name>
                    </editor>
                    <mappings>
                        <mapping document-class='teisaacs.jdev.myext.model.MySourceDocument">         
                            <open-with editor-class="teisaacs.jdev.myrext.editor.MyEditor"
                                       preferred="true"/>
                            <open-with editor-class="javax.ide.editor.CodeEditor"/>
                        </mapping>
                    </mappings>
                </editors>
            </editor-hook>
        </hooks>
    </extension>
    public class MyAddin implements Addin {
        public static final String MY_EXTENSION = "my";
        public void initialize() {
            System.out.println("MyEditor Constructor");
            new MyLanguageModule();
            Recognizer.mapExtensionToClass(MY_EXTENSION, MyNode.class);
            CodeEditor.registerNodeType(MyNode.class, MY_EXTENSION);
            LanguageModule.registerModuleForFileType(new MyLanguageModule(), MY_EXTENSION);
    }I have added and removed the editor hook along with many other modificaitons to the extension.xml but still not recognizing the new file extension.
    Todd

Maybe you are looking for

  • Assistente de MRP SAP 8.81

    Pessoal, Estou gerando o assistente de MRP para alguns produtos e selecionando uma Previsão, porém o mesmo não está considerando a Previsão digitada, apenas as opções de Pedido de Compra, Pedido Venda, Estoque Minimo, Ordem de Produção. Verifiquei di

  • Is my PCI 6071E board damaged?

    Hello, I have a PCI 6071E board that has been working succesfuly until yesterday. I was working with the digital I/O lines (to generate three control signals that were connected to three operational amplifiers, as buffers), and suddenly, from one tri

  • Invalid *DESTINATION_APP error

    Dear All, I am facing error "Invalid *DESTINATION_APP = CSLPLANNING" in below script logic. Script Logic : *XDIM_MEMBERSET TIME=BAS(%TIME_SET%) *XDIM_MEMBERSET COSTCENTER = %COSTCENTER_SET% *XDIM_MEMBERSET VERSION = %VERSION_SET% *DESTINATION_APP = C

  • Oracle HA Failover problem

    Hi, Just want to know if anyone has encountered problem starting multiple oracle instance on the same node under sun cluster. It complains it can not start listener for the new instance. We used different listener port/name for the new instance. Any

  • Can I print the address on an envelope with the ENVY 5530

    How do I print the address on an envelope on my ENVY 5530 printer?????