Code formatting problem

Is the code formatting buggy or is it just that I cannot seem to find the correct mix of settings? I hope it is the latter and that someone here may know how to get it
After setting the settings I think I want I get a simple SQL formatted like this.
{noformat}
select username
,sid
,serial#
   from v$session
  where sid  = 11
  and(status = 'ACTIVE'
  or status  = 'INACTIVE')
{noformat}Ignore the fact that the actual query may not be logical...
The first problem is that the different columns are lined up to the left and not indented lika I would like them to be.
The second (and much less important) is that the and/or are not indented like the keywords. I'd like to get the SQL to be formatted like this.
{noformat}
select username
       ,sid
       ,serial#
   from v$session
  where sid    = 11
    and(status = 'ACTIVE'
     or status = 'INACTIVE')
{noformat}How can I make the code formatting result in the above SQL (especially the aligning of the columns)?

Turloch,
Thank you for the reply. I figured this may be a bug, so it is nice to have it confirmed. I can live with it not being correct as long as a fix will show up eventually.
The problem with using tabs or large settings for space is that it causes other parts of PLSQL to look to spread out. One thing that happens is that the right justification of the keywords gets messed up. But I can make soem SQL look OK with it, but that is at the expense of getting other ones to not look good. For example if I get the columns to line up with a leading comma, the concatenation is not correct and vice versa. I also get SQL to look better, but then indentation in PLSQL is too agressive and looks very bad.
I would like to be able to set and/or to be set to be handled as keywords so they too can be right justified. Columns (whether or not concatenated or separated with a comma) should be possible to align with the column in which the first column starts.
While I'm at it, there seems to be an issue with the formatting of keywords such as inner join. I think inner too should be considered keywords so it can be right justified with other keywords. Same thing with subselects, they end up the the left of the right column of the keywords.
I think the formatting features are really good now. There is still room for improvement to be able to control it enough to make it look exactly like I want, but it is getting close and flexible enough to allow many different ideas of how the template should be to be configured.
Thanks,
Mathias

Similar Messages

  • [bug] SQLDeveloper 1.5.4.59.40 - Code Formatting problem

    I've installed SQLDeveloper 1.5.4.59.40 and I have found that the code formatting does not format the query with the right case that I choose. I mean, in the option I set to put "SQL words" in uppercase but the formatter ignore this and do not change any case in the query.
    Beretta Costantino

    Hi this works for me.
    -Are you using SQL Formatter Other -> Force formatter on difference ?
    -Are you non USA, there could be a problem with USA strings being assumed and being wrongly used internally?
    --Turloch                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Code Formating after Forum Software Upgrade

    Hello SCN Forum Administrators,
    it seems that all code formating which was done with the
    [code]
    Tags was not automatically converted during the Forum Software Upgrade. What can I do to correct my code in the Forum Topic Re: Display ALV GRID with PHP? The message was posted by myself but I can't edit it.
    Best regards
    Gregor

    Hi all,
    the new forum version does contain a filter that can handle the old [code] tags. The problem was that we had to turn it off because it permanently ran into Stackoverflow errors and thus bringing the whole landscape into trouble.
    Now we have to convert all the old [code] markup in all messages with the new {code} markup. We are currently testing this.
    In other words: [code] is no longer supported, the usage of {code} is recommended.
    Regards,
    Michael

  • Code Formatting Instructions for Developer Forums

    Although this topic only applies to the two Developer forums, the need for some upfront code formatting instructions in those forums is desperate. There may be hundreds of threads which include one or more messages on this subject. In my case alone, I've posted at least a dozen messages each containing these three lines:
    Paste your code here.
    Of course a quick search of either Dev forum on the keys +code formatting+ will find the above right away, but those who need help the most don't know code requires special formatting so won't be making that search. For the same reason, neither the excellent instructions in the User Tips Library nor the pertinent threads in this forum are likely to be discovered before they're needed. The +Help & Terms of Use+ FAQ might seem to be a good place for the instructions, but this has been proposed so many times before I'm sure it will never happen. The need is confined to the Dev forums afterall.
    I think the solution would be a permanent post (similar to +How to Post a new Topic+ in this forum) at the top of both Dev forums. I don't think most developers want to see instructions on any other topic at the top of the forums, but a brief note titled +How to Post Code+ might make everyone's life easier.
    Assuming most of the other developers agree, how could we make this happen?

    Thanks so much for helping with this, Nubz!
    Joerg's instructions are excellent. I refer to them often and I've had them bookmarked since I found Apple Discussions last year. The new Code section is great!! Very clear!
    Now we just need to find a way to get users to that page. Our problem has never been with users who are interested enough in Apple Discussions to visit the Tips Library. The unformatted code is coming from first-time users--not necessarily novice coders, but programmers of all skill levels who aren't coming here to learn about the forums or relate to the community. These folks are focused on their current project, may have found no answers anywhere else, and arrive here with tunnel vision. Often there's a language problem as well.
    The newly arrived OP will often start the thread with a page of unformatted code. Those of us with eyes used to filling in the missing brackets, indentation etc. can sometimes decypher the mess, but usually we need to give formatting instructions and ask the OP to repost. The frequency of this scenario has been increasing. Lately I've been posting those instructions almost once every day.
    Of course that's a good sign! We've been giving good service down there and the number of newcomers seems to be reflecting that. A big percentage have turned into regulars, so I think we have a very healthy forum. It's just the formatting cycle gets old, and the time and bytes add up too.
    My suggestion is this:
    One yellow moderator announcement that stays in the first position on the topic page for both dev forums. The subject line is:
    To format code: Paste your code here
    The user doesn't even need to open the message. Only developers will see this. No change to the page header is needed. If the user does open the message, a link will be provided to Joerg's tips.
    - Ray

  • Dreamweaver CS3 Code Formatting broken

    Hello, I am experiencing a huge deal of frustration with the
    way Dreamweaver improperly formats code. In particular, the UL / LI
    tags do not format correctly. Here is what I am trying to achieve:
    <ul>
    <li>
    TEXT
    </li>
    </ul>
    Now this pattern seems to correspond exactly to the preview
    that you see when you go to Preferences > Code Format > Tag
    Libraries, select the LI tag and choose Line Breaks: Before,
    Inside, After and Contents: Formatted and Indented.
    I have done this. I have also manually checked the .vtm file
    in username > Application Data > Adobe > Dreamweaver >
    Configuration etc.... and it corresponds to what I have set in the
    Prefs.
    However, when I use Design View to create the unordered list,
    OR even if I just TOUCH a properly formatted list in Design View,
    everything gets squeezed onto one line. I get this sort of thing:
    <ul> <li>TEST</li> <li>MORE
    TEST</li> </ul>
    Here is what I have tried unsuccessfully to date:
    1. Prefs > Code Formatting > Edit Tag Libraries...
    2. Prefs > Code Format > UNCHECK Do not include a break
    inside TD tag (I know, that's for TD, but I'm just trying
    everything(
    3. Prefs -> line breaks (tried Unix, Windows)
    4. Commands > Apply Source Formatting (messes up my entire
    code by putting everything inside the BODY tag on one line - in
    other words, my entire page goes on one line now!)
    5. Automatic Wrapping After Column 76 - this one is really
    stupid, it just does a HARD break on each line so when you turn it
    back off you have to go in and manually delete all these hard
    breaks now...
    There's a bunch of other small things I have tried, but
    needless to say, nothing appears to be working.
    Has no one else experienced this? Can you get Design View to
    properly format UL / LI tags? If so, then something on my computer
    is messed. But when I look at code generated by DW on some of my
    co-workers' computers, they also have the same problem - I just
    guess their tolerance for crappy code is higher than mine.
    I'm using DW 9.0 (CS3) build 3481.
    Please help! I have no hair left on my head to tear out and I
    may have to go further afield.... ouch!
    Thanks,
    Tom

    I just checked on DW CS4 and it's working as expected. If I
    change my LI
    entry in the Tag Libraries to Line Breaks: Before, Inside,
    After and
    Contents like you, I get your desired effect. Moreover, it
    doesn't revert -
    or worse if any changes are made, whether in Design or Code
    view. I know
    this doesn't help you verify or correct your CS3 issue, but
    at least you
    know there is an upgradeable light at the end of the tunnel.
    Best - Joe
    Joseph Lowery
    VP of Product Management, WebAssist -
    http://www.webassist.com
    Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/
    "tomaugerdotcom" <[email protected]> wrote
    in message
    news:[email protected]...
    > Hello, I am experiencing a huge deal of frustration with
    the way
    > Dreamweaver
    > improperly formats code. In particular, the UL / LI tags
    do not format
    > correctly. Here is what I am trying to achieve:
    >
    >
    > TEXT
    > </li>
    >
    >
    > Now this pattern seems to correspond exactly to the
    preview that you see
    > when
    > you go to Preferences > Code Format > Tag
    Libraries, select the LI tag and
    > choose Line Breaks: Before, Inside, After and Contents:
    Formatted and
    > Indented.
    >
    > I have done this. I have also manually checked the .vtm
    file in username >
    > Application Data > Adobe > Dreamweaver >
    Configuration etc.... and it
    > corresponds to what I have set in the Prefs.
    >
    > However, when I use Design View to create the unordered
    list, OR even if I
    > just TOUCH a properly formatted list in Design View,
    everything gets
    > squeezed
    > onto one line. I get this sort of thing:
    >
    TEST</li>
    MORE TEST</li>
    >
    > Here is what I have tried unsuccessfully to date:
    >
    > 1. Prefs > Code Formatting > Edit Tag Libraries...
    > 2. Prefs > Code Format > UNCHECK Do not include a
    break inside TD tag (I
    > know,
    > that's for TD, but I'm just trying everything(
    > 3. Prefs -> line breaks (tried Unix, Windows)
    > 4. Commands > Apply Source Formatting (messes up my
    entire code by putting
    > everything inside the BODY tag on one line - in other
    words, my entire
    > page
    > goes on one line now!)
    > 5. Automatic Wrapping After Column 76 - this one is
    really stupid, it just
    > does a HARD break on each line so when you turn it back
    off you have to go
    > in
    > and manually delete all these hard breaks now...
    >
    > There's a bunch of other small things I have tried, but
    needless to say,
    > nothing appears to be working.
    >
    > Has no one else experienced this? Can you get Design
    View to properly
    > format
    > UL / LI tags? If so, then something on my computer is
    messed. But when I
    > look
    > at code generated by DW on some of my co-workers'
    computers, they also
    > have the
    > same problem - I just guess their tolerance for crappy
    code is higher than
    > mine.
    >
    > I'm using DW 9.0 (CS3) build 3481.
    >
    > Please help! I have no hair left on my head to tear out
    and I may have to
    > go
    > further afield.... ouch!
    >
    > Thanks,
    >
    > Tom
    >

  • Data format problem

    Hello All
    Can anyone help me to solve this data format problem? On the top of my program, I have declare the two variables "purchasePrice" and "purchaseAmount" as double. I dont know why, the compiler still think I didnt initialize this two variables? I have printed the error message below the code.
    Thanks for your help : )
    Jen
    =============================================================================
    double purchasePrice, purchaseAmount, GPS, total_gain, amount;
    //Find the purchase stock price
         rs = stmt.executeQuery("SELECT Price FROM PORTFOLIO WHERE Username = '"+ username+"' AND Symbol = '"+strsymbol+"'");
         while (rs.next()){
              purchasePrice = rs.getDouble("Price");
    //Calculate the amount of Gain Per Share
    GPS = intask - purchasePrice;
    //Find the purchase stock amount
    rs = stmt.executeQuery("SELECT Amount FROM PORTFOLIO WHERE Username = '"+ username+"' AND Symbol = '"+strsymbol+"'");
         while (rs.next()){
              purchaseAmount = rs.getDouble("Amount");
    //Calculate the amount of Total Gain
    total_gain = amount - purchaseAmount;
    =============================================================================
    Error message:
    variable purchasePrice might not have been initialized
    [javac] GPS = intask - purchasePrice;
    [javac] ^
    variable purchaseAmount might not have been initialized
    [javac] total_gain = amount - purchaseAmount;
    [javac] ^
    [javac] 2 errors

    Instance and class variables are automatically initialized to their default values if they are not initialized explicitly, but local variables are not. They have to be initialized explicitly before they can be referenced.
    In your code:
        while (rs.next()){
            purchasePrice = rs.getDouble("Price");
        ...purchasePrice is initialized only if rs.next() returns true. purchaseAmount has the same problem. To avoid this problem, you could declare them by:
    double purchasePrice = 0;
    double purchaseAmount = 0;

  • DAQ Return Data Binary Codes Format

    Hi!
    I'm working with ComponentWorks together with C++ Builder and i want to
    know the binary codes format when an acquisition is performed. My DAQ card
    is a PCI-MIO-16E-4.
    When i get the scaled data there's no problem.
    Thanks.

    Hello Marcel,
    Thank you for contacting National Instruments.
    NI does not have a tool that will convert into MDF format. There is a Plug-In for Diadem which allows you to read MDF files at http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=E267F645DF776A21E034080020E74861&p_node=201258 .
    The following website might be helpful to you. It has general information on MDF format and tools for creating MDF files. http://www.techquila.com/index.html
    I hope this helps,
    Sean C.
    Applications Engineer
    National Instruments

  • My auto-indent and code formatting is not working.

    Usually on dreamweaver CS5.5 my code (html) would indent my <div> tags and align them up with the end div </div>. Not only were the <siv> tags formateed but various of others tags were as well.
    How Dreamweaver used to format my code:
    <head>
              <title>Example</title>
              <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    </head>
    <body>
    <div id="outside_container">
              <div id="container">
                        <a href="#"><img src="images/logo.jpg" id="logo" /></a>
            <ul id="menu">
                      <li><a href="#"></a></li>
                      <li><a href="#"></a></li>
                      <li><a href="#"></a></li>                   
                        </ul>
            <ul id="right_menu">
                      <li><a href="#">t</a></li>
                      <li><a href="#">t</a></li>
            </ul>
            <img src="images/panel_home.jpg" id="panel" />
                        <div id="content">
                      <div class="column1">
                          <h2>Text</h2>
                    <p>Text Here</p>
                </div>
    Now it does not even format it so all of my code aligns on the left like so:
    <head>
    <title>Example</title>
    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    </head>
    <body>
    <div id="outside_container">
    <div id="container">
    <a href="#"><img src="images/logo.jpg" id="logo" /></a>
    <ul id="menu">
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>                   
    </ul>
    <ul id="right_menu">
    <li><a href="#">t</a></li>
    <li><a href="#">t</a></li>
    </ul>
    <img src="images/panel_home.jpg" id="panel" />
    Can anybody please help me?

    Did you try Edit > Preferences > Code Format > Indent?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Exception in XML Parser (format problem?)

    Hi Experts,
    I am working on IDOC -> AS2 Configuration and the AS2 Configuration has the below structure
    <RecordSet>
         <Row1>
                       <row1 - field1>
                       <row1 - field2>
                       <row1 - field3>
         </Row1>
         <Row2>
                       <row2 - field1>
                       <row2 - field2>
                       <row2 - field3>
         </Row2>
         <Records>
              <Record1>
                        <Record1-Field1>
                        <Record1-Field1>
                        <Record1-Field1> 
              </Record1>
              <Record2>
                        <Record2-Field1>
                        <Record2-Field1>
                        <Record2-Field1> 
              </Record2>
         </Records>
    </RecordSet>
    We are getting the expected Structure when we AS2 Receiver has the xml format. But while doing module development with the strctxml2Plain, we are getting the below error  in RWB CC Monitoring.
    Message processing failed. Cause: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException'
    Any ideas, why this error we are getting.....
    Thanks in advance,
    Regards,
    Vasu

    Hi Vasu,
    Not in the Mapping of IR.
    In BIC Mapping Designer you have to test with the standard Mappings by providing the sample file whether the Conversion is happening correctly or not.
    You have to take the same input file that what ever you are having now.
    So that it will say clearly what is the problem in converting the XMLto the required EDI Format...
    Check whether you have any Date Format Values are comming from the input file.
    Regards
    Seshagiri

  • Attempt to process file failed with Exception in XML Parser-format problem

    Hi all,
    Iam getting an unusual error in the J2EE stack in XI.
    And the message is:
    006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
    This means that error occured during content conversion of XML to the prescribed file format.
    Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
    Thanks in advance...
    karun

    Hi Bhavesh,
    Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
    The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
    2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
    2006-11-30 17:30:50 Success Start converting XML document content to plain text
    2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
    2006-11-30 17:31:07 Error Exception caught by adapter framework: null
    2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
    2006-11-30 17:31:07 Success The message status set to WAIT.
    2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
    2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
    2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1

  • I am exporting a pages doc to ePub and I keep getting formatting problems any idea thx in advance

    I am exporting a pages doc to ePub and I keep getting formatting problems any idea thx in advance

    Since you don't say what the "formatting problems" are, all we can say is:
    "There, there. Hope they get better."
    Peter

  • Smartform: Formatting Problem with QUAN-Field

    I want to print a smartform and get exception 1 (formatting error). With function SSF_READ_ERRORS I get an error table. There is on entry: errnumber = 020011, msgid = SSFCOMPOSER, msgty = E, msgno = 601, msgv1 = wa_outtab-menge.
    It seems to be a formatting problem with field WA_OUTTAB-MENGE. But in the structure this field is referenced correctly.
    Does anybody know a solution?

    I solve this kind of problem in my SmartForm.
    Try this:
    Go to "Global Definitions" Node, then "Current/Quant.Fields" tab and set these values:
    Field Name:      WA_OUTTAB-MENGE
    Reference Field: WA_OUTTAB-MEINS
    Data Type:       QUAN
    Best Regards,
    Eduardo Ribeiro.

  • Format problem when export to RTF

    Hi,
    Iam creating a RTF template, when export to pdf everything working fine. However, when i export to RTF(word) alot of document properties got lost such as :
    font size default to 12 when it's blank line; page number are not re-start for multi sections; table properties not holding, header, footer and edge margin are not holding, etc...... Is there any way to fix these. I tried to create a word macro to fix some of the format problems, but the macro have to run manually instead of initialized form a text field option on exit. Any idea on how to fix or work around would be appreciated.
    Thanks,
    Tam

    im2famous4u wrote:
    Do you know if and when Pages will provide support for tables in rtf format? (My school requires that I send all assignments rtf format.)
    As Yvan points out, no one here can write what they know about it, and the vast majority of us know nothing about it.
    You cannot take any decision based on the assumption that Pages will one day support tables in RTFs, because it may never happen. If you need both RTF and tables, the only option is another tool (like NeoOffice, TextEdit, MS Office and so on).

  • Convert Web Page to PDF formatting problem - 1st line of each paragraph outdented

    Hi Folks,
    I get a formatting problem when I convert any web page to PDF using the 'Convert Web Page to PDF' option - the 1st line of each paragraph is outdented.
    eg if i convert http://helpx.adobe.com/acrobat/using/whats-new-acrobat-xi.html I get this:
    I get the same problem using IE 9, Chrome (latest) or Firefox 30.0. I don't get it converting a Word doc to PDF.
    I'm using Adobe Acrobat XI Pro on a PC running Windows 7.
    Is there a simple setting somewhere I am missing?
    Any help much appreciated!

    Are you using "Adobe PDF" or "PDF or XPS?" I sounds like "Adobe PDF," but trying to be sure. Have you updated your Acrobat to the latest version? If not, try that.

  • Date Format problem...

    Hi users,
    Forte version : 2.e.2 and ForteWebSDK
    Datacase : Oracle
    We have a problem with a simple HTML text field which acccepts
    a date. When we try to update the record with some date, the following
    exception occurs:
    24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
    project Rap
    tServices, class RaptSqlMethods, method updateActivity, methodId 104,
    line 51, e
    rror from database is:
    ORA-01830: date format picture ends before converting entire input
    string
    The Oracle manual says that the above exception occurs when there are
    some extra characters on that field, which is not the case. In fact,
    we raise our own exception for the cases like : o1-Apr-1997,
    01-apr-97 etc. The correct format is 01-apr-1998.
    Same date soemtimes is added to the database successfully. Waht I mean
    to say that the exception deos not occur consistently.
    We just conevert the String taken from the HTML field into a Forte
    DateTimeData Object and send it to database. May be, the conversion
    part is causing the problem. But, once again the problem is not
    consistent.
    Any ideas in this will be appreciated.
    Thanx in advance
    -Rajeev Talwar
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    We had the same problem when our application first went live. The
    default date format for our Oracle database is 'dd-mmm-yy' without the
    time component. The default format for datatype DateTimeData is
    'dd-mmm-yyyy hh:mm:ss'. Since we did not want to change the default date
    format for the Database, we included in our service partitions an Alter
    Session statement to change the NLS_Date_format attribute in Oracle to
    conform to the Forte DateTimeData format. It worked.
    Kam Chow
    Mazda Australia
    -----Original Message-----
    From: Gary F Giger [mailto:[email protected]]
    Sent: Thursday, June 25, 1998 4:11 AM
    To: Rajeev Talwar
    Cc: [email protected]
    Subject: Re: Date Format problem...
    I was having the same problem a few weeks back when I would
    read/write
    dates to Oracle. I was using objects of type DateTimeData and I would
    occasionally get errors like you said you were. I found discovered my
    problem. Sometimes I would process a null date and would get an error.
    So to
    resolve this issue, I simply changes my objects of type DateTimeData to
    type
    DateTimeNullable. This enabled my Forte Application to handle regular
    dates
    as well as null dates. I have not gotten any oracle errors since then
    with
    regards to dates. Hope this helps.
    Rajeev Talwar wrote:
    Hi users,
    Forte version : 2.e.2 and ForteWebSDK
    Datacase : Oracle
    We have a problem with a simple HTML text field which acccepts
    a date. When we try to update the record with some date, the following
    exception occurs:
    24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
    project Rap
    tServices, class RaptSqlMethods, method updateActivity, methodId 104,
    line 51, e
    rror from database is:
    ORA-01830: date format picture ends before converting entire input
    string
    The Oracle manual says that the above exception occurs when there are
    some extra characters on that field, which is not the case. In fact,
    we raise our own exception for the cases like : o1-Apr-1997,
    01-apr-97 etc. The correct format is 01-apr-1998.
    Same date soemtimes is added to the database successfully. Waht I mean
    to say that the exception deos not occur consistently.
    We just conevert the String taken from the HTML field into a Forte
    DateTimeData Object and send it to database. May be, the conversion
    part is causing the problem. But, once again the problem is not
    consistent.
    Any ideas in this will be appreciated.
    Thanx in advance
    -Rajeev Talwar
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    Gary Giger
    Raytheon Systems Company
    300 Science Park Road
    State College, PA. 16804
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    This message has successfully passed virus checking.
    Mazda Australia takes every precaution to ensure email messages are virus free. For complete protection, you should virus test this message.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Maybe you are looking for

  • Client DOES NOT want email when plugged in... at a loss

    Hopefully this is a just a setting that I'm unaware of.  First, we are on BES 4 and have no issues across the company.  One user has Desktop Manager and wants it setup so that his e-mail will NOT sync to the phone whenever he's plugged into the compu

  • How do I install Mainstage 2 on MacBook Air 13" via upgrade DVDs?

    Hey all So I have an MBA for touring and need a few pointers.. I've made my project on my MacBook Pro and irts ready for the road. I have Logic Studio as an upgrade from Logic Pro 7. Does this really mean that I have to install from LP7 in order to g

  • SICF and asynchronous Enterprise Services

    Hi, I want to test the asynchronous Inbound Enterprise Service 'ProductionConfirmationCreateRequest_In' using the SOAP Runtime. Unfortunately I cannot see the Service neither in SICF SRT nor in SOAMANAGER. But the proxy for the Service is available i

  • Unicode support for QT text tracks?

    Does Quicktime NOT support unicode text? Is it not possible to create a text track with Chinese, Korean or other subtitles? I have a unicode file, but the text gets garbled when I try to open it in QT Pro. I have tried the language descriptor {langua

  • How to find the Factory Calendar ID

    Hi, I using the FM DATE_CONVERT_TO_FACTORYDATE to calculate the number of working days between two dates. I am using the working day indicator and counting the number of days. This FM has the input 'Factory Calendar ID'. I have only the service organ