Insert/Update VO with UTF-8 charset

Hi,
I worked so far only with iso-8859-1 charset and everything went fine, but now with UTF-8 I am experiencing strange problems. Every unicode char is converted to html equivalent(e.g. &#xxxx;) and saved in that form to DB. Is there any work around for that issue?
Thanks in advance.
Alex

Hi,
I worked so far only with iso-8859-1 charset and everything went fine, but now with UTF-8 I am experiencing strange problems. Every unicode char is converted to html equivalent(e.g. &#xxxx;) and saved in that form to DB. Is there any work around for that issue?
Thanks in advance.
Alex

Similar Messages

  • Problem viewing/updating MySQL-database with utf-8 charset

    System specs:
    Tomcat 5.5.4
    JDK1.5.0
    MySQL 4.1
    Connector/J 3.0.16
    JSTL 1.1
    I am trying to build a guestbook web-app, and want to be able to store swedish characters (available in latin1) and decided to give utf-8 a go since it would support other languages as well. I use a <Resource> in my context-xml to get the connection.
    This simply will not work; when I use the <%@ page contentType="text/html; charset=utf-8"%> declaration, the swedish characters in the raw html-code gets replaced by questionmarks. Select-queries output look ok though, as long as they don't contain the character '�'
    When removing the page-declaration, the queries show only questionmarks where swedish characters should be.
    The same goes for updating my database. Swedish characters get garbled.
    I have tried the following without success:
    *adding &useUnicode=true&characterEncoding=UTF-8 to the Resource-url -- causes my web-app to fail loading.
    *adding a <filter> to the web-apps web.xml as suggested at  http://www.javaworld.com/javaworld/jw-09-2004/jw-0906-unicode_p.html -- caused another web-app error, resulting in it not being loaded.
    *setting the form attribute accept-charset -- resulted in no improvement.
    Right now I'm half desperate and half fed-up. Is this a common problem with MySQL? Should I use another database? Or perhaps it is the Connector/J Driver that's messing things up.
    I'll appreciate any help I get greatly.

    Hello. Maybe not so interesting after a year to try to ask did you ever get a final solution to that problem in command line perspective. OR does somebody else knows solution to this problem.
    Anyway I have similar problem, I use mysql5 with latin1 charset and I can insert to my database letters ��� normally via mysql command line and they show perfectly. But the problem is my web application.
    I can insert all characters to database and retrieve them normally via web app but if i need to use mysql command line for queries it fails because those special letters appear something like ��. I still need to make queries on mysql command line as admin. I have also tried to change different drivers like
    Class.forName("org.gjt.mm.mysql.Driver"); or
    com.mysql.jdbc.Driver etc connector is 3.0.17
    I have also tried to change to utf-8 and then changed mysql def.enc to same... i have used request.setWHATEVER CHARSET.....i'm out of ideas... help?

  • Page directive with UTF-8 charset??

    Hello,
              I try to implement the following jsp with weblogic. It displays A???C on the
              browser when the encoding is set to Unicode(UTF-8).
              When I change the browser encoding to Western European, it works fine.
              <html>
              <head>
              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
              <title>Trying</title>
              </head>
              <body>
              <%
              String original = new String("A" + "\u696D" + "\u00f1" + "\u00fc" + "C");
              byte[] utf8bytes = original.getBytes("UTF8");
              String roundTrip = new String(utf8bytes, "UTF8");
              %>
              Original = <%=original %>
              RoundTrip = <%=roundTrip %>
              </body>
              </html>
              I found that it ignores the first two 00 when handle \u00xx character.
              However, if I add the following page directive at the beginning, it works
              fine.
              <%@ page contentType="text/html; charset=UTF-8" %>
              My question are
              1. why it trim the first two digit ("00")?
              2. what the weblogic did when I add the page directive?
              3. Is that mean the line <meta http-equiv.....> cannot work?
              4. Is there any alternative instead of adding the page directive line?
              I use WL6.1, win2000. Please help.
              Thanks a lot.
              Regards,
              kfchu
              

    String original = new String("A" + "\u696D" + "\u00f1" + "\u00fc" + "C");          > I found that it ignores the first two 00 when handle \u00xx character.
              > 1. why it trim the first two digit ("00")?
              I can't tell what you mean. According to the JLS, the "\uxxxx" construct is
              processed in a pre-lexical step. That means that your code is the same as
              writing:
              String original = new String("A" + "?" + "?" + "?" + "C");
              (Where I used a question mark instead of looking up and writing in the
              actual character values.)
              The reason why it is 00xx is that the "\u" construct requires the data in
              UTF16 format (the 2-byte encoding of Unicode characters which you know as
              Java's "char" type).
              To see how this data is encoded / decoded, you can look at the Java sources
              for java.io.DataInputStream and DataOutputStream.
              > 4. Is there any alternative instead of adding the page directive line?
              Yes! You can use the Response method directly:
              public void setContentType(java.lang.String type)
              (That's all that the JSP does anyway.)
              Peace,
              Cameron Purdy
              Tangosol Inc.
              Tangosol Coherence: Clustered Coherent Cache for J2EE
              Information at http://www.tangosol.com/
              "kfchu" <[email protected]> wrote in message
              news:[email protected]...
              > Hello,
              >
              > I try to implement the following jsp with weblogic. It displays A???C on
              the
              > browser when the encoding is set to Unicode(UTF-8).
              > When I change the browser encoding to Western European, it works fine.
              > ---------------------------------
              > <html>
              > <head>
              > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
              > <title>Trying</title>
              > </head>
              > <body>
              > <%
              > String original = new String("A" + "\u696D" + "\u00f1" + "\u00fc" + "C");
              > byte[] utf8bytes = original.getBytes("UTF8");
              > String roundTrip = new String(utf8bytes, "UTF8");
              > %>
              > Original = <%=original %>
              > RoundTrip = <%=roundTrip %>
              > </body>
              > </html>
              > -----------------------------------
              >
              > I found that it ignores the first two 00 when handle \u00xx character.
              > However, if I add the following page directive at the beginning, it works
              > fine.
              > <%@ page contentType="text/html; charset=UTF-8" %>
              >
              > My question are
              > 1. why it trim the first two digit ("00")?
              > 2. what the weblogic did when I add the page directive?
              > 3. Is that mean the line <meta http-equiv.....> cannot work?
              > 4. Is there any alternative instead of adding the page directive line?
              >
              > I use WL6.1, win2000. Please help.
              >
              > Thanks a lot.
              >
              > Regards,
              > kfchu
              >
              >
              

  • Insert/Update problems with form

    This is my first time using data entry in Oracle Portal. I followed the example given in the 'Create and event calendar' in the tutorial. i created a simple form and an ID column. I created a sequence and a default value field with the parameter 'nextval' in it as per the example.
    The result is that an ID number is created everytime the form comes up and no queries work. Looks like a fundemental problem (default value with auto increment?). I should be able to increment the ID ONLY on insert somehow.Anyone know the answer?

    A reply to a similar questions was posted in the Portal forum that suggested using a trigger. Sounds reasonable, but I haven't been able to make it work. An example would have been great...
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Pugh ([email protected]):
    This is my first time using data entry in Oracle Portal. I followed the example given in the 'Create and event calendar' in the tutorial. i created a simple form and an ID column. I created a sequence and a default value field with the parameter 'nextval' in it as per the example.
    The result is that an ID number is created everytime the form comes up and no queries work. Looks like a fundemental problem (default value with auto increment?). I should be able to increment the ID ONLY on insert somehow.Anyone know the answer?<HR></BLOCKQUOTE>
    null

  • Java: Loading Resource Bundle File with UTF-8

    I have found out all my previous problems now, thank you all for your assitance with this...
    During the time we have worked so solve our problem with UTF-8 charset we have found new problem with this?
    I don't know if this is the right forum to put this up, if not please let us know where to go with this?
    I have prepared both Eclipse (JSP Files) and GlassFish to run all my files in charset UTF-8. Then i got my
    resource bundle files(property files) to use UTF-8 encoding. Everything looks fine in my text editor. Then
    when i upload these pages every character retrieved from my resource bundles look garbled. This is because
    Java loads property files using ISO 8859-1 character encoding.
    This is a problem from Sun i have read on the internet!
    Note: that in JDK 1.6, you can use PropertyResourceBundle constructor to take a Reader which uses UTF-8 encoding.
    please have a look at these links for more info:
    [http://www.kai-mai.com/node/128]
    [http://java.sun.com/javase/6/docs/api/java/util/PropertyResourceBundle.html]
    Note: PropertyResourceBundle can be constructed either from an InputStream or a Reader, which represents a property file.
    Constructing a PropertyResourceBundle instance from an InputStream requires that the input stream be encoded in ISO-8859-1.
    In that case, characters that cannot be represented in ISO-8859-1 encoding must be represented by Unicode Escapes,
    whereas the other constructor which takes a Reader does not have that limitation.
    What i have read and understand is that the real solution to the problem is: Get the fmt lib to use a Reader instead of an
    InputStream. Alternativly if it works get a ResourceBundle instead of creating one that is wrong all the time? I have to create
    my own ResourceBundle instead of using my own fmt lib wich i cannot trust in a way any more. Is this right or am i comletly wrong?
    My WebTexts files, en, sv and ry are my resource property bundles. To be able to read them i will use resource property bundle reader.
    Fmt lib gives me this but it seems that it inciates this in an InputStream (wich is looked to iso-8859-1) instead of a reader who can
    read UTF-8 without no problem. So can i get my fmt lib to change this or not, anybody have an idea about this???

    Torleif wrote:
    Ok, i know there are a few ways of doing this already. The problem is that i have no idea how to use these different problem solving issues. First we have the;
    1. native2ascii command line utility.
    2. use the XML properties format.
    3. other ways of converting from iso-8859-1 to utf-8.
    The last one i have tried already but i never get this to work. So after knowing of 2 standardized solutions you choose to implement your own non-standard soltion? That's usually not a good idea until you've verified that the standardized solution don't help.
    This is also not the best solution to the problem i have to say. This way i will have both properties files and source files to work with and that is to much i think. Either i will use the native2ascii command or use XML properties format like you say here. I need some more insight in how these two work only because i have no idea my self.Uhm .. read [the documentation|http://java.sun.com/javase/6/docs/api/java/util/Properties.html]? loadFromXML/storeToXML work pretty much exactly the same as load/store, except they handle XML. Try it, look at what it produces, learn.
    Could you please help and explain how to use either this native2ascii command line work or how this XML format properties would work for me. Please i need guidance here with this!!![native2ascii is documented as well|http://java.sun.com/javase/6/docs/technotes/tools/windows/native2ascii.html].
    If you have a specific question after reading those, feel free to ask here.
    You really have to work on your Google-fu, it seems to be too weak.

  • ERMS: Issue with setting up charset

    Hi Experts,
    We are using CRM 6.0 ERMS to send out emails to customers. Based on the Setting in transaction SCOT all the out going emails are sent with UTF-8 charset (Code Page: 4110). Today Japanu2019s internet mail standard is ISO-2022-JP, and most of mail applications have an option to encode outgoing message to JIS. However, all outgoing message from ERMS are UTF-8 (Unicode) without capability to encode other character code. This will result in Japanese mail message broken in most of webmail clients in Japan such as MSN Hotmail.
    Has anyone faced this issue before. Can we achieve the funtionality wherein Japanese Code page gets selected based on the customers BP language?
    Regards,
    Namita

    The language for the outgoing ERMS email is determined first by content analysis by TREX (some customers may choose not to set up TREX).   If this determination fails the language of the BP is taken into account . If the BP determination fails, the system language of the WF-BATCH user is taken .
       From the logic above if the Content Analysis succeeds the Japanese language is set for the email.
       We can check the Clasification/Trex setup to make sure that for an email received in Japanese for example the language is recognized.
    As an example you can test/debug by following the steps below
    1   Send an email in Japanese that will trigger auto acknowledge (need to create a mailform with Japanese text to use in auto acknowledge) .
    2   In swi1 look for the background task id corresponding to the ERMS mail
    3   Set a breakpoint in class CL_CRM_ERMS_ADD2FB_CA method
         IF_CRM_ERMS_SERVICE~EXECUTE line 77
        IF error_code <> 0.
        CONCATENATE 'TREX error:'(001) error_text '[' 'error code = ' msg
        ']' INTO msg.
        RAISE EXCEPTION TYPE cx_crm_erms_service_failed
    If error returned is not 0 means that either there is a problem with TREX or it just could not decide based on the content. However normally it should recognize the language. (Watch variable xml_chunk - at the end
    of the XML there is a language tag that should have some value 'DE'
    'EN' etc)
    4  Run program CRM_ERMS_LOGGING. For workitem id enter the id of the
    background task from step 2
    5. The program stops at the breakpoint mentioned above.
    6. Also note that if the language is detected correctly you need also the mail form that is used to be translated in that language ( Japanese ).
    The language of the email overwrites the SXCPSEND entry (language to codepage mapping)
    To sumarize:
    1. Check if clasification/bp detects the language
    2. Mailform is translated in Japanese
    3. Mapping for codepage is maintained in SapConnect (SXCPSEND language to codepage mapping)
      I hope these steps will help the investigation.

  • Inserting/Updating data pertaining to future or past

    I am considering to use OWM to implement several lookup tables that need to keep track of data versions over time.
    One of the requirements of the application is the capability to insert or update data at any point in time, but this data should only (automatically) be available for lookup at some future point in time.
    Similarly, I need the capability to insert/update data with an effective date at some point in time in the past.
    Is it possible to make data effective from some point in the future or past with OWM ?

    The current 9.2.0.3.0 release of Workspace Manager includes support for Valid Time.
    After enableversioning a table with the Valid Time option, you will be able to insert/update rows that are associated with a particular valid time range. A procedure, setValidTime, can be used to specify the interval for which rows are effectively inserted, updated, and deleted. This date interval can also be used to limit which rows are returned from a select query.
    The documentation for the 9.2.0.3.0 release includes all the additional information pertaining to valid time support.
    Ben

  • How to insert/update Date field in Oracle with java code

    Dear All
    I have to insert/update a date column while creating a new item, but the problem is i am able to insert/update only date but i need both date and time along with AM/PM.
    By using these 3 lines i am able to insert/update only date.
    java.util.Date date = new java.util.Date();
    long dateLong = date.getTime();
    stmtPrep.setDate(33, new java.sql.Date(dateLong));
    Below code retrives the date exactly what i need but unable to pass in the statement:
    DateFormat formatter = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss a");
    java.util.Date d = (Date) new java.util.Date();
    String stringdate = formatter.format(d);
    String tmpdate = dateFormat();
    stmtPrep.setString(33, tmpdate); -- I tried with setObject as well but same error coming.
    Error is:
    ORA-01830: date format picture ends before converting entire input string
    Can u guide me how to get full date time with AM/PM?

    sasikrishna wrote:
    Dear All
    I have to insert/update a date column while creating a new item, but the problem is i am able to insert/update only date but i need both date and time along with AM/PM.
    By using these 3 lines i am able to insert/update only date.
    java.util.Date date = new java.util.Date();
    long dateLong = date.getTime();
    stmtPrep.setDate(33, new java.sql.Date(dateLong));That's by design. A java.sql.Date object matches an SQL DATE column (which doesn't include a time component). If you want something which matches an SQL TIMESTAMP colum (which includes both date and time components) then you should use a java.sql.Timestamp object.

  • [svn:fx-trunk] 7661: Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.

    Revision: 7661
    Author:   [email protected]
    Date:     2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009)
    Log Message:
    Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.
    QA Notes:
    Doc Notes:
    Bugs: SDK-21636
    Reviewers: Corey
    Ticket Links:
        http://bugs.adobe.com/jira/browse/iso-8859
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/SDK-21636
    Modified Paths:
        flex/sdk/trunk/templates/swfobject/index.template.html

    same problem here with wl8.1
    have you sold it and if yes, how?
    thanks

  • Cannot insert more than 1 WSUS update source with different unique ids

    Hello LnG
    I am aware that are a whole bunch of forum threads on this error however little bit of additional help would be of great help, as I have nearly tracked this 'pain' down.
    Our environment: SCCM 2007 R3
    1 Central
    15 Primaries and a whole bunch of secondaries
    Single WSUS server
    OK, so we have just taken handover of this new account and still getting a hang of the creek and corners in the environment. We have about 1000 machines sitting in "Failed to download updates" state.  Error
    = 0x80040694
    WUAHandler.log:
    Its a WSUS Update Source type ({A2762CA9-9739-4260-9C3A-DC4B36122E16}), adding it
    Cannot insert more than 1 WSUS update source with different unique ids
    Failed to Add Update Source for WUAgent of type (2) and id ({A2762CA9-9739-4260-9C3A-DC4B36122E16}). Error = 0x80040694.
    Its a WSUS Update Source type ({BCB9D60B-2668-459B-BFFD-6DDD11AADC53}), adding it
    Existing WUA Managed server was already set (http://WSUSServername:8530), skipping Group Policy registration.
    Added Update Source ({BCB9D60B-2668-459B-BFFD-6DDD11AADC53}) of content type: 2
    WUAHandler
    Async searching of updates using WUAgent started.
    Checked the
    CI_UpdateSources table and found 2 Update sources  unique ids:
    {BCB9D60B-2668-459B-BFFD-6DDD11AADC53} Date Created 2011-01-11 03:47:52.000/Date Modified 2011-01-11 03:47:52.000
    and
    {A2762CA9-9739-4260-9C3A-DC4B36122E16} Date Created 2014-07-09 02:48:46.000 / Date Modified 2014-07-09 02:48:46.000
    My questions:
    Can I rely on the last modified/created date for inactive update source and delete it off the database? in this case can I delete {BCB9D60B-2668-459B-BFFD-6DDD11AADC53}?
    When i browsed to the registry location on the Central Server
    HKLM\Software\Wow6432Node\Microsoft\SMS\Components\SMS_WSUS_SYNC_MANAGER i saw the update source as {BCB9D60B-2668-459B-BFFD-6DDD11AADC53}.
    Does it imply that a stale record?
    Any help/guidance will be much appreciated :)

    Well!! My wsyncmgr.log  says  this: 
    Set content version of update source {BCB9D60B-2668-459B-BFFD-6DDD11AADC53} for site XX to 18
    Set content version of update source {BCB9D60B-2668-459B-BFFD-6DDD11AADC53} for site XX1 to 18
    Set content version of update source {BCB9D60B-2668-459B-BFFD-6DDD11AADC53} for site XX2 to 18
    Set content version of update source {BCB9D60B-2668-459B-BFFD-6DDD11AADC53} for site XX3 to 18
    Set content version of update source {BCB9D60B-2668-459B-BFFD-6DDD11AADC53} for site XX4 to 18
    Set content version of update source {BCB9D60B-2668-459B-BFFD-6DDD11AADC53} for site XX5to 1
    Set content version of update source {BCB9D60B-2668-459B-BFFD-6DDD11AADC53} for site XX6 to 18
    So, this is an active update source! ?? I cannnot uninstall and reinstall SUP currently. Any thoughts?? Any ody?

  • Insert into one table, update another with one form

    Does anyone know how to do this?
    I'm writing a small system where I need to have a master project record in one table, and small little project events in a sub notes table. I want to be able to insert a record with notes into the sub table and update the status in the master table -- all from one form.
    Any thoughts would be very, very appreciated :) -LR

    Hi Lee,
    in case your main Insert transaction provides a value which can be used to identify the master table´s primary key, I think you should set up a Custom Trigger to update a specific record in the master table.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Business Catalyst Problem Using API to insert/update

    Hi,
    I am trying to use the API to insert/update products. But have been getting the following error in the response.
    HTTP/1.1 100 Continue
    HTTP/1.1 500 Internal Server Error
    Cache-Control: private
    Content-Length: 370
    Content-Type: text/xml; charset=utf-8
    Server: Microsoft-IIS/7.0
    Date: Tue, 05 Jun 2012 22:11:39 GMT
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <soap:Body>
            <soap:Fault>
                <faultcode>Error</faultcode>
                <faultstring>ERROR: A server error has occured.</faultstring>
                <detail />
            </soap:Fault>
        </soap:Body>
    </soap:Envelope>
    I have looked through my request and cant see anything wrong so was wondering if anyone else can, or if there is something I have missed (or not setup properly), i'm sure its probably an obviously mistake that i just cant find. below is my request
    POST /CatalystWebService/CatalystEcommerceWebservice.asmx HTTP/1.0
    Host: {HOST}.worldsecuresystems.com
    User-Agent: NuSOAP/0.9.5 (1.123)
    Content-Type: text/xml; charset=UTF-8
    SOAPAction: "http://tempuri.org/CatalystDeveloperService/CatalystEcommerceWebservice/Product_UpdateInsert"
    Content-Length: 1525
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns9872="http://tempuri.org">
        <SOAP-ENV:Body>
            <Product_UpdateInsert xmlns="http://tempuri.org/CatalystDeveloperService/CatalystEcommerceWebservice">
                <username>{USER}</username>
                <password>{PASSWORD}</password>
                <siteId>{SITEID}</siteId>
                <productList>
                    <Products>
                        <productId>1</productId>
                        <productCode>test1</productCode>
                        <description>test desc</description>
                        <smallImage>/images/test_small.jpg</smallImage>
                        <largeImage>/images/test.jpg</largeImage>
                        <cataloguesArray>
                            <string>Products</string>
                        </cataloguesArray>
                        <pricesSaleArray>
                            <string>GB/9.99</string>
                        </pricesSaleArray>
                        <pricesRetailArray>
                            <string>GB/18.99</string>
                        </pricesRetailArray>
                        <supplierEntityId>-1</supplierEntityId>
                        <minUnits>-1</minUnits>
                        <maxUnits>-1</maxUnits>
                        <inStock>2</inStock>
                        <onOrder>-1</onOrder>
                        <reOrder>-1</reOrder>
                        <inventoryControl>false</inventoryControl>
                        <enabled>false</enabled>
                        <deleted>false</deleted>
                        <downloadLimitCount>-1</downloadLimitCount>
                        <limitDownloadsToIP>-1</limitDownloadsToIP>
                        <isOnSale>false</isOnSale>
                        <productWeight>-1</productWeight>
                        <productWidth>-1</productWidth>
                        <productHeight>-1</productHeight>
                        <productDepth>-1</productDepth>
                        <cycletypeId>0</cycletypeId>
                    </Products>
                </productList>
            </Product_UpdateInsert>
        </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Many Thanks
    Tim

    I am successfully doing API Product Updates, not tried Creates yet.
    From the WSDL you need theses fields;
    'supplierCommission' => 0,      // type="s:double"/>
    'weight'             => 2,      // type="s:int"/>
    'inventoryControl'   => false,  //  type="s:boolean"/>
    'canPreOrder'        => false,  //  type="s:boolean"/>  'captureDetails'     => false,  //  type="s:boolean"/>              
    'isOnSale'           => true,   //  type="s:boolean"/>              
    'hideIfNoStock'      => false,  //  type="s:boolean"/>              
    'isGiftVoucher'      => false,  //  type="s:boolean"/>              
    'enableDropShipping' => false,  //  type="s:boolean"/>              
    excludeFromSearch'  => false,  //  type="s:boolean"/>              
    'cycletypeCount'     => -1,     //  type="s:int"/>
    + the other arrays or the update wipes out data.
    Experimentation seems to be the key

  • Insert & Update using Writeback in a single Report

    Hi,
    Here is requirement:
    In the single report where the user has to do the Insert & update using the writeback functionality.
    below is the XMl:
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="SUBMITBUTTON">
    <XML>
    <writeBack connectionPool="CSDK">
    <insert>INSERT INTO HSCRTARGETLOOKUP(SLA_TYPE,TARGET_AVAILABILITY,TARGET_MTTR) VALUES ('@{c0}', @{c1}, @{c2})</insert>
    <update>UPDATE HSCRTARGETLOOKUP SET TARGET_AVAILABILITY = @{c1}, TARGET_MTTR = @{c2} WHERE SLA_TYPE = '@{c0}'</update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    Can you please let us know whether both insert & update will work at the same time using a single report.
    Thanks in Advance
    Siva

    Hi,
    Insert & update is working with the Single xml file:
    here it is how i have done:
    in the 1st criteria i have taken three columns and made union with the 3 dummy columns.
    in the 1st dummy column: CASE WHEN 1= 0 THEN HSCRTARGETLOOKUP.SLA_TYPE ELSE NULL END
    2nd dummy column: CAST('' AS INT)
    3rd dummy column: CAST('' AS INT)
    below is the single XML file which is working for both insert & update
    <?xml version="1.0" encoding="utf-8" ?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="STATES">
    <XML>
    <writeBack connectionPool="XXXX">
    <insert>INSERT INTO HSCRTARGETLOOKUP(SLA_TYPE,TARGET_AVAILABILITY,TARGET_MTTR) VALUES ('@{c0}', @{c1}, @{c2})</insert>
    <update></update>
    <update>UPDATE HSCRTARGETLOOKUP SET TARGET_AVAILABILITY = @{c1}, TARGET_MTTR = @{c2} WHERE SLA_TYPE = '@{c0}'</update>
    </writeBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    Hope it works for you also.

  • From ASCII txt file to MS SQL with UTF-8 Korean

    I am trying to convert korean text
    ([Àç¹Ì] ¿·Áý
    ºÎÀÎÀÌ
    ¾Æ³»º¸´Ù
    ÁÁÀºÀÌÀ¯? ) which is saved
    in a tab delimited text file into MS SQL with UTF-8/Unicode
    characters ([생각] 인생을
    즐길 수 있는 좋은
    나이는? ).
    I have tried ascii_utf8 and CF_charsetConvert 1.1 and it
    didn't work.
    Is there any other CF tags that can do the jobs?

    atomic wrote:
    > I have tried it but im getting CFMX error when using
    > <cffile action = "read" file = "myPath\myPath.txt"
    variable = "myVar" charset
    > = "euc-kr">
    not sure about cf6, get the charset cfc from here:
    http://www.sustainablegis.com/projects/i18n/charsetTB.cfm
    and see what your system supports. also try one of the others
    like
    x-windows-949, etc.
    >
    > sun.io.ByteToCharEUC_KR.getIndex1()[S
    >
    > Did I miss out on any ColdFusion Administration
    settings? Maybe JVM?
    no, either that JRE doesn't support EUC-KR (kind of unlikely)
    or the JRE isn't
    the international one with the "extra" charsets (my guess).
    if you can update
    the JRE (for cf6-7, it has to be 1.4.x family), try that.
    make sure you get the
    server version & international one (though i think that's
    all they d/l these days).

  • [SOLVED] apache forces UTF-8 charset

    Hello all!
    After recent update, apache begin to force output of UTF-8 charset in Content-type header. AddDefaultCharset seems to be ignored both in .htaccess and in virtual host configuration. Does anybody know where this issue come from? Not all parts of the world are ready for UTF-8 yet because of tons of legacy code.
    Thanks in advance.
    UPDATE: Not related to apache, but to php. default_charset in php.ini was need to be set to the empty string.
    Last edited by dmiceman (2014-09-24 05:21:09)

    To answer myself:
              CR216621
              Changes made by mod_rewrite to the URI are reflected only to request_rec->uri. Hence, the Apache plug-in now uses request_rec->uri by default.
              Also, a new property, WLForwardUriUnparsed, has been added. When it is set to ON, the Apache plug-in uses request_rec->unparsed_uri instead of request_rec->uri.
              Note: The Apache plug-in with WLForwardUriUnparsed set to ON does not work correctly with mod_rewrite.

Maybe you are looking for

  • Problem in f-110

    Hi Experts, In automatic payment after selecting proposal tab i selected start immediately and press enter, then its shows payment proposal has not been carried out. this problem in development server and  in quality server where i can able to do tha

  • What are the issues/precautions while upgrading nsoftware.ipworks v3 to v4

    Hi All, currently we are using nsoftware.ipworks version 3 adapter, we want to upgrade it to Version 4, we are using this adapter API's heavily for downloading and uploading files in FTP, the following is the screen shot of the current version. and t

  • Sales Pricing in projects - DP81

    Hi I am trying to create quotation from planned costs in project. I have configured DIP profile but getting the error “no expenditure items found” when I run sales pricing Please update what can be the possible cause of this problem or solution to re

  • How do you install osx 10.6 on disk that 10.8

    I have a MacBook (2009) with OSX 10.8.5 and I want to replace it with OSX 10.6. I have the Install DVD. When I first go to install I gat a message that I can not replace newer os with older os. What I want to do is application testing. How can I over

  • Display profiles - where from?

    I have a whole boatload of profiles that show up in system prefs>displays>color.  Many seem to refer only to printer/paper combinations. Where do these come from, and how can I remove the ones that are just irrelevant to my setup?