Problem faced with setContentType

Initially i am sorry for posting this here as this is not a Swings topic.
I am facing a prob. of the foll. type :
I have a string with me which has some content for eg strA =
To:
123/456
239.
Items Qty.
2 8
Thanks,
ABC.
Lets suppose the content is as above.I am using setContentType(strA,"text/plain").I can use text/html but there is a certain requirement due to which i have used plain text & the final format is as I have printed above.
I am mailing this text.
My prob. is that i receive the same format thru Microsoft Outlook ,hotmail & yahoo accounts.
But am facing a prob. with the format when i receive it thru Outlook Express.
The text gets typed without any alignment.,spaces ....
What could be the reason & is there any way to solve this.Is my MIME type wrong?

\n...is the only tag i have used...i have avoided even \t........
basically the string spaces r maintained by means of spaces.....
as no tags were wanted to be kept...as i said this is plain text......
but even the spaces r not taken properly...........the text get's printed the way it wants to .......in outlook express...i believe that text/plain cud be replaced by something else but that is what i don't know....

Similar Messages

  • Problems Faced with Partitions in Oracle 9i.

    I have a doubt regarding the partitions in Oracle 9i can you please help me regarding this?
    Create table t1
    ( x number,
    y number,
    z number);
    insert into t1 values (1,1,1);
    insert into t1 values (2,2,2);
    insert into t1 values (3,3,3);
    Create table t2
    x number,
    y number,
    z number
    partition by range(x)
    partition p1 values less than(2),
    partition p2 values less than(3),
    partition p3 values less than(4),
    partition p4 values less than(maxvalue)
    alter table t2 exchange partition p1 with table t1;
    SQL> alter table t2 exchange partition p1 with table t1;
    alter table t2 exchange partition p1 with table t1
    ERROR at line 1:
    ORA-14099: all rows in table do not qualify for specified partition
    WHAT DOES THIS ERROR MESSAGE MEAN? I AM NOT ABLE TO UNDERSTAND THIS? WHAT NEED's TO BE DONE TO RESOLVE THIS?
    alter table t2 exchange partition p1 with table t1 WITHOUT VALIDATION;
    SQL> SELECT * FROM T2;
    X Y Z
    1 1 1
    2 2 2
    3 3 3
    SQL> SELECT * FROM T2 PARTITION(P1);
    X Y Z
    1 1 1
    2 2 2
    3 3 3
    SQL> SELECT * FROM T2 PARTITION(P2);
    no rows selected
    SQL> SELECT * FROM T2 PARTITION(P3);
    no rows selected
    (i) Why i am facing this error ORA-14099: while partitioning? Can you please brief me about this ?
    (ii) why there is not data's in the PARTITIONS p2 &p3 after the partitions is exchanged WITHOUT VALIDATION options?
    what is going with this method?
    (iii) Also can you please explain me with an example how to partitions a table having milliion of records with EXCHANGE PARTITION Options with MULITPLE partition segment's (say partition based on status id column with 6 differnt values i am thinking to use list partitions using status_id as partition key) ?
    Also i have tried the below approch is this a right approch? please correct me if i am wrong.
    Create table t1
    ( x number,
    y number,
    z number);
    insert into t1 values (1,1,1);
    insert into t1 values (2,2,2);
    insert into t1 values (3,3,3);
    commit;
    Create table t2
    x number,
    y number,
    z number
    partition by range(x)
    partition p1 values less than(2),
    partition p2 values less than(3),
    partition p3 values less than(4),
    partition p4 values less than(maxvalue)
    SQL> insert into t2 select * from t1;
    3 rows created.
    SQL> commit;
    Commit complete.
    SQL> SELECT * FROM T2 PARTITION(P1);
    X Y Z
    1 1 1
    SQL> SELECT * FROM T2 PARTITION(P2);
    X Y Z
    2 2 2
    SQL> SELECT * FROM T2 PARTITION(P3);
    X Y Z
    3 3 3
    SQL> SELECT * FROM T2 PARTITION(P4);
    no rows selected
    EXPLAIN PLAN
    FOR SELECT * FROM T2 WHERE X = 1
    | Id | Operation | Name | Rows | Bytes | Cost | Pstart| Pstop |
    | 0 | SELECT STATEMENT | | 1 | 9 | 2 | | |
    | 1 | TABLE ACCESS FULL | T2 | 1 | 9 | 2 | 1 | 1 |
    Now my question is what is problem instead of using EXCHANGE PARTITION why caun't we follow this above approch?
    to partition a non-partitioned table?
    Thanks,
    Rajesh.

    The value of 3 should obviously should go into the partition P3.Then why are you putting it into p1?
    Your command,
    <tt>    alter table t2 exchange partition <b>p1</b> with table t1;</tt>
    will swap partition p1 with the contents of table t1, leaving you with partition p1 containing the three values that were in t1. At first it told you there were rows in t1 that did not belong in that partition, but you used FORCE so it put them in anyway.
    btw there are notes in the FAQ about how to use ** tags to format your posts.
    ~Edited by: William Robertson on Oct 15, 2008 6:49 AM~                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem facing with file upload in webdynpro

    hi
    this is sathya, i very thank ful  to your answers, coming to my problem
    i have written the code for file upload action method, in this below code there is no syntax problem.
    but there is a run time error , i.e convt_no_number
    kindly rectify that.
      data:  lt_final type table of zalvtab,
             ls_final type zalvtab,
             "t_table1 TYPE STANDARD TABLE OF str_itab,
             "fs_table TYPE str_itab,
             i_data TYPE STANDARD TABLE OF string,
             lo_nd_zalvtab TYPE REF TO if_wd_context_node,
             lo_el_zalvtab TYPE REF TO if_wd_context_element,
             l_string TYPE string,
             l_xstring TYPE xstring,
             fields TYPE string_table,
             lv_field TYPE string.
      DATA : t_table TYPE if_main=>elements_sel_node,
             data_table TYPE if_main=>elements_sel_node.
    " get single attribute
        wd_context->get_attribute(
           EXPORTING
           name =  `upload`
           IMPORTING
             value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
        SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
    " Bind With table Element.
       LOOP AT i_data INTO l_string.
        SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
        READ TABLE fields INTO lv_field INDEX 1.
        ls_final-ebeln = lv_field.
         READ TABLE fields INTO lv_field INDEX 2.
        ls_final-ekorg = lv_field.
         READ TABLE fields INTO lv_field INDEX 3.
         ls_final-bukrs = lv_field.
         READ TABLE fields INTO lv_field INDEX 4.
         ls_final-ebelp = lv_field.
          READ TABLE fields INTO lv_field INDEX 5.
         ls_final-menge = lv_field.
         READ TABLE fields INTO lv_field INDEX 6.
         ls_final-netpr = lv_field.
         READ TABLE fields INTO lv_field INDEX 7.
         ls_final-aedat = lv_field.
         READ TABLE fields INTO lv_field INDEX 8.
         ls_final-waers = lv_field.
         READ TABLE fields INTO lv_field INDEX 9.
         ls_final-description = lv_field.
          APPEND ls_final  TO lt_final.
      ENDLOOP.
      lo_nd_zalvtab = wd_context->get_child_node( 'sel_node' ).
    lo_nd_zalvtab->bind_table( lt_final ).

    Hi Sathya,
             I guess you are trying to upload data from excel file(XLS format).
             If it is correct then you cannot do this in webdynpro, first you save the excel file as tab delimited.
             Open your excel file->save as->other formats->give file type as TEXT(Tab delemited).
             Now use this file to upload. It should work perfectly.

  • Problem facing with Transient in View Object

    Hi Friends,
    I had created a new table in the database and create an Entity Object for that table,
    i had add this entity object in one of the View Object and when i was trying to add attributes from Available List to the Selected List.
    The Attributes are changing to Transient and that particular attribute Mapped to column got unchecked, even tho i check it manually it is turning unchecked automatically when i click on Apply Button.
    * In Entity Object Attributes are checked with >Persistent and Queryable and Type is NUMBER Updatable checked to Always.
    Can you please suggest me where am i going wrong, i had done me best to solve this problem.
    Please help me out from this problem.
    Thanks in advance,
    Rahul

    Rahul,
    Your question is related to ADF Business Components, not to JHeadstart.
    Please use the JDeveloper forum for this question.
    Thank you,
    Steven Davelaar,
    JHeadstart team.

  • Problem faced with Jtable

    I have a row added to JTable.I am trying to edit column 2 in it.Now i keep my cursor in the same column which is being edited (i.e the focus remains in the column being edited) & click on Cancel Button
    By means of this button i clear the Jtable.i.e delete the row which is added to it.
    Now i add 1 more row to this Jtable.
    The same column of the newly added row displays the contents which had been edited previously.
    Eg : Row consists of 3 columns Col. 1 : Name
    Col 2 : Roll No
    Col 3 : Place .
    Assume that i add a row with name pradeep Roll No. 2 & Place - Mumbai.
    I edit col. 2 having roll no. 2 & make it 3.Keeping the focus here only i click on cancel.
    This row has been thus deleted.Now i add a new row..which has name : Manish Roll No : 5 & Place : Mumbai.But Column 2 shows 3 instead of 5.
    I have tried Jtable..repaint();
    jtable.updateUI();
    jtable.lostFocus();
    jtable.getCellEditor().stopCellEditing();
    however still this happens...is there any way to make jtable lose focus externally.....or any other way to handle this.

    It's the same what i have explained, though it's not real stuff..the idea is the same....yet i have clarified things below also...i have an textfield wherein i enter the main code.I click on enter & the details related to this code get added to the grid.Like in the example given be4...Let's assume i enter 1 i.e the code in the textfield & click on enter.The details related to 1 are Name : Pradeep Roll No. : 2 & Place : Mumbai.(Note that Name,Roll No & Place are column names)
    This gets added to the grid.Now i change the Roll No. which is currently 2 to 3.My focus is in this column.For some reason i don't need this record & click on cancel button.
    Now i enter 2 in the Textfield & click on enter. The details expected to be seen in the added row are Name : Manish , Roll No. 5 & Place Mumbai.But what is seen instead of this is Name : Manish , Roll No. 3 & Place : Mumbai.Also the focus is already in column 2.
    When we edit a column the code added changes the column data & then calls
    jTable.getCellEditor().cancelCellEditing().
    The code on clicking cancel calls
    jtable.repaint();
    jtable.updateUI()
    if (jtblBarCodeDetails.isEditing()) {
    jtblBarCodeDetails.getCellEditor().stopCellEditing();
    well.....that is it..

  • Problem facing with iphone camera

    Hi Guys
    I am using iphone 4 from last 3 years, from last 6 months i am not able to use camera of my phone. When I try to open cam shutter it keep shut. I am not able to option shutter. Can you guys help me to sort out this problem..
    Regards
    Parveen

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Problems faced with VL10D transaction in sap

    Hi,
       I am using BADI to generate error message for VL10D transaction.The error message is generated properly.But it is exiting the transaction.The user wants that it should come back to the initial screen of the VL10D transaction.
       I have tried to do this with warning messages displayed as error message.But it is not working properly.The delivery is getting
    created with errors.
        Please help me out. <removed by moderator>
    Thanks and regards,
    Raka.
    Edited by: Thomas Zloch on Sep 28, 2011 1:06 PM

    Hi
    Combine your BADI as a warning message and with older userexits (see Note 198137 - VL10: Customer-specific enhancements / user exits). Use the include LV50R_VIEWG06 and set cf_subrc = 1 for the deliveries that you must not create because they hava an error.
    I hope this helps you
    Regards
    Eduardo

  • Problem facing with BC-Set activation while doing servicedesk configuration

    Hi All,
    I have installed Solution Manager 4.0,And i applied all the latest service pack (both abap and java service packs).I try to activate some BC-sets(ex: Service_desk_change_request_32A,Service_desk_change_request_32F2).When try to activiation it is giving  Runtime errors like DATA_LENGTH_0
    and Exception CX_SY_RANGE_OUT_OF_BOUNDS
    Can some one help how to activiate the BC-Sets in the process of configuring the Service desk userin the SolutionManager system.
    regards
    srujan

    Hi JP,
    The BC sets in note 898614 are in IMG activity "Activate Service Desk BC Set". I put this together for myself just to track what the heck is going on while I configured this.
    Cofiguration of Basic Settings:
    SAP Solution Manager Implementation Guide
    ..SAP Solution Manager
    ....Configuration
    ......Basic Settings
    ........Standard Configuration of Basic Settings
    ..........Solution Manager
    ............Activate Maintenance Optimizer BC Set
    ................SOLMAN40_MOPZ_TTYP_SLMO_000
    ................SOLMAN40_CHARM_PROXYFACT_001
    ............Activate Service Desk BC Set
    ..............This task refers to the BC sets in note 898614:
    ................SOLMAN40_SDESK_BASICFUNC_000
    ................ZSOLMAN40_SDESK_ACT_ADVCLOSE_001
    ................ZSOLMAN40_SDESK_ACTIONLOG_001
    ................ZSOLMAN40_SDESK_TPI_ACT_AST_001
    ..............Then note 898614 says apply BC sets in note 931196:
    ................ZSOLMAN40_SDESK_TEXTTYPES_001 << This errors out
    ................SOLMAN_CORPF_TEXTTYPES_001 << Should I?
    For me activating BC Set ZSOLMAN40_SDESK_TEXTTYPES_001 gets the error:
    COMV_TEXT_CUST No data found for writing activation links for object COMV_TEXT_CUST.
    Also, I think I may have blown it by not doing the piece lists. I have heard differently whether to do it or not and in which client and how to get it form dev to prod.
    Also, I could be wrong but I thought SERVICE_DESK_CHANGE_REQUEST_32A was from SolMan 3.2.
    Please post if you get it all figured out.
    Good luck,
    David

  • HT201210 In the attempt of updating the latest itune software, i am faced with the problem of not being able to be connected to itunes with my ipod touch that is blocked living the USB cable and the itune icons on my touch sceen. Can some one help me out

    In the attempt of updating my ipod touch, i am  faced with the problem of not being able to be connected to the itunes in my computer (windows xp ) because my ipod touch got blocked up, leaving the icon of USB cable and itunes on my touch screen. I am asked to restore my ipod first, but i have tried using all the examples stated and still can't help. Please please, can some one help me out ? Ones  in the process of trying, i see an error code: 1656 and most of the time nothing. Thanks

    See if placing the iPod in Recovery mode will allow a restore via iTunes
    Next try DFU mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    You can also try another computer to help determine if you have a computer or iPod problem.

  • I am facing with the problem "plugin-container.exe has encountered a problem and needs to close. Please suggest how to fix the problem.

    I am using desktop computer with windows XP. Sometimes, I am facing with the problem "plugin-container.exe has encountered a problem and needs to close". After showing this event, the browser disappears automatically.

    See if there are any Crash Reports ID's saved.
    Type '''about:crashes''' in the Location Bar and hit Enter.
    Then open each Crash Report and once the report is loaded completely, copy and paste the URL of each report into the the '''''Post as Reply''''' box in this thread.
    IMO, seeing that you are using WinXP, you might be better off with the older Flash 10.3.183.90 version. Flash 11.0 and later have "improvements" that don't work on WinXP - only Vista and later. Adobe did continue to support and provide security updates for Flash 10.3 until a few months before WinXP went EOL back in April of this year.

  • My iphone 5 is problem facing like that. when i switch off my iphone5 then plugh for charge with data cable or charger adapder or only data cable with no power connect phone is starting why? means on my phone Why? any one can explane this matter please. s

    my iphone 5 is problem facing like that. when i switch off my iphone5 then plugh for charge with data cable or charger adapder or only data cable with no power connect phone is starting why? means on my phone Why? any one can explane this matter please. switched off my phone but on without power button . what is the problem?
    Thanks
    s.m slim

    all iphone is same like that

  • Hi , unfortunately i faced with a problem that i couldent open my audio note so i thought if i delet it and transfer the application from itunse from my pc i can have my files...but all of them deleted from both application and also from wifi address... I

    Hi , unfortunately i faced with a problem that i couldent open my audio note so i thought if i delet it and transfer the application from itunse from my pc i can have my files...but all of them deleted from both application and also from wifi address... Is it any solution for recovery the filew? I missed lots of important files , plz help me
    Tnx alot

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • I am facing with the following problem whenever i start my laptop.Insecure Startup Item disabled."/Library/StartupItems/MobileBrServ" has not been started because it does not have the proper security settings.

    I am facing with the following problem whenever i start my laptop(Macbook Air,OSX 10.9.4).
    Insecure Startup Item disabled.“/Library/StartupItems/MobileBrServ” has not been started because it does not have the proper security settings.

    Open /Library/StartupItems/ folder and locate the file then remove it. You have installed incompatible software. If you don't believe this is correct, then determine what software installed the item and contact the developer for help.

  • Faced with the problem of restoring a backup!

    Faced with the problem of restoring a backup! Requires a password, the friends God knows, I did not set it, or should be able to set that do not fit! There is a solution to my problem?

    If you do not know the password you will need to restore the device.
    You can restore it with your last backup iTunes made that has no password.
    See this,
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device

  • Solution to problems synchronizing with Mercedes C...

    Warning: this is long but worths reading if you have trouble synchronizing your Nokia's phone book/addressbook with COMAND APS.
    I have spent hours looking on Mercedes and Nokia forums for my problem and did not find a posted solution. I have now found a solution myself so I decided to post here hoping it will help other people.
    First my issue: I have an E-Class W211 (Apr 2005, UK) with phone pre-wiring, the Mercedes SAP v2 cradle and a Nokia E61i (S60 3rd edition). Till about a week ago the whole was working perfectly: was able to make/receive calls, read/send SMS, synchronize the phone's and SIM contacts to the COMAND, etc.
    About a week ago I upgraded the firmware on my phone to overcome some other (irrelevant to this) issues I had. When I got into my car after the phone's firmware upgrade I naturally needed to pair the phone with the COMAND/SAP Cradle. I did everything according to the manual that came with the SAP v2 Cradle and thought all would be good again. Then, I try to re-sync the COMAND's address book with that of my phone's by following the manual's procedure (dial 0000).
    The synchronization started ok: phone exited Remote SIM mode, got indication "Please Wait" on Comand and phone went into Sync mode. Almost immediately though I get on the phone "System Error" and just the option to press ok. I pressed ok and few seconds later the synchronization process ended, Remote SIM was activated again but phonebook was not loaded to COMAND. I repeated the same process over and over again, removed pairing and went over the whole pairing process from the beginning but still no luck. Unfortunately neither the phone or the COMAND would give any information on what the problem was.
    I checked for many hours on Nokia and Mercedes forums, on Google, etc. but still no luck. I found quite a few people facing the same problem mainly with N95 and E-series phones but no solution. Strange thing was that all were facing the problem from the very first time they tried to transfer their phone's contacts to COMAND while in my case in the past it was working and stopped working after upgrading my phones firmware.
    After hours of trial and error (removed recently installed phone applications, restored old phone backups, etc.) without luck I thought the problem would be the new firmware on my phone. But... I had no way to go back to the old firmware but even if I had I would cause the same issues that the new firmware solved again (so "rolling back" the firmware was not a real option). So I started going through every possible "core" phone setting that could have changed with the firmware upgrade to see what could be wrong and voila: if you go to the Connect->Sync menu on your phone you will see there a sync profile called PC Suite. Select it, click Options, Edit Profile and then, Connection. You will see that one option is Server Version. If selected Server Version is 1.2 underneath there is another option called Server ID. These two (Server Version and Server ID) are what cause the problem. You have the option to edit the PC Suite profile and set Server Version to 1.1 (then Server ID option disappears) and synchronization with COMAND will work. But as you might have side effects with PC Suite in this way, the ideal thing to do is to create a new sync profile, copy the settings from the PC Suite profile (you are prompted for this) and then, go and change this new profile so that Server version is 1.1. That was it (at least in my case) and I hope this will be helpful for others too. I also had Mail For Exchange installed on my mobile and removed it but I don't think this was the issue (will actually re-install MfE on my mobile now).
    Obviously, this Server Version 1.2 option did not exist on the old firmware of my phone so there was nothing to configure and all was working ok seamlessly but when it came out and set as the default by Nokia caused the incompatibility with Mercedes COMAND.
    Good Luck!

    Thanks for a thorough description of your problem and devised solution.
    I was getting very happy with your description of facts, for I recognized them all. However, in my case your solution did not work: I did change back to Server Version 1.1 of the synchronization profile and still get the "System Error" message.
    I have no doubts whatsoever that this happened with the 110.07.127 firmware upgrading.
    Do you have any other clue on how to proceed from here?
    JB

Maybe you are looking for

  • Cascading physical standby from another physical standby for primary rac

    my supplier told me that is possible mount a cascade physical standby from a physical standby for my rac installation. but according the note "409013.1" seems not: "Cascading a logical or physical standby database from a physical standby database is

  • [REQUEST] Gargoyle

    Gargoyle is an IF player that supports all the major interactive fiction formats. Most interactive fiction is distributed as portable game files. These portable game files come in many formats. In the past, you used to have to download a separate pla

  • Create Multilevel Standby database

    HI All, We have a 10.2.0.2 primary database with a physical standby database. We would like to create 2 more physical standby databases for the same primary but, we dont want to have the logs shipping from primary database as it is prod. Is there any

  • ITunes Agreement Window and Wizard Popup

    After installing the latest version of iTunes (iTunes 10), I start iTunes and it shows the iTunes agreement popup and the iTunes wizard assistant. I go through these windows and start iTunes normally. However, after closing, restarting the computer o

  • Sliding Panels Height

    I want to set individual heights for the different "AccordionPanelContent"s. Doing this using understood methods of CSS is not working and there is no help in the Dreamwaver Help files. So, what I need to know is....what CSS propert can I use so that