Office 365 addin. JavaScript API. Working with files.

Please help me.
Is there any posibility to get url for created document from my addin with JavaScript API?
May be I need to use OneDrive.

You are creating a Word 2013 app? If so, you might want to post your question here:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=officegeneral
Are you trying to get the URL that the document was opened from?
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner

Similar Messages

  • How to work with file system in linux within a JSF app?

    I use this line in my backing bean to log some events:
    FileHandler fhxml = new FileHandler("../webapps/MyWebApp/Log/MyWebAppLog.xml", append);
    fhxml.setFormatter(new XMLFormatter());That works fine in windows but when I deploy it in my Tomcat 6 in linux It doesn't work. How can I work with file system in linux?

    You should never use relative paths to access the filesystem. The path would be relative to the current working directory which is not per se the same in all environments. To convert a relative web path to an absolute file system path, you need ServletContext#getRealPath(). Use this absolute file system path in the java.io stuff. In a JSF application on top of Servlet API you can get the underlying ServletContext by ExternalContext#getContext().
    Alternatively, if the file is located in one of the default paths of the classpath or if its path is added to the classpath, you can also just use ExternalContext#getResource() or even #getResourceAsStream() using just the file name.

  • Work with Files in Java

    Hello!
    Can anyone help me. How can I API in Java Technology for files to find ?

    don't uite understand your question.
    here's the location of java API for File class, for working with File and Directory..
    http://java.sun.com/j2se/1.3/docs/api/java/io/File.html
    for reading and writing..you may want to look at th eio package for classes such as
    Reader, FileReader, BufferedReader, Writer, FileWriter, BufferedWriter
    here's java API
    http://java.sun.com/j2se/1.4.2/docs/api/

  • Will Office Web Apps Server 2013 work with SharePoint 2013 sites hosted in SP2010 compatibility mode?

    We are planning a upgrade of a SP2010 farm to 2013. There has been a bit of customization so we wish to run the old sites on the new SP2013 platform in SP2010 compatibility mode.
    So my question is will Office Web Apps Server 2013 work with the old sites hosted in compatibility mode?
    I found a similar query from March 2014 found here 
    http://sharepoint.stackexchange.com/questions/93101/office-web-apps-2010-running-on-sharepoint-2013-for-compatibility-mode-sites/116281#116281 
    Has there been an update released to resolve this
    Cheers D

    Hi  ,
    According to your description, my understanding is that you need to know whether Office Web Apps 2013 is working with SharePoint 2013 sites which is in SharePoint 2010 compatibility mode.
    For my test, Office Web Apps 2013 with SharePoint 2013 sites which is in SharePoint 2010 compatibility mode is working fine.
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it show

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

    I worked with files in LR that were originally on my C drive, then were moved to an external HD for storage. I now want to do some more work on those files (which have the same file name as on the C drive). I plugged the drive into my computer and it shows in LR under folders as the F drive and the little green light is on, but LR is showing only the first 6 files and not the remaining 200 or so. How do I expand the F folder to expose all files?

  • How to work with files in folders on Application/Presentation Server

    Hi,
    I am working on interface program in which files are populated in folders in application/presentation server in the format 'ABCsy-datumsy-uzeit.txt'(e.g.ABC20051022161450.txt,ABC20051022161455.txt ) in directory c:\temp.
    I want to sort all these files and read in sorted manner.
    can anybody help me out in this.
    waiting for reply.
    thanks & regards,
    Nitin

    Hi,
      This logic will work for files on presentation server,
    DATA:  l_count TYPE i,
           l_filename TYPE string,
           t_files TYPE string OCCURS 0 WITH HEADER LINE,
           BEGIN OF t_files_sorted OCCURS 0,
             file_prefix(3),
             file_date LIKE sy-datum,
             file_time LIKE sy-uzeit,
             file_extension(4),
           END OF t_files_sorted,
           t_text TYPE TABLE OF w3html.
    CALL METHOD cl_gui_frontend_services=>directory_list_files
      EXPORTING
        directory                   = 'C:\Temp'
        FILTER                      = '*.txt'
         files_only                  = 'X'
       DIRECTORIES_ONLY            =
      CHANGING
        file_table                  = t_files[]
        count                       = l_count
      EXCEPTIONS
        cntl_error                  = 1
        directory_list_files_failed = 2
        wrong_parameter             = 3
        error_no_gui                = 4
        OTHERS                      = 5.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT t_files.
      t_files_sorted = t_files.
      APPEND t_files_sorted.
    ENDLOOP.
    SORT t_files_sorted BY file_date file_time.
    LOOP AT t_files_sorted.
      CONCATENATE 'C:\Temp\' t_files_sorted INTO l_filename.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = l_filename
         FILETYPE                = 'ASC'
         HAS_FIELD_SEPARATOR     = SPACE
         HEADER_LENGTH           = 0
       IMPORTING
         FILELENGTH              =
         HEADER                  =
        changing
          data_tab                = t_text[]
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          others                  = 17.
      IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *****Your processing here..
    ENDLOOP.
    Also, use the FM that MAX has if you have to work with files on application server by replacing code in the above logic at appropriate places, like replace
    cl_gui_frontend_services=>directory_list_files
    with the corresponding fm
    and replace cl_gui_frontend_services=>gui_upload
    with OPEN DATASET...
         CLOSE DATASET...
    logic.
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?

    How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?
    any idea?

    Hi,
    From your description, my understanding is that you want to get user profile properties in provider-hosted app in SharePoint online using REST API.
    Here is sample code for getting user profile properties:
    http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
    Here is a blog below about accessing data from the provider-host apps:
    http://dannyjessee.com/blog/index.php/2014/07/accessing-sharepoint-data-from-provider-hosted-apps-use-the-right-context/
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Cannot print "working with files and folders htm

    When I try to print "Working with files-and-folders" from a Google search, it only prints part of it. I have changed my destination folder to no avail. Thank you or any help, Jack Menendez

    What's the best method for moving all my nonsystem related stuff over to this new driveIan has provided you with the best solution, SuperDuper.
    But if you have a 250 GB external, you really ought to clone your entire system,(only about 3 GB) so you have a backup.
    I keep mine with a complete clone of my internal, that way it is easy to boot from the external and run utilities like Disk Utility, TechToolPro, DiskWarrior, etc. on the internal and vice versa.
    If you run into a problem with say Preferences and don't know which one is the troublemaker, just trash the whole pref folder and use the good one from the clone. Font problem, same deal. And, if diaster ever strikes, you can just boot up from your external and keep right on working - fix the internal when you have time.
    That's my 2 cents anyway
    -mj
    [email protected]

  • Does the content area API work with Release 2?

    Does the content area API work with Release 2 yet?

    Release 2 page group APIs will be available in early 2003, in the first PDK version following the 9.0.2.6 (upgrade) release. These APIs will be backward compatible with the 3.0.9 content area APIs.

  • Managing spaces when working with files

    Hi, how can I work with files on windows on paths thats have blank spaces like "Documents and Settings", I used getResource().getFile() and writting the path but it always fails!
    The FileOutputStream always thorws the exception FIleNotFoundException.
    I tried the path with blank spaces and tried with %20 but always is the same.

    Are you saying that OutputStream os = new FileOutputStream("C:/Documents
    and
    Settings/AAD/workspace/MobileServer/bin/Configuracion/
    conexiones.omt");throws an exception? If so, what exception?Exactly it throws an Exception.
    java.io.FileNotFoundException: C:\Documents and Settings\AAD\workspace\MobileServer\bin\server\Configuracion\conexiones.omt (El sistema no puede hallar la ruta especificada)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
         at server.tcp.GestionTCP.guardar(GestionTCP.java:118)
         at server.tcp.GestionTCP.mouseReleased(GestionTCP.java:89)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

  • Will the current plugins for Sigma DP1/2 RAW files work with files from the DP1/2 Merrill cameras? A

    Will the current plugins for Sigma DP1/2 RAW files work with files from the DP1/2 Merrill cameras? And if not, is Adobe developing plugins for these cameras?

    Not sure what plugins you mean, Hornet - Lr doesn't rely on plugins to read new cameras.
    If you mean the Adobe Camera Raw (ACR) plugin - that's for Photoshop, not Lightroom. Lr has the same functionality as ACR, but it's hard-coded into the program, so if you're looking for support for a new camera, you need to wait for a new version of Lr.
    And nobody here can say when Lr support for a given camera will happen.
    Hopefully someone with a Merrill will be able to chime in about whether its files work with the current Lr.

  • Freeze up after working with files copied to DVD. A105-4274 Satillite

    When working with files copied to a DVD, when ejecting my computer locks up. Have to turn it off manually and restart. 
    Can use anyother type of DVD, and this does not happen. Only useing DVD with files written to it. This only happens when i work with the files and then eject the DVD. Please I need help
    Solved!
    Go to Solution.

    ebonykaneezer wrote:
    When working with files copied to a DVD, when ejecting my computer locks up. Have to turn it off manually and restart. 
    Can use anyother type of DVD, and this does not happen. Only useing DVD with files written to it. This only happens when i work with the files and then eject the DVD. Please I need help
    I'm guessing that you are just pressing the eject button on the drive.  Don't do that.
    Quit the application that you are using to work with the files.  Then open Windows Explorer, right-click the CD/DVD drive and click on 'Eject'.

  • How to open .snp files with Microsoft Office 2007 installed? It works with MS Office 2003 but not with MS Office 2007!

    I have MS Office Pro Plus 2007 installed on my computer. I also have MS Office 2003 installed on another computer. Snapshot viewer is installed on both. My work snapshot files works with MS Office Access 2003 but not recognized by MS Office Access 2007. It would not allow me to save them either! Is it a problem with FireFox (3.6.8)? However, I do not have problem opening them up using IE7/8 on both computers. Any ideas? Thanks.

    Are you clicking a download link from an email message on an OWA or webmail site? Do you get the open/save dialog for the .snp files? In that case, you should be able to associate them with the Snapshot viewer. If Firefox does not remember this and you have to do it each time, it usually indicates that the server is not sending a specific content type, just the generic "this is some binary content" content type.

  • I just bought a macbook pro and am ready to order Microsoft Office for Mac. I use Windows 2007 at work and want to be sure I am able to work with files from that system. Do I need to buy 2 different editions of Microsoft Office to be able to do this?

    Do I need to buy 2 different Microsoft Office products if I want to be able to use my new Mac with Microsoft Office for Mac and also use files saved on my work computer which uses Microsoft Window 2007?

    Pomme4us wrote:
    Do I need to buy 2 different Microsoft Office products if I want to be able to use my new Mac with Microsoft Office for Mac and also use files saved on my work computer which uses Microsoft Window 2007?
    Sorry, but your likely going to have to use Windows 7 and Office on your Mac at work using Bootcamp.
    Although you can share files OfficeMac and Office on Windows, the formatting will be off because two platforms use different installed fonts and formatting. This will cause a productivity lost and require extra editing at work
    If you could share just PDF's then your fine, but that will unlikely be the case.
    So to share files seamlessly your going to have to install Windows 7 (another $300) full version, 64 bit, using Apple's Bootcamp.
    https://www.apple.com/support/bootcamp/
    It's ok, though, you can boot into OS X to use that online and surfing etc at home. It's the internet and sharing of files from other Windows users that cause Windows to hoze up, so mimimalize both of those and you should be fine.
    You can also run Windows 7 in a virtual machine software like Parallels or VMFusion. as long as you don't have any super demanding needs of the hardware, like running 3D games or super intense CPU actions like video processing. Office work is just fine and it's safer than Bootcamp, as in a virtual machine you can keep "snapshots" of previous states of the OS, and revert back to in case something goes wrong in mere seconds.
    A real good piece of news though, Windows 8 is so radically changed from Windows 7, that your workplace will remain with Windows 7 as long as possible to put off all the retraining necessary with that new OS version.
    So think of the $300 + $60 investment in Windows on your Mac as a longterm thing.

  • Office 365 unable to send mail with automatic address

    hi,
    I am unable to send email from outlook 2013 (configured to office 365 exchange) it appears a message as "sorry something went wrong. you may want to try again"
    I have configured a old pst file along with same outlook.. 
    it can send easly with typing manually email address .
    please provide me the solution..
    regards
    [email protected]

    Hi,
    Please first try to log into your OWA and check if you can send email using autocomplete address. If OWA works fine, it means the problem is specific to Outlook client.
    If this issue only happen with single or several addresses, we can just delete the address by clicking 'X' after the address:
    If this issue happen to all autocomplete addresses, there may be a problem with your autocomplete cache. We can rename the cache file to resolve the problem. You can refer to the following KB article for detailed steps:
    http://support.microsoft.com/kb/2682333/en-us
    Hope this helps.
    Regards,
    Steve Fan
    TechNet Community Support

Maybe you are looking for

  • Illustrator CC will not start

    I am using the new 27 inch iMac running Mountain Lion. I am a registered Creative Cloud user. I just installed Illustrator CC and it will not start. When the splash screen appears, I get this error message: Can't print the illustration. Disk full err

  • Place 65 Word files

    G5; OS 10.5.4; CS 3 I've received 65 Word files that I have to place as a single story. Normally I would tell my client to put them together into one file but in this case I cannot. I can select multiple files to place but they will not flow continuo

  • RPM issue

    Hi, I was able to install rpm package in the package manager in Solaris 11, however, when I go to the terminal and type: >> rpm and it just returned with command not found. Has rpm really been installed? Or I just do not have the right path.

  • Am running latest version of Skype for Windows7. N...

    Greetings everyone, I am frustrated due to the fact that when I make or answer a video call. The contact I choose can see and hear me just fine, but I can only receive their audio broadcast without receiving their video broadcast. What can I do to re

  • Using blue yeti microphone with skype question

    Hi, I just bought a blue yeti mic to use with skype. The other person can hear me fine but I cant hear him. All tests checked out fine on both ends. Then I saw the headphone jack on the bottom of the yeti mic. Question: do I have to have headphones o