MIME TYPE ; application/vnd.ms-excel

HI
i have bsp page which i have declared mime type application/vnd.ms excel the idea is to download the entire contents in local machine . when i click generate excel i get 3 buttons open ,save ,cancel. how can i capture the event open in the page .a sample code will be very helpfull
reagrds
Prasun

Hi
This is sample code need to be declared in the OnInputProcessing an event for an ID:
data:
  w_event type ref to cl_htmlb_event,
  w_obj type ref to object,
  w_mod type ref to cl_htmlb_inputfield,
  w_module type string.
  data:
   tv type ref to cl_htmlb_tableview,
   tv_data type ref to cl_htmlb_event_tableview.
  call method cl_htmlb_manager=>get_event
  exporting
    request = runtime->server->request
  receiving
    event   = w_event.
  case w_event->id.
  when 'open'.
    call method cl_htmlb_manager=>get_data
      exporting
        request = runtime->server->request
        name    = 'inputfield'
        id      = 'module'
      receiving
        data    = w_obj.
       w_mod ?= w_obj.
       w_module = w_mod->value.
endcase.
'open' this open you need to declare in HTMLB  Button Tag with Option ID...in this way as soon as you click the Button OPEN the Event will be triggered
Regards,
Rajani

Similar Messages

  • How to get at a mail of MIME type application/vnd.ms-excel?

    My java proggie has to deal with an email sent with Outlook '97 (don't ask me why it has to be that) and this email has the following header fields (see below). Now, my program works fine if the email has MIME type multipart/mixed. So, how do I have to do to handle an email of MIME type application/vnd.ms-excel (outline of logic or even some code snippet will be greatly appreciated)?
    Received: by chk_exchange6.whatever.local
         id <01C83718.A96E9AC0@chk_exchange6.whatever.local>; Wed, 5 Dec 2007 16:27:24 +0800
    Message-ID: <E839E45C64CF7E4D9E4E8A334B79363001F0DB62@chk_exchange6.whatever.local>
    From: "somebody" <[email protected]>
    To: "me" <[email protected]>
    Subject: excel attached
    Date: Wed, 5 Dec 2007 16:27:24 +0800
    MIME-Version: 1.0
    Content-Type: application/vnd.ms-excel;
         name="nevermind.xls"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
         filename="nevermind.xls"
    Edited by: dickensl on Dec 5, 2007 11:47 PM

    Depends on what you want to do with it.
    If you want to access the data in the Excel spreadsheet
    and make sense of it, you're going to need some
    Java classes to interpret an Excel spreadsheet.
    Good luck on that. :-)
    If you just want to save the content in a file, as if it
    were an attachment, use msg.getInputStream()
    and copy the data to a file, like this:
            OutputStream out = null;
            InputStream in = null;
            try {
                out = new BufferedOutputStream(new FileOutputStream(file));
                in = msg.getInputStream();
                byte[] buf = new byte[8192];
                int len;
                while ((len = in.read(buf)) > 0)
                    out.write(buf, 0, len);
            } finally {
                // close streams, but don't mask original exception, if any
                try {
                    if (in != null)
                        in.close();
                } catch (IOException ex) { }
                try {
                    if (out != null)
                        out.close();
                } catch (IOException ex) { }
            }

  • Report won't run for mimetype=application/vnd.ms-excel

    Hi,
    My customers need to run reports in excel and type in parameters into the parameter from. The URL is:
    http://myServer/dev60cgi/rwcgi60?xyz+server=Repserv+report=rptName.rdf+destype=cache+paramform=yes+desformat=delimited+mimetype=application/vnd.ms-excel
    The parameter from shows up and all the LOVs are there, the reset botton works, the Submit Query botton only shows Submit (NO QUERY). The report won't run when I click on Submit botton.
    But it works perfectly if no mimetype=application/vnd.ms-excel in URL
    Can anybody help me to fix this ?
    Thanks

    The mimetype parameter was only introduced in 6.0.8.10 and above. What version are you running ?
    Thanks,
    Danny

  • Application/vnd.ms-excel dropping leading 0's

    I have a jsp page that successfully displays my data in an excel window on the browser. My user then will cut and paste the data from the screen to Excel running on their desktop. My problem now is the leading zeroes are dropping off. The data being passed are String objects and are being passed as such. Is there any info regarding formatting that allows one to put a special character in the String object to keep the zeroes. I have tinkered with placing a single quote into the String and it works, but when cut and pasted to Excel running on the desktop the sinqle quote remains. I cannot find any docs that discuss how to format the cells in the browswer.
    javaembryo-
    code sample
    <%@ page language="java" contentType="application/vnd.ms-excel" %>
    <td><%=LawsonJspUtil.print( modifyRecord.getSubmitStatus() ) %></td>
    The LawsonJspUtil.print() method takes a String object, checks for null and returns a String object. If the String is null, it outputs a space to fill the column. I could use this method to properly format the column to keep the leading zeroes.

    Wrote a small program for you:
       public boolean isString(String s) {
          if (s==null || s.length()==0) return true;
          for (int i=0;i<s.length();i++) {
             if (s.charAt(i)<'0' || s.charAt(i)>'9') return true;
          if (s.startsWith("0")) return true;
          return false;
       }This little gem will return true if a string contains non-numeric digits, it will also return true if the string contains all digits but starts with a zero.
    ;o)
    V.V.
    PS: don't forget the dukes if this helps!

  • Application/vnd.ms-excel

    Hi!
    I want to display(open) an excel file from a java class but I have a problem.
    I am using the code as below:
    setContentType("application/vnd.ms-excel");
    and it works.
    The problem is that i want to visualize datas from a query.
    One of this datas is the italian CAP (postal code) that sometimes starts with 0. For examples: 09100.
    Well, excel file does not show the first zero although the field is a string,.
    someone can help me?
    Thank you!

    Wrote a small program for you:
       public boolean isString(String s) {
          if (s==null || s.length()==0) return true;
          for (int i=0;i<s.length();i++) {
             if (s.charAt(i)<'0' || s.charAt(i)>'9') return true;
          if (s.startsWith("0")) return true;
          return false;
       }This little gem will return true if a string contains non-numeric digits, it will also return true if the string contains all digits but starts with a zero.
    ;o)
    V.V.
    PS: don't forget the dukes if this helps!

  • MiMe type application plug in

    When i open the page i get this error:"The page “ONE - Israel's Sports Portal” has content of MIME type “application/x-oleobject”. Because you don’t have a plug-in installed for this MIME type, this content can’t be displayed."
    How do i get the plug in????

    They're using an ActiveX Control. This will only work with IE.

  • Trouble shooting- MIME type "application/x-shockwave-flash"

    I am experincing a problem with watching youtube videos. This problem is exactly like Subtitlemewrong's problem which stated...
    "I received only the December '07 update of Quicktime (7.4) and Security Update (2007-009 1.1). That's it. And then my life went to shambles and flash content no longer displays on the web!"...
    "A website with flash content won't load, instead I get a block icon with a question mark and a message saying, "The page "Page Title X" has content of MIME type "application/x-shockwave-flash". Because you don't have a plug-in installed for this MIME type, the content can't be displayed." Sometimes I get directed to the Adobe site for Flash, which I'll download. But that doesn't do anything either."
    I tried the solution that was given by Klaus1 and it didn't work. I uninstalled using http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157&sliceId=2
    Then I tried to install using http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash. I clicked on powerpc -based mac and started to install and recieved taht same message that I didn't have the plug-in installed this MIME type.
    Thanks for you help.

    Yeah, I already tried it under a different account. Unfortunately the new account had the same problem. I appreciate the suggestion. My only logical guess is that the new update to quicktime doesn't mix with 10.3 Panther. I am planning on upgrading to Leopard next week after I get my paycheck. Who knows, maybe those guys will know how to fix it, but so far...no luck. Thanks.

  • Content of MIME type "application/x-shockwave-flash"

    Hey, im not that advanced with this stuff but I keep on getting this message recently and I cannot remember any recent major downloads/updates:
    This page has content of MIME type “application/x-shockwave-flash”, but you don’t have a plug-in installed for this MIME type.
    This happens on Youtube, facebook and stuff like that. Also, Ive noticed that apple trailers using quicktime isnt working. I have installed the new plugins for flashplayer and Quicktime but still no result.
    Any help PLEASE? I hate using firefox coz i love safari!
    Cheers!
    Pratik

    Have you by any chance moved Safari from its proper place in the Applications Folder to a sub-folder, or renamed it?
    Try this routine:
    Repairing permissions is an important part of regular maintenance, and should always be carried out both before and after any software installation or update.
    Go to Disk Utility (this is in your Utilities Folder in your Application folder) and click on the icon of your hard disk (not the one with all the numbers).
    In First Aid, click on Repair Permissions.
    This only takes a minute or two.
    Background information here:
    http://docs.info.apple.com/article.html?artnum=25751
    and here:
    http://docs.info.apple.com/article.html?artnum=302672
    If you were having any serious problems with your Mac you might as well complete the exercise by repairing your hard disk as well. You cannot do this from the same start-up disk. Reboot from your install disk (holding down the C key). Once it opens, select your language, and then go to Disk Utility from the Utilities menu. Select your hard disk as before and click Repair.
    Once that is complete reboot again from your usual start-up disk.
    More useful reading here:
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    http://support.apple.com/kb/TS1417

  • MIME type &#147;application/x-mplayer2&#148;

    One URL I visit pops up a warning that I don't have a "MIME type 'application/x-mplayer2' plug-in installed, so I can't use certain portions of the site. Where can I find such a plug-in? Is it a popular plug-in that is used by other sites?

    I've never come across this plugin before - doubt it's widely used - but it might refer to MPlayer OS X, MPlayer Plug-in or Windows Media, I'm not sure. Try out MPlayer Plug-in first.
    Yang

  • Unsupported media type:application/vnd.rim.cod

    Hullo!
     I have a Blackberry Curve 8320, and am trying to download the new (and apparantly award-winning) Nimbuzz IM client to my phone via their site at http://get.nimbuzz.com  but am getting an error when I try.
     First I am told "The item you selected cannot be displayed. Do you wish to save the item?"  If I select No, I get "Unsupported media type:application/vnd.rim.cod"
     Saving the file "Nimbuzz-1.cod" and then trying to Explore to it and launch it doesn't seem to do any good either.
     I was pretty sure .cod files are the correct file type for this sort of thing, and I can't find anything on the Internet about this error message, or anyone else experiencing this problem. 
      Please help!

    Hi Im having the same problem, and i havent found anything about it. Did you fix it? can you please tell me how?
    Thanks

  • Safari and MIME type "application/x-mplayer2"

    When trying to listen to web pages conatining mp3 audio files (prior to purchasing them) , Safari comes up with a message saying that MIME type “application/x-mplayer2” is not installed and only downloads the html file and not the mp3 file. When we check on our installed plug-ins in Safari, MIME type “application/x-mplayer2” has been installed.
    How do we fix this? We are using Safari Version 2.0.2 (416.12) OSX 10.4.3. It works on one of our older machines running Safari Version 1.3.1 (v312.3.3) OSX 10.3.9
    Regards,
    Peter

    Nevermind. I answered my own question. Seek and you shall find. http://www.apple.com/safari/download/plugins.html I just had to DL the WMV plug in. All better.

  • Resource interpreted as Document but transferred with MIME type application/postscript.

    Hi,
    we are running framed web pages showing preview (PNG or JPEG) of postscript files. These previews are simply linked to the postscript files. Following this links one gets the postscript source shown and not the graphics!? The error console says:
    Resource interpreted as Document but transferred with MIME type application/postscript.  
    When one chooses to:
    Open link in new tab
    the postscript is correctly shown!
    The rough layout of the pages is:
    Start page:
      and frame2.htm (frame1.htm is not of importance):
    When one sets the target to open up a new page the postscript is shown correctly, but we want the postscript to be shown in the 'content' frame!
    If I remember correctly, did this work as wanted in the past and changed the behavior the last year. We experience this behavior in snow leopard and lion (all running the up to date Safari - and yes we are upgrading constantly).
    Any help to get the wanted behavior (back), would be very appreciated!!
    Cheers,
    Raimund

    same thing for me, anyone have any info on this?

  • Mime Types : application/octet-stream

    When using CFFILE, I am allowing "text/xml". Client is saving
    MS Excel as XML. Many test done and has worked until today when the
    error started occuring that the MIME type is not accepted. I do
    understand that the "application/octet-stream" MIME type is
    generated (sometimes) when a file is viewed or save in a word
    process or spreadsheet application.
    The question is ... are there security concerns if I allow
    "application/octet-stream" MIME type to be uploaded to the server?
    Any thoughts or conerns would be appreciated.
    -jb

    The MIME type is provided by the client browser. Is the
    browser posting an XML file and sending the MIME type as
    pplication/octet-stream instead of text/xml? In Windows/Internet
    Explorer MIME types and extensions are associated by a registry
    entry. If you have access to the client's PC you may wish to check
    this.
    If you allow application/octet-stream you are opening
    yourself up. I also recommend you check file extensions and only
    accept uploads from trusted sources.

  • Mime type application ole-object

    Sometimes I cannot view video material and I get a message like the one above. Sorry it is not an exact quote. But the key words are all there.
    Thanks

    That is a MIME type specifically for Windows and won't work on Macs.

  • Error Message- JTV has content of MIME type "application/x-mplayer2."

    Because you don't have a plug in installed for this type of Mime this content can't be displayed.
    Where do I go to get this plug in so I can view content that I'm needing to view?
    Thanks!

    http://flip4mac.com

Maybe you are looking for

  • Old Monitor as 2nd monitor

    I need dual monitors for editing in FCP and I got a low res, old HP monitor for free, but I just need it for one window of FCP. The plug it has on the back doesn't fit directly into the G5, but DOES fit on the converter that came with it. But the App

  • Example of creating a valid LDAP user and group in the Portal tree

    I need to create (via bulk LDIP or API) fresh users AND groups into OID that can be used by Portal. In theory it sounds easy - just create an appropriate LDIF file. What is the best way to achieve this? I don't the know the structure that should be u

  • Can oracle database interact with sysbase database in real-time?

    There are two database,one is oracle,one is sysbase,sysbase is produce database.My program only can visit oracle database,and can't directly visit sysbase database.My question is whether there is a directly link from oracle database to sysbase databa

  • /dev/sda for Arch but /dev/hda for custom kernel. Why?

    My laptop does not have a scsi or sata hard drive. So why does Arch's kernel view the drive as /dev/sda1 while a custom kernel views it as /dev/hda like it should?

  • PSE 10 exit app, PhotoShop Elements 10.0.exe stays running

    My drive crashed and had to be rebuilt. Reloaded PSE from my dvd. When I close PSE app PhotoShop Elements 10.0.exe does not close. PSE editor closes as it should. PSE will not restart unless I manually kill the executable. Other observations: I don't