Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    viewFile - override its behavior

    i wish to change the viewFile behavior to show the file content in a user-demanded encoding and someplace at the same window the record it came from displayed (and not in a new window).

    How do i do that?
    (override its display content and behavior)

    Thanks!

    #2
    Can you give an example of an "encoding" and a type of content you want to display, and what you think it would be displayed by (the browser directly, a plugin, etc)?

    Comment


      #3
      i have a tabSet at the same page, i wish to create a new tab and place their the content of the blob. (even if it opens a new window i would still need the encoding option)

      by encoding i mean Base64, Hex or plain or anything else...
      Last edited by lior; 23 Jul 2010, 13:41.

      Comment


        #4
        OK, no reason to base this on the "view file" functionality, just make a call to the server and transform the data to a String and send that, on the client side put it in an HTMLFlow as a tab pane.

        Comment


          #5
          but the type binary cause the grid to show that magnifier, i don`t want to add an extra icon, i`d like to use the current..

          and even more - viewFile already handles the round trip to the server and fetching the lobs..

          Comment


            #6
            You can simply call fetchData() targeting an operationBinding where you have declared a DMI. After calling dsRequest.execute(), the dsResponse will contain InputStreams derived from the binary columns in your table, and you can then transform them and return them as a String.

            Comment

            Working...
            X