Problem in getting the Date object based on the TimeZone

Hi,
I need to create a Date object that holds the time of the specified TimeZone.
I am using TimeZone and Calendar object for that, but when I call the Calendar object's getTime() method, it returns
a Date object that holds the local time.
Can somebody let me know what why?
Here is what I uses in my code.
TimeZone tz = TimeZone.getTimeZone("IST");
Calendar cal = new GregorianCalendar(tz);
System.out.println("Date of "IST" TimeZone = " + cal.getTime());
Instead of cal.getTime, if I do the following I am getting the values correctly.
int month = cal.get(Calendar.MONTH); // 0..11
int day = cal.get(Calendar.DATE); // 0..11
int hour12 = cal.get(Calendar.HOUR); // 0..11
int minutes = cal.get(Calendar.MINUTE); // 0..59
Can somebody let me know why I am not able to assign the Date of the TimeZone specified.
Is there anything wrong with the code?
Seb

Is there anything wrong with the code?No, only with your understanding of the Date class. From the API:
The class Date represents a specific instant in time, with millisecond precision.
The different time displayed for different TimeZones around the world are just that: a display format for the same instant in time.
To display the "instant in time" in a different TimeZone, use DateFormat. Here's a small sample:TimeZone tz = TimeZone.getTimeZone ("GMT");
Calendar c = Calendar.getInstance (tz);
System.out.println(c.getTime ()); // prints Tue Mar 18 02:56:53 IST 2008
DateFormat dtf = DateFormat.getTimeInstance ();
dtf.setTimeZone (tz);
System.out.println(dtf.format (c.getTime ())); // prints 9:26:53 PMIt's no different from formatting the same number in various ways: 10 decimal == 0xA hexadecimal == 012 octal == 1010 binary. Same value, different representation. Same intant in time, different local time for each zone.
Savvy?
cheers, db

Similar Messages

  • Data objects supported in the BPM Process Composer by Activity ?

    Hi,
    In BPMN 2.0 normalization, data objects are artefacts which show the reader which data is required or produced in an activity.
    How is the data objects supported in the BPM Process Composer?
    Thanks,
    Grégoire.

    Select the activity and then select the Data Associations button. You can associate existing data objects and create new ones.
    Heidi.

  • Facing lot of problems with the DATA object  -- Urgent

    Hi,
    I am facing lot of problems with the data object in VC.
    1. I created the RFC initially and then imported the data object in to VC. Later i did some modifications to RFC Function module,and when i reload the data object, I am not able to see the new changes done to RFC in VC.
    2. Even if i delete the function module, after redeploying the IVIew, results are getting displayed.
    3. How stable is the VC?
      I restarted the sql server and portal connection to R3 is also made afresh.... still i am viewing such surprise results..
    please let me know what might be the problem.

    Hi Lior,
    Are u aware of this problem.
    If yes, please let me know...
    Thanks,
    Manjunatha.T.S

  • Get Old Value and the new value based on the date

    Hi
    I have a table called roster created below with following insert statements.
    CREATE TABLE ROSTER
    ROSTER_EMPLOYEE_DEF_ID NUMBER,
    EMPLOYEE_ID NUMBER,
    DEFINITION_REGION_CODE NUMBER,
    DEFINITION_DISTRICT_CODE NUMBER,
    DEFINITION_TERRITORY_CODE NUMBER,
    START_DATE DATE,
    END_DATE DATE
    INSERT INTO ROSTER
    (ROSTER_EMPLOYEE_DEF_ID,EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE)
    VALUES
    (1,299,222,333,444,'1-JUN-2011','30-JUN-2011')
    INSERT INTO ROSTER
    (ROSTER_EMPLOYEE_DEF_ID,EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE)
    VALUES
    (2,299,223,334,445,'1-JUL-2011','20-JUL-2011')
    INSERT INTO ROSTER
    (ROSTER_EMPLOYEE_DEF_ID,EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE)
    VALUES
    (3,299,224,335,446,'1-AUG-2011','30-AUG-2011')
    INSERT INTO ROSTER
    (ROSTER_EMPLOYEE_DEF_ID,EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE)
    VALUES
    (4,300,500,400,300,'1-JUN-2011','20-JUN-2011')
    INSERT INTO ROSTER
    (ROSTER_EMPLOYEE_DEF_ID,EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE)
    VALUES
    (5,300,501,401,301,'1-JUL-2011','20-JUL-2011')
    In the above table we have columns like
    EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE
    The result i am looking from the above table is based on the EMPLOYEE_ID OF START_DATE AND END_DATE
    I need to get OLD_DEFINITION_REGION_CODE and the NEW_DEFINITION_CODE
    Similarly OLD_DEFINITION_REGION_CODE and the NEW_DEFINITION_REGION_CODE
    and OLD_DEFINITION_TERRITORY_CODE and the NEW_DEFINITION_TERRITORY_CODE
    I need to get one row of data for each employee saying old value and new value
    for employee 299 there are 3 records it must give the new record which is the latest date i.e start date 1-aug-2011 and end date 30-aug-2011 old record will be
    start date 1-jul-2011 and 20-jul-2011
    For the above table data i need to get the data as below
    EMPLOYEE_ID OLD_DEFINITION_REGION_CODE NEW_DEFINITION_CODE OLD_DEFINITION_REGION_CODE NEW_DEFINITION_REGION_CODE START_DATE END_DATE
    299 223 224 334 335 20-JUL-11 30-AUG-11
    300 500 501 400 401 20-JUN-11 20-JUL-11
    Please suggest me to get the above result based on the data. Please let me know if my posts are not clear
    Thanks
    Sudhir

    SELECT  EMPLOYEE_ID,
            OLD_DEFINITION_REGION_CODE,
            NEW_DEFINITION_REGION_CODE,
            OLD_DEFINITION_DISTRICT_CODE,
            NEW_DEFINITION_DISTRICT_CODE,
            OLD_DEFINITION_TERRITORY_CODE,
            NEW_DEFINITION_TERRITORY_CODE,
            START_DATE,
            END_DATE
      FROM  (
             SELECT  EMPLOYEE_ID,
                     ROW_NUMBER() OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE DESC) RN,
                     LAG(DEFINITION_REGION_CODE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) OLD_DEFINITION_REGION_CODE,
                     DEFINITION_REGION_CODE NEW_DEFINITION_REGION_CODE,
                     LAG(DEFINITION_DISTRICT_CODE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) OLD_DEFINITION_DISTRICT_CODE,
                     DEFINITION_DISTRICT_CODE NEW_DEFINITION_DISTRICT_CODE,
                     LAG(DEFINITION_TERRITORY_CODE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) OLD_DEFINITION_TERRITORY_CODE,
                     DEFINITION_TERRITORY_CODE NEW_DEFINITION_TERRITORY_CODE,
                     LAG(END_DATE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) START_DATE,
                     END_DATE
               FROM  ROSTER
      WHERE RN = 1
    EMPLOYEE_ID OLD_DEFINITION_REGION_CODE NEW_DEFINITION_REGION_CODE OLD_DEFINITION_DISTRICT_CODE NEW_DEFINITION_DISTRICT_CODE OLD_DEFINITION_TERRITORY_CODE NEW_DEFINITION_TERRITORY_CODE START_DAT END_DATE
            299                        223                        224                          334                          335                           445                           446 20-JUL-11 30-AUG-11
            300                        500                        501                          400                          401                           300                           301 20-JUN-11 20-JUL-11
    SQL>  SY.

  • How to get the pricing hierarchy based on the delivery date for sales order

    Hi,
    How to get the pricing hierarchy based on the delivery date for sales order other than system date.
    My requirement is to get the Pricing hierarchy based on the delivery date other than system date.
    Waiting for kind response.
    Best Regards,
    BDP

    HI Sai,
    please refer teh document already how to write FM based extration on generic extractors.
    and here  the logic to find the latest records values:-
    -> get the data in an internal table
    ->Sort the internal table data based from date descending
    -> Using READ statement , we can read the first record of the table which is nothign but your latest record.
    Regards.
    Sakthi

  • Problem with getting actual data from Detail in Master/Detail

    Hi.
    I'm using master-detail tables (based on Read-Only view objects connected with view link).
    In those tables some columns are inputText, so that user can change data for the use of stored procedure only (I don't want to change data showed in tables, just need a possibility to modify it before passing arguments to procedure)
    The problem is when I get data from rows from detail view (Read Only with attributes set to "updatable always") it's not the data user entered in the table (there is no problem in master table) but the data fetched from database.
    This is the way I do it in backing been:
    Row[] masterRows = view.getAllRowsInRange();
    for (int i = 0; i < masterRows .length; i++){
      MasterRowImpl row = (MasterRowImpl )masterRows;
    System.out.println("Group name:" + row.getGroup())
    RowIterator rowIterator = row.getDetailsView();
    while(rowIterator.hasNext()){
    DetailsViewRowImpl detailRow = (DetailsViewRowImpl )rowIterator.next();
    System.out.println("User name: " + detailRow.getName())
    So if (for example) in database I have Group1, with 3 detail rows: John1,John2,John3;
    and user in Tables displayedon page changes it like this:
    Group1_changed, John1, John2_blah, John333
    After executing the code above I get:
    Group name: Group1_changed
    User name: John1
    User name: John2
    User name: John3
    Is it a normal behaviour?
    ps. When I use entity based view objects there is no problem, but I want to use ReadOnly View Objects.

    this is my function that reads the data:
    while( ( ch = dis.read() ) != -1 ){
    mess.append((char)ch);
              licz++;
              if(licz>prog){
                   licz=0;
                   //gauge.setValue();
    when i use just mess.append(dis.readUTF()))
    i get en exception:
    java.io.EOFException
         at java.io.DataInputStream.readFully(+45)
         at java.io.DataInputStream.readUTF(+32)
         at java.io.DataInputStream.readUTF(+4)
         at KConnection.KConnector.connect(+137)
         at SerwisMain.download(+25)
         at SerwisMain.ok(+415)
         at KGUI.KInput.commandAction(+209)
         at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+152)
         at com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop.run(+459)

  • How do I reference the data object in a DataGrid to show an image correctly in Acrobat?

    I'm creating an inferface for an Acrobat application  and I'm having a issue with displaying an image in a grid.  When I hard code the source="statusNONE.png" it works as intended (with an image, not the image associated with each grid item), however, when I try to use the source="{data.@icon}" to reference the dataProvider (XMLListCollection) I get nothing.  Not a broken image or anything.  I think I may just not be referencing the XMLListCollection correctly, otherwise I don't know why it would work with hard coding vs. fetching the string from the XML.
    //Application Header (Flex 4.5)
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     width="100%" height="100%" creationComplete="eaton_creationCompleteHandler(event)"
                                     currentState="Review">
    //Sample of XML that gets used as basis for XMLListCollection
    <Annots>
         <Annot name='TEST' index='14' feedback='' canConstruct='0' icon='statusNONE.png'/>
    </Annots>
    //creation of the XMLListCollection from String
    [Bindable] protected var fullXML:XML;
    [Bindable] protected var fullXMLCol:XMLListCollection;
    protected function loadXML(xmlString:String):void
          fullXML = new XML(xmlString);
         var fullXMLList:XMLList = fullXML.children();
          fullXMLCol = new XMLListCollection(fullXMLList);
    //DataGrid
    <s:DataGrid left="0" top="0" bottom="0" width="142" dataProvider="{fullXMLCol}"
                                            requestedRowCount="4" rowHeight="30"
                                            top.Confirm="87">
                        <s:columns>
                                  <s:ArrayList>
                                            <s:GridColumn dataField="@name" headerText="Annotations"></s:GridColumn>
                                            <s:GridColumn headerText="status" width="30" >
                                                      <s:itemRenderer>
                                                                <fx:Component>
                                                                          <s:GridItemRenderer>
                                                                                    <s:Image width="30" height="30" source="{data.@icon}"/> //THIS IS THE PART THAT SEEMS TO BE GIVNG ME TROUBLE!
                                                                          </s:GridItemRenderer>
                                                                </fx:Component>
                                                      </s:itemRenderer>
                                            </s:GridColumn>
                                  </s:ArrayList>
                        </s:columns>
                        <s:typicalItem>
                                  <fx:Object dataField1="Sample Data" dataField2="Sample Data" dataField3="Sample Data"></fx:Object>
                        </s:typicalItem>
              </s:DataGrid>
    Additional information.  I'm using the resources tab for the flash embedding in Acrobat for my images. This works when I am hard coding the file name string works for the source without having to add a full path, the images are not technically bundled into the swf.   I just don't understand why using the data object to get that same string would show different results.
    tl;dr: GridItemRenderer works to show images when hard coded but not when using {data}.
    UPDATE: Figured it out, needed to add a toString() to the data.@icon.   I had assumed it was a string being handed over, I assumed wrong.

    Probably because data.@icon isn't a String, it is an XMLList, and source property is an Object not a String so the runtime doesn't automatically convert it.
      Try [email protected]()

  • The data object "BSEG" does not have a component called "ZZREGION"

    Hi Friends,
    Getting ABAP runtime error while doing MIGO-Goods receipt .
    The data object "BSEG" does not have a component called "ZZREGION".
    Regards
    Ashu

    check/activate  table bseg in se11
    A.

  • How do I get the date to print at the bottom right of a page

    fI can't get the date to print at the bottom of a page. I go to page setup and header/footer and ensure that date/time is entered into the lower right corner box and the date still doesn't print on a page.
    == This happened ==
    Every time Firefox opened

    Try setting your bottom margin on File > Page Setup > Header & Footer to .3 or .4
    You probably are not seeing the date at the bottom in Print Preview either.
    On my system, with HP 6200 series, I experience the same problem if my bottom margin is set to 0 (zero).
    You may experience the same problem with headers with a 0 (zero) top margin.

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

  • The data object "FP_FORMOUTPUT" does not have a component called "XML"

    Hello All,
    When i tried to run a simple report with ADOBE form i got this message:
    The data object "FP_FORMOUTPUT" does not have a component called "XML"
    I saw that the field XML is really missing in structure fpformoutput!
    Also in structure sfpoutputparams the field GETXML is missing!
    Is there a note to fix this?
    The system status is:
    Database system      ORACLE
    Release              10.2.0.2.0
    SAP_BASIS     700     0012     SAPKB70012     SAP Basis Component
    SAP_ABA     700     0012     SAPKA70012     Cross-Application Component
    ST-PI     2008_1_700     0000          -     SAP Solution Tools Plug-In
    PI_BASIS     2005_1_700     0012     SAPKIPYJ7C     PI_BASIS 2005_1_700
    SAP_BW     700     0013     SAPKW70013     SAP NetWeaver BI 7.0
    SAP_AP     700     0009     SAPKNA7009     SAP Application Platform
    SAP_HR     600     0016     SAPKE60016     Human Resources
    SAP_APPL     600     0009     SAPKH60009     Logistics and Accounting
    EA-IPPE     400     0009     SAPKGPID09     SAP iPPE
    EA-HR     600     0016     SAPKGPHD16     SAP Enterprise Extension HR
    EA-GLTRADE     600     0009     SAPKGPGD09     SAP Enterprise Extension Global Trade
    EA-PS     600     0009     SAPKGPPD09     SAP Enterprise Extension Public Services
    EA-RETAIL     600     0009     SAPKGPRD09     SAP Enterprise Extension Retail
    EA-FINSERV     600     0009     SAPKGPFD09     SAP Enterprise Extension Financial Services
    EA-DFPS     600     0009     SAPKGPDD09     SAP Enterprise Extension Defense Forces & Public Security
    EA-APPL     600     0009     SAPKGPAD09     SAP Enterprise Extension PLM, SCM, Financials
    FINBASIS     600     0009     SAPK-60009INFINBASIS     Fin. Basis
    ECC-DIMP     600     0009     SAPK-60009INECCDIMP     DIMP
    ERECRUIT     600     0009     SAPK-60009INERECRUIT     E-Recruiting
    FI-CA     600     0009     SAPK-60009INFICA     FI-CA
    FI-CAX     600     0009     SAPK-60009INFICAX     FI-CA Extended
    INSURANCE     600     0009     SAPK-60009ININSURANC     SAP Insurance
    IS-CWM     600     0009     SAPK-60009INISCWM     Industry Solution Catch Weight Management
    IS-H     600     0009     SAPK-60009INISH     SAP Healthcare
    IS-M     600     0009     SAPK-60009INISM     SAP MEDIA
    IS-OIL     600     0009     SAPK-60009INISOIL     IS-OIL
    IS-PS-CA     600     0009     SAPK-60009INISPSCA     IS-PUBLIC SECTOR CONTRACT ACCOUNTING
    IS-UT     600     0009     SAPK-60009INISUT     SAP Utilities/Telecommunication
    LSOFE     600     0009     SAPK-60009INLSOFE     SAP Learning Solution Front-End
    SEM-BW     600     0009     SAPKGS6009     SEM-BW: Strategic Enterprise Management
    ST-A/PI     01L_ECC600     0000          -     Application Servicetools for ECC 600
    Thank you all In advance,
    Eran FOX

    Hello Otto,
    Thank you for your reply...
    If i enter se11 to see the structure of FPFORMOUTPUT for example... i get the following structure:
    PDF     FPCONTENT     RAWSTRING     0     0     Form Processing: Content from XFT, XFD, PDF, and so on
    PDL     FPCONTENT     RAWSTRING     0     0     Form Processing: Content from XFT, XFD, PDF, and so on
    PAGES     FPPAGECOUNT     INT4     10     0     Form Processing: Number of Pages Created
    LANGU     LANGU     LANG     1     0     Language Key
    can you see any XML field here?
    This is OLD as you said - but how can i get the proper one?
    Thanks again,
    Eran

  • SQL Query to retrieve the All records based on the Max Dates.

    Hello all,
    I am trying to retrieve the newest record based on the date field (  nextDate  ).
    Currently there are only 4 records in the MC_Maintenance table and two in the Machine table.
    Machine table
    MC_id             EquipID          
    1                      0227
    MC_id             EquipID
    2                     0228
    MC_Maintenance table
    Maint_id           MC_id             Next_maint                  
    1                      2                      08/25/2010     
    2                      2                      07/01/2010
    3                      1                      06/11/2010
    4                      1                      07/11/2010
    What I  am trying to accomplish is,
    list the two machines from the Machine table with the MAX(Next_maint) controlling the MC_Maintenance output list
    These are the records that I would like to Display.
    Maint_id           MC_id             Next_maint                  
    1                      2                      08/25/2010
    4                      1                      07/11/2010                 
    Below is the SQL Query
    SELECT
           MC.MC_ID as ID,
            MC.complete_Date as completed,
            MC.next_maint as nextDate,
            MC.maint_notes as Notes,
            MC.facility as Facility,
            M.EquipId,
            M.name as name,
            M.SerialNumber as SN,
            M.dept as dept,
            M.Freq as freq
            From  MC_Maintenance MC, Machine M
            where  MC.MC_ID =  M.MC_ID
    '           USING MAX(nextDate )
    Any ideas would help.
    TJ

    I would have thought that was a simple group by problem?
    SELECT M.EquipID, MC.MC_ID, Max(MC.next_maint)
    FROM MC_Maintenance MC INNER JOIN Machine M ON MC.MC_ID = M.MC_ID
    GROUP BY M.EquipID, MC.MC_ID

  • Can't open the Data Object Editor

    Hi everybody,
    I'm new to the OWB. Currently using the 11.2.0.1 version. Working with it is fine - but I got a major problem. I'm not able to start the Data Object Editor. I click open/new but nothing. The view doesn't change. What am I doing wrong?
    Help would be very appreciated.

    Hi everybody,
    I wanted to add some tips for newbies (like me). Yesterday I was setting up a mapping. I dropped a Joiner-Operator and weren't able to set the joiner options. If you search for a solution - in 99% the answer is Mapping Editor. But since the 11gr2 there is no editor. You just open the "Property Inspector" (under the view menu) - click on the operator (or table or ...) and there you got all the things you need. I hope this will help some of you.
    bye
    Edited by: Backlit on 20.05.2011 07:00

  • Firefox is my default browser in my local system, i am getting junk data when i open the .html type of files as attachment but there is no issue when i open as inline

    Hi,
    could please help me of the folloing issue
    i have set up the firefox is default browser in my local system.
    issue with only .html type files not with .doc .... etc.
    my application requirement is to view the attached document if set Content-Disposition as "attachement" then open the dialog box with open or save radio options then if i select the open option data getting as junk data not the actual data.
    if set Content-Disposition as "inline"' then file open in same accessing browser with proper data.
    Note
    i am using following piece of code in my application
    response.setHeader("Content-Disposition", "attachment;filename=\""
    + fileName + "\"");
    actual my case is :
    some where in my application i copy/paste the data from ms-word
    then it saved as .html file after that when i want to see the data, then click on the attachment it opens dialog box, here i am selecting open option then it opens in my default browser "firefox" with junk data .
    please observe the following junk data,

    Hi 20fox12, this is most likely an IE problem. Firefox has no effect on any other installed applications. Unfortunately I have no idea what to do about your issue. I'd suggest a forum that is more tuned towards Windows issues.

  • MI: the data objects in the SCV dont have the active DOE triggered adapter

    We try to use SDOE_LOAD on MI7.1 to do the initial load.
    However, we get the error:
    "the data objects in the SCV dont have the active DOE triggered adapter."
    We cannot find a fix anywhere.
    Please help. thanks a lot!

    Hi,
    Assuming that you are using 7.1 in non-backward compatibility mode.
    1. The client post the update/delete/insert request to DOE in bound queue.
    2. The DoE post these messages to the BE.
    3. Meanwhile, after posting all the message client starts reading outbound messages in DoE till the outbound queue is empty.
    4. WHILE the client is reading outbound messages in 3. above the BE has validated the update/delete/insert request and posted a confirmation/rejection messages to DoE outbound queue the message will flow down to the client in the same sync cycle.
    However, if it's posted to DoE after the client has finishing syncing with DoE the message will flow down to the client in the next sync.
    So you see it cannot be guaranteed that the ocnfirmation/rehection message will flow down to the client in the same sync cycle.It may or may not happen.
    I hope this clarifies.
    Best Regards,
    Amit

Maybe you are looking for

  • Freezes, beachballs and problems. How do I fix this?

    I have been having a lot of problems lately, well really since the day I bought this thing, and I'm curious if there is something I can fix? My macbook pro seems to be running really poorly; getting beachballs just to open another tab in Safari when

  • [MOD]ICED IN WIN 904 by XTSX awarded "Guru3D Rig of the Month - November 2014"

    This mod was build for LDLC Modding Trophy 2014 contest and just awarded "Guru3D Rig of the Month - November 2014" on Nov 28, 2014.  http://www.guru3d.com/articles-pages/guru3d-rig-of-the-month-november-2014,1.html Thomas Scherrer, better known under

  • Microphone dead after iOS 5 Update

    My internal iPad 2 microphone is no longer working after the iOS 5 update. Persons on FaceTime can't here me, or extremely low level at best. Same when I record Video. No or extremely low level Audio, definitely not understandable. The headset microp

  • How do I send my unfinished Photo Book to my sister via the internet?

    I want her to work on it and send it back to me? Is there an easy way to export my work-in-progress to her Mac Pro and to have her send it back to me? Thanks,

  • Variable for Offset

    There is standard report Customer overdue Analysis in which it gives the days overdue amount.Like,0-15 days, 16-30 days,31-60 days etc. Now the clients requirement is he should be able to input the days interval as per his desire, say 0-5 days, 6-10