Numeric field is displayed differently on the two systems.

I have a backend application to front end/Oracle ColdFusion that I inherited from the company that lost the contract for my business.  On one screen, there is a field that the customer wishes to increase number (10.3) to the NUMBER (10.8).  After searching and conferring with the gov ' t DBA supported the production and test system, it was suggested I just change the field number of the plain, I have on my development system and changed the CF code to allow an appropriate display.  It worked pretty well.   I had the DBA gov ' t change the field in production and test databases to match.   I then FTP'd the CF code to the test system.   It allows the entry and display of the new size of the field, but on saving it (unlike my development test) truncates / turns up (IE. d.-123.87654321 becomes 123.87700000).  I made sure to what good code is there and checked with the directors of the Government databases to match my development database.   What things could cause this problem?   It baffled me.   All instances are identical and the code development and Test is identical.   Any ideas?

Mystery solved: administrators of the Government has changed the wrong database.  Once it was fixed, it worked.   I hate having to rely on someone else to keep one of my databases.  Share of employment, however, so...

Tags: ColdFusion

Similar Questions

  • Cost of the execution plan is different in the two databases

    Hi gurus,

    I have two databases, which are 12 C.

    The execution plan cost is different in the two databases for the same query.

    is it possible to copy the execution to another plan.

    Thank you in advance

    Kind regards

    REDA

    Jr.Raj wrote:

    There are a few differences.

    The machine that has a high cost, has setup up, linux, 2-node RAC, more CPU.

    and

    other machine windows server less Setup and less cpus.

    Please explain, cost really makes a difference.

    Thank you & best regards

    REDA

    You simply can't compare costs like that. It does not work like that. Especially through two different systems.  Here is a very good read: column the COST of the PLAN to EXPLAIN. Oracle FAQ

  • Try to divide the two numeric fields and have response in the third field num

    Okay, I do something wrong and can not understand it.  I use the code below in the field of PSF of my form to divide two different fields digital and for the life of me I can't understand why it does not work.  I guess it's something simple.  I downloaded the form.  Please take a look at the form and me know where I am on leave.  You almost have something simple and I just don't see

    < activity = "click on" name = "event__click" >

    < script contentType = "application/x-javascript" >

    If (NumericField13.isNull |) NumericField13.rawValue == 0)

    {

    NumericField28.rawValue = '0 '.

    } elseif(NumericField27.isNull ||) NumericField27.rawValue == 0) {}

    NumericField28.rawValue = '0 '.

    } else {}

    NumericField28.rawValue = NumericField13.rawValue / NumericField27.rawValue;

    }

    < /script >

    < / event >

    I think it has something to do with the way which is made the division.  I think he's trying to divide by zero, although at this time I tried several different if/then instructions and can't see where I go into the equation, so I tried the above only a click again and could not get that to work either.

    Thanks in advance for your help.

    Justin

    First thing is that you have this script running on the click... event so that your code will not run until a user clicks on the field. I suggest that you put it

    the calculate event. In this way, every time one of the other values named in the formula change t

    hen she'll recalculate this field.

    Second, there was a script error in your formula... I modified to look like this (it seems just more logical that way to me)

    If (NumericField13.isNull |) NumericField13.rawValue == 0) {}
    NumericField28.rawValue = '0 '.
    } else {}
    if(NumericField27.IsNull ||) NumericField27.rawValue == 0) {}
    NumericField28.rawValue = '0 '.
    } else {}
    NumericField28.rawValue = NumericField13.rawValue / NumericField27.rawValue;
    }
    }

    Third, your shodul of NumericField27 have a default value 1 or you should make its value acheck so that she does not have a possibility to get a 0 or your division will fail.

    Finally, shodul you rename your fields have insstead of generic names like numericField XX more descriptive names. Many people like to know the type of field to the name then, instead of NumericField27 SQFT_NumFld what would you say? With this technique, I can say immeadiately field in which you speak (Square Footage) and its type (numeric). Just my 2 cents worth!

    Paul

  • MessageLOVInput Field to display values from the LOV

    Hi all

    On my personal page, I have a MessageLOVInput Field and I need to restrict the user to enter the values of text free/junk in it and assign this user to select values only from the LOV (i.e. actual query LOV values) pop-up.

    I tried to find the same kind of questions, but I got this message https://community.oracle.com/thread/606973?start=0 & tstart = 0

    Please provide me the solution in detail

    Thank you

    Afzal

    Hi amal.

    Create a dummy element of value in the form type in your lov plan point create a new card for lov and give the point criteria as the id for your first card for lov and dummy element give posting as 'Yes' to the palette property. so every time that user enters certain undesirable values and try to save it will throw an error message like please enter a valid value

    Ex: LOVMAP1: lovregionitemid:give regionitemid lov

    ReturnItem:Give lov returnitemid

    criteriaitem:give lov criteriaitemid

    useforvalidation:Yes

    LOVMAP2: lovregionitemid:give regionitemid lov (SAME AS first lovmap)

    ReturnItem:Give dummy element point

    criteriaitem: NULL

    ReturnItem:default

    Thank you

    Deb

  • Effects display differently in the new document

    I just follow an online tutorial on creating an effect of gel type. The effects have been saved as a new style, and the style can be applied without problem to the objects in the same document.

    However, I discovered that when I create a new file (same size, resolution and color RGB mode) the style appears differently when it is applied.

    Even if I copy the original layer in a new document, the appearance is different. I have a workaround which is to duplicate the original image, apply effects of new layers within the duplicate image and remove the unwanted layers. But I'm curious as to why this is the case - I guess that's the rookie mistake.

    screenshot.jpg

    An option in the layer of fusion style that does not, I think. I recommend that you check out each individual effect blend modes and masking effects below for options. also check the overall fill opacity / blend is expanding. Quite possible it gets reset a new doc.

    Mylenium

  • Spacing of the object is displayed differently after the publication with Muse

    Here's how it looks in Design view:

    Screen Shot 2014-09-28 at 12.29.41 AM.png

    Here's what it looks like when published:

    Screen Shot 2014-09-28 at 12.32.48 AM.png

    I can not the top of the form properly spaced.

    I fixed that by creating a text box behind all the text boxes in spaced disproportion. It seems to cause the boxes in front of it to realign properly.

  • Best way to display availability for the booking system

    Hello

    I currently have a form with a menu drop-down allowing users to select the number of seats that they would like to book.

    Currently, the field reduced from 10 to 0 in conjunction with the number of seats available.

    The problem is that I add another variable to the scenario whereby the same field will reduce if the parameter 'event' affirm that only a certain number of seats can be reserved per transaction.

    There are 2 variables:

    -$seats_available (that's the number of seats have not yet been booked)

    - $row_prod_detail ['seats_per_booking'] (how many seats is allowed per transaction)

    I tried to add an OR statement in the form field, but it returns 1-5 and 1-10, that everything in the menu dropdown-> resulting in 15 options.

    Here's the code for form field:


    < label for = "quantity" > < / label >

    < select name = "quantity" id = "quantity" class = "quantity_dwfield" >

    < option value = "-1" selected = "selected" > amount seats < / option >

    < option value = "-1" > - < / option >

    <? PHP if ($seats_available < = 10 | $row_prod_detail ['seats_per_booking'] < = 10) {? >}

    <? PHP if ($seats_available == 0 | $row_prod_detail ['seats_per_booking'] == 0) {? >}

    < option value = "" > No. seats left! < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 1 | $row_prod_detail ['seats_per_booking'] == 1) {? >}

    < option value = "1" > 1 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 2 | $row_prod_detail ['seats_per_booking'] == 2) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 3: $row_prod_detail ['seats_per_booking'] == 3) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 4 | $row_prod_detail ['seats_per_booking'] == 4) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 5: $row_prod_detail ['seats_per_booking'] == 5) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 6: $row_prod_detail ['seats_per_booking'] == 6) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 7 | $row_prod_detail ['seats_per_booking'] == 7) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    < option value = "7" > 7 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 8 | $row_prod_detail ['seats_per_booking'] == 8) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    < option value = "7" > 7 < / option >

    < option value = "8" > 8 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 9: $row_prod_detail ['seats_per_booking'] == 9) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    < option value = "7" > 7 < / option >

    < option value = "8" > 8 < / option >

    < option value = "9" > 9 < / option >

    <? PHP}? >

    <? PHP if ($seats_available == 10: $row_prod_detail ['seats_per_booking'] == 10) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    < option value = "7" > 7 < / option >

    < option value = "8" > 8 < / option >

    < option value = "9" > 9 < / option >

    < option value = "10" > 10 < / option >

    <? PHP}? >

    <? PHP}? >

    <? PHP if ($seats_available > 0 | $row_prod_detail ['seats_per_booking'] > 10) {? >}

    < option value = "1" > 1 < / option >

    < option value = "2" > 2 < / option >

    < option value = "3" > 3 < / option >

    < option value = "4" > 4 < / option >

    < option value = "5" > 5 < / option >

    < option value = "6" > 6 < / option >

    < option value = "7" > 7 < / option >

    < option value = "8" > 8 < / option >

    < option value = "9" > 9 < / option >

    < option value = "10" > 10 < / option >

    <? PHP}? >

    < / select >



    Any help would be much appreciated!

    I've never actually created a loop in my life! I know; disappointing.

    How would I go to do this? I saw a few tutorials, but none of them does solve several variables (the show something like 0-10, but not 10-0 as a default and change if one of the variable becomes less than 10)

    The loop must:

    • Show 1 to 10 if BOTH $availability AND $seats_per_person are MORE than 10
    • Display 1-x if EITHER $availability OR $seats_per_person are below 10 (Eg. If $seats_per_person is limited to 3, then the loop will go from 1-3 If $availability is 1, then regardless of the cap $seats_per_person (out of 3) he only show 1)

    EDIT:

    That's what I got. It seems to work, but I'm doing something I shouldn't? like formatting / organizational wise?

  • Have a new 6 but cannot get it to sync with iTunes on my Mac. The two systems have system updates (and both confirm). How can I update iTunes on my phone when he said the latest version?

    Have a new 6s, but cannot get it to sync with iTunes on my Mac. Both systems have system updates (and confirm the latest version). How can I update iTunes on my phone when he said the latest version?

    The message to update iTunes refers to iTunes on your Mac - is your Mac on a high enough version of Mac OS X to support the required iTunes version? If this isn't the case, then your Mac can be changed?

  • Can I use a product key for the two systems?

    I'm about to buy Windows 7 Ulimate Upgrade for my PC and laptop. Do I need an extra key, or I'm able to use a laptop and PC

    My UN-Pc on Vista and also my PC

    Required separate keys as always...

    You can wait for Windows 8. The upgrade cost is a fraction of what Windows 7 will cost and you could do it for less than the cost of an upgrade to Windows 7... ..

  • I just bought photoshop on accident instead of items. Is it possible to do a cheaper upgrade? or swap the two systems?

    I am in a serious impasse and need a fix as soon as POSSIBLE. Alternatively, is anyone an idea of a free editing option?

    If you contact Adobe, they should be able to fix that for you:

    Contact | Adobe

    You can also download the free trial version until you get the same question:

    https://www.Adobe.com/cfusion/TDRC/index.cfm?product=premiere_elements&loc=us

  • Can install a single copy of the elements on a Mac and a PC.  The two systems are my staff.

    Can I install a single copy of my first items on my laptop and my Imac?

    If the disk version, Yes.

  • Dynamically update a numeric field as the sum of the values of page element.

    Hello

    I am updating a numeric field on a page of the apex by summing the values of several components of the page. I have tried to follow this tutorial http://st-curriculum.oracle.com/obe/db/apex/r40/apexdynactions/apexdynactions_ll.htm, especially the part "create a Set value dynamic Action with the help of PL/SQL'.

    In the example of the tutorial, they return a value of page element P3_SAL multiplied by a multiplier determined by the case of another page. What I want to do is much more simple that I just want to add multiple values page element and then display them in a numeric field at the bottom of the page.

    so the code I tried to use based on the tutorial is in the tab: Home > Application Builder > Application 103 > Page 3 > Dynamic Action change > create / edit Action

    Set type: PL/SQL function body

    PL/SQL function body:

    BEGIN
    return: P3_ITEM1 + P3_ITEM2 + P3_ITEM3;
    END;

    Page items to submit: P3_ITEM1, P3_ITEM2, P3_ITEM3

    But it gives me an error that I need to declare identifiers, and yet it works if I use only one article and I can perform arithmetic.

    That is to say.

    BEGIN
    return: P3_ITEM1 + 1000;
    END;

    Any help would be appreciated.

    PL/SQL function body:

    BEGIN
    return: P3_ITEM1 + P3_ITEM2 + P3_ITEM3;
    END;

    Page items to submit: P3_ITEM1, P3_ITEM2, P3_ITEM3

    But it gives me an error that I need to declare identifiers, and yet it works if I use only one article and I can perform arithmetic.

    In your code, it lacks the ":" for articles P3_ITEM2 and P3_ITEM3.
    Try this:

    BEGIN
    return :P3_ITEM1+:P3_ITEM2+:P3_ITEM3;
    END;
    
  • Calculation of the numeric fields radio button and checkbox-based response

    I am to change a form that was created by someone else.  I added checkboxes and radio buttons based on the need to form. I would like for the amount of check calculate automatically based on the selection of a radio button.  I've implemented some numeric fields to play with adding the amounts and placed them in the field 'Amount to check', but I can't seem to calculate.  Once I have to calculate correctly, I need to know how to automatically enter a number in the appropriate digital field based on the option button or check box selected.  Here is a picture of what I've put up.  Help, please!  I read all the forums, watched the videos and tried everything.  I'm so frustrated.

    MemberStatusHelp.jpg

    Don't know if I have the layout if correct me if Im wrong. I assume you have a radio button group on the top line for the first 3 check boxes and boxes (when the user selects one) for the following 2 lines (where the user can select independently of the other 3 above) with a final calculation at the end to check the amount field.

    You can either place the code on each change of each checkbox/radio button event to recalculate or just do it on the final checksum field. I tried putting a calculate on the last field to check the quantity, and it seems to do what it takes.

    Try this in the case of calculating the amount of check field

    var membershipAmount = 0;
    if ( (RadioButtonList.rawValue == "2") || (RadioButtonList.rawValue == "3") )
    {
        membershipAmount = 35;
    }
    
    if (CheckBox1.rawValue == "1" )
    {
        membershipAmount += 15;
    }
    
    if (CheckBox2.rawValue == "1" )
    {
        var txtAmount = TextField3.rawValue;
        var amt = 0;
        if ( (txtAmount != null ) && (! isNaN(txtAmount) ) )
        {
            amt = parseFloat(txtAmount);
        }
    
        membershipAmount += amt;
    }
    
    this.rawValue = membershipAmount;
    
  • Tweaking of default query so that the two fields are searched equally

    I have a 'Customer Details' data block that contains the field "mobile1" and "mobile2" for customer's cell phone numbers. When a customer enters into a mobile number or a field, I need to check the two mobile fields to see if this number exist as the primary contact number or secondary to any client of the query.
    I've tried to set a default_where clause, but oracle automatically adds to him whenever a number is entered in the field, making me a little trouble at the head!

    For example, if I say something like, WHERE MOB1 =: BLOCK. MOB1 OR = MOB1: BLOCK. Mob 2 (do not question true, just one example)
    And I took #-# in the field of mobile2,.
    Forms adds to this "AND mob 2 =: 1'"

    which causes the query to return nothing, since there is no entry mob 2 is equal to the registered number, even if there is an entry MOB1 bearing the same number.

    Is there a way to change the AND a RC for the query?

    If not, can anyone suggest how I can get the result, I'm looking for without having to change my block to a block not DB and duplicate me all the default features of Oracle Forms manually?

    Thanks in advance,

    A

    Do something like this in the PRE-QUERY-trigger:

    IF :BLOCK.MOBILE1 IS NOT NULL THEN
         SET_BLOCK_PROPERTY('BLOCK', ONETIME_WHERE, 'MOBILE1 LIKE ''' || :BLOCK.MOBILE1 ||  ''' OR ' ||
                                                    'MOBILE2 LIKE ''' || :BLOCK.MOBILE1 ||  '''');
    
    END IF;
    :BLOCK.MOBILE1:=NULL;
    
  • F4240 - when new closing window in Explorer, windows closed the two explorers and send error msg Ms.

    Recently, I downloaded the drivers for a F4240. Since that time, when the browser opens a new Explorer (window)? (for example an e-mail messages or links) after the closing of the new window (msg, link, etc.) then the two explorers stops and the msg "Explorer has encountered a problem and needs to close" is displayed and close the two explorers.

    I know that this is the cause, because I uninstalled the software (problem solved) and reinstalled... problem returns.

    Very frustrating. Help, please.

    Thank you, Randy

    Try to uninstall HP Smart Web Printing of add/remove programs and see if it helps.

Maybe you are looking for