Why is my calculated number field turning to a 10-place decimal?

I have 3 integer fields. 2 are user-entered as numbers with 0 decimal places ("3003" and "3004". The third is a number with 2 decimal places, and runs a Simplified Field Notation calculation "3003 / 3004". When I open the fillable doc in Reader, the calculated field is already set at 1.00, with no input in the first two fields. When I input the first two numbers as 126 and 26, I kept getting the calculated field returning as 0.994647235478. That lasted for a couple days. Now, the return is always 1.00 no matter what I do.

The problem is you've used numbers for your fields names. How is the script
supposed to know if "3003" is a number or the name of a field? You need to
either change the names of your fields, or use a custom calculation (which
is a better idea anyway, actually, because you need to make sure that the
value of the denominator is not 0)...
Try using something like this as your custom calculation code:
var v1 = +this.getField("3003").value;
var v2 = +this.getField("3004").value;
if (v2==0) { event.value = ""; }
else event.value = v1 / v2;

Similar Messages

  • How to prevent a number field from getting summed?

    I want to display the # of clients per a certain ID number. (In order to show the duplicate records by setting a filter in the # of clients field). However, this works if the ID number is a text field... but it doesn't work if the ID number is a metric of client... or number. It gets summed up, I get the total, and the % of clients turns to be 1.
    Any ideas?
    Thanks

    Example:
    I have 3 clients:
    Column A
    55
    55
    44
    21
    I want the following output:
    55 | 2
    I get the desired result by adding a second column (# of clients) and creating a filter to get results only if the value is > 2.
    The problem is when "Column A" is a number field. If it is a number field, I get total sum of the records (55+55+44+21) and a value of "1" if I add the # of clients column.
    Is it clearer now? ideas?

  • Assigning a value to a number field through a button

    11gxe , apex 4.x ,
    hi all ,
    i am trying to assign value to a number field through a button ,
    i created a button , then a dynamic action for this button , when it is clicked ,
    the dynamic action is based on Pl\Sql code , and the code is
    begin
    :p2_assign := 455 ; -- where the page is "p2" and the number field is "assign"
    end ;
    but it does not work , why ?

    I can see the toolbar now from the last link you provided me with ,
    but you showed me the way to use the static assigning , and assigning with sql , and i want to do it with "Pl\Sql"
    in order to know why my way of writing the code does not work , although it is written properly , and should work .
    every input item is a variable , and i am doing so
    begin 
    :p2_assign := 455 ; -- where the page is "p2" and the number field is "assign" 
    end ;
    to assign a value to a variable ,
    and
    doing this
    begin 
    select 455 into :p2_no from dual ; 
    end ;  
    to select a value into a variable , then
    why does not it work ??
    and how to do it with pl\sql ?
    thanks

  • Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    I think it has something to do with the way the value of the check box is exported, but I'm not sure.  With nothing being exported to Data5, Data6 displays the sum of Data1-4 rounded down to the nearest whole number and updates automatically as Data1-4 are updated.
    Right now, assuming Data1-4 are 0, where data 5 is the output of the second example and any box is checked,  "1" is displayed in data5 but nothing is added to data 6. Selecting any other check box or deselecting that check box will cause data6 to add 1 even if data5 displays "0".  By way of example:
    Selecting Check box 16 results in Data5 displays 1 and Data6 displays zero.
    Then, if any or all of Checkbox17-20 are selected, Data5 displays 1 and Data6 displays 1.
    Then, if any or all of Checkbox17-20 are deselected, Data5 Displays 1 and Data6 displays1.
    Then, if Checkbox16 is deselected, Data5 displays 0 and Data6 displays 1.

  • PA30 - Personnel Number field greyed out - No input help available.

    Hi Experts,
    In our System in DEV, & Quality  in PA30, we are unable to select employees either by directly giving the number (greyed out) or by selecting through F4 (No input help is available).
    But in Production System we can directly give Pernr or select through F4.
    Any body tell me what is the reason behind this.
    Thanks in advance.
    Samanvita.

    Hi Hariprasath,
    It is not the issue with NUMKR, The number Ranges are already maintained, and are defaulted in NUMKR feature.
    This is showing same in DEV / QA/ Prod.
    Issue is in DEV / QA,  The Personnel Number Field is Greyed out, and not able to select any number.
    For that we are going to PA20, open the personnel number first, and open PA30 in another window, then we are changing the data of the employee.
    But we want to give Personnel Number in PA30 itself as per SAP Standard.
    Any Idea, why it is like this.
    Thanks,
    Samanvita

  • Batch number field in Handling Unit detail (VT01N) is not editable

    Hi, Does anyone know how to turn the batch number field (screen field HUMV4-CHARG in program SAPLV51G screen 6410) editable?
    Right now, it is not allow us to specify the batch for delivery line item if there are multiple batches for the same line item when the item is packed into a handling unit.
    The batch number is in the delivery table but it will not come into the shipment table when the delivery is added to the shipment, nor the field is editable for user input.
    Please help!
    Thank you,
    Minami

    HI,
    If you are doing online check for userexits/customer exits....
    For userexits u can check in the subroutines node in se80(Program->SAPMV50A)....Please check the same.
    for customer exits ->SMOD->F4 help->Specify the package as 'VL' and see the ehnacements and then the funtion exits.
    Regards,
    Nagaraj

  • Number fields filter in ADF

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my project.
    I have an query on how adf filter works for wild card characters '*' and '_' number fields and string fields.[Typically 'Number' and 'Varchar2' fields in DB].
    For Number fields, for example if my table has data 9.99 say for column price, when I give filter criteria as 9 , the query gets executed as select * from table where pricing = v_bind_1 [ v_bind_1 = 9]
    and does not fetch any data as per query.When I give filter criteria as 9*,then the query gets executed as select * from table where pricing LIKE v_bind_1 [v_bind_1 = 9%].
    But for string fields when I give filter criteria as N say for example EmpName column, then the query gets executed as select * from emp where EmpName LIKE v_bind_1 [v_bind_1 = N%].
    It behaves differently for string and number fields.
    Is this the standard behavior in ADF ??
    Also please point me to some docs which gives an insight on how filter is performed for different field types.
    Regards,
    Praveen

    Just a thought, for numbers filtering with operators like =,>,< makes more sense rather than using wildcards * or %. This might be the reason why the filtering differs for strings and numbers.

  • Problem in export Number field into graphical reports

    I have a custom field Number1.
    I put a decimal number (italian version)  0,5
    I use Number1 inside Cost1...to make some calculations, so the number format I see that is correct.
    I use Number1 as dimension into a graphical report (to excel file).
    Into the pivot of the excel the Number1 has the "," character converted to a underscore "_"
    So 0,5 become 0_5
    0,1 become 0_1
    I need the correct format into excel because I have to do other calculations.
    thank you.
    MS Project 2013 and MS Excel 2010. Both italian version.
    Daniele.b75

    Hi Daniele,
    How do you do your Excel export? Saving the file in a XLS format or creating a visual report?
    A workaround would be to write a simple macro in your Excel file:
    Sub test()
    Cells.Replace What:="_", Replacement:=",", LookAt:=xlPart, SearchOrder _
    :=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
    End Sub
    But before trying this, let's try to debug your export.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Why, with the same number of photos in both places, do I still have 25 GB of storage on my iPad and have to BUY more space in iCloud?

    Why, with the same number of photos on my iPad and supposedly in iCloud, do I still have over 25 GB of space on my iPad but now need to buy even more storage space in iCloud? My iPad is 64 GB and I am now paying for 20 GB of iCloud storage with 864 MB left!

    As I said: 
    Even if the Photos are less than 20GB,  There's other stuff on the iPhone that is likely getting backed up to iCloud and using space. Basically your Phone has more space to spare than iCloud.
    You can check in Settings->iCloud->Storage->Manage Storage to see what is using up the space in iCloud.
    Anyway, turning off Photo stream will remove all photos from iCloud, it will not remove them from the iPad if they were taken with it, or copied to it.
    Again I suggest you check in:Settings->iCloud->Storage->Manage Storage to see what else is using your iCloud space.

  • Number field type mapped as String

    Oracle Number field is mapped as CSTRING when using CRECORDSET class in VC++.
    Any ideas why? or what I should do?

    How big is the number column defined? ANything larger than a NUMBER(14) will map to a character string since there isn't a datatype large enough to hold say a NUMBER(30).
    Here is the mapping as I rememeber it (it is old information and may not be quite up to date with the latest drivers):
    if Scale = 0 then if Precision <= 4 then
    Number Size: Integer
    if Precision <= 9 then Number Size: Long
    Integer
    if Precision <= 15 then Number Size: Double
    if Scale > 0 then if Precision <= 15 then
    Number Size: Double
    Any other field types mapped to Text (Field
    Size = 255).

  • How to use javascript in a calculated column field in SP2013

    Hi All,
          I'm trying to use the code below in a calculated column but i can't get it to work.
    any time i add it in it strips out all the quotes etc..and it doesn't show the open dialog.
    Any ideas how i can use this in a calculated column field?
    Thanks in Advance
       ="<div><a href='#'
    onclick='openInDialog(500,600,true,true,false,'http://www.SharePoint.com');'>MS
    SharePoint Site</a></div>"

    Your problem is with the single quotes which both open de onclick event and are used for the javascript string variable.
    You want " and need to escape those in a SharePoint string as ""
    So this
    ="<div><a href='#' onclick=""SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');"">MS SharePoint Site</a></div>"
    Evaluates to:
    <div><a href='#' onclick="SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');">MS SharePoint Site</a></div>
    Once SharePoint dumps the HTML code in the Client Browsers
    (provided you have set the Datatype of the Calculated column field to Number!)

  • How to convert number field into time

    Hi
    I have made a form for storing of private dialed calls from different extensions. To store call duration i have assigned a number field which is storing following type of data
    1.34
    1.19
    37.29
    1.47
    In above mentioned data decimals are seconds and left side is minutes.
    Now the requirement is that if second is > 30 then 1 minute should be added in minutes else 30 seconds should appear instead of original seconds.
    Please Help!

    >
    To store call duration i have assigned a number field which is storing following type of data
    In above mentioned data decimals are seconds and left side is minutes.
    >
    Please provide info about the form in which you RECEIVE the data. Do you receive the data in MM.SS format like you say you are storing it?
    If not, why are you storing it this way?
    Unless you have some reason to STORE the data differently just store it the way you got it. That way you won't lose any precision and you can manipulate it any way you need to for display purposes.
    If you receive START_TIME and END_TIME then store both of those. Don't calculate and store duration; you will lose END_TIME and if you later need to calculate duration to a different precision you won't be able to.
    Where is the data being stored? Oracle?
    Write a simple function to convert a duration to minutes and seconds using the '>30' rule you have. Then if the rule changes you can write a new function or modify the existing one and the data itself doesn't have to change.

  • Drop down in Personnel number field in FBCJ

    Hi,
    There is a personnel number field in FBCJ. When i press F4 for drop down list, i get list of employees in Quality client & development client.
    But in Production Client, i pressed F4 for the list of employees but i was unable to get that list.
    All the masters are uploaded through HR module.
    Let me know why the employee dropdown is not appearing in production client & its appearing in developement client.

    Hi Deepak,
        There might be a search help developed for PERNR in Dev & Test Client which might not have transported to Production Server. Check with your ABAPER about the Search Help of PERNR. In Standard SAP there is no search help for PERNR in FI Transactions this has to be developed.
    Cheers,
    Sunil

  • Group & alternative account number field

    hi,
    1) i do not see group account number field in FS00, FSS0 or FS01/02/03 but i can see alternative account no. i know this alternative acc no is meant for country specific.
    why i cannot see this group acc number field?
    2) why i do not see country specific account show in alternative acc no? for example in obd4, there is sales acc and also local gaap sales account. when i disply operating sales acc, i do not see local gaap sales acc show in alternative acc number field.
    thanks

    hi,
    thanks alot. point given.
    1) may i know if local gaap account also in the same coa just like operating coa, then do we need to assign this local gaap account in alternative acc number field?
    2) why in the same coa, there have more than 1 type? operating gl acc, local gaap gl acc and also ifrs gl account.
    3) how do i know which account to post to as all of them in the same chart of acc?
    thanks

  • Entering a letter in a number field

    Hi there,
    I am using structure binding for many of the contexts in my application to get all the data types automatically. It works ok, but when the data type is decimal, like a currency field, and if the user types in any letter in that field, it is looking at parsing the Decimal and raises a nullpointer exception. You cannot catch the exception on an action because it does not reach to the action code, and the application is terminated before that. I thought that just like in R/3, where the system automatically gives an error if a letter is input in a number field, the error handling should be automatic here as well.
    Does this mean that I cannot have decimal types in webdynpro, referencing corresponding decimal types in R/3 just because it gives up an exception if the user enters wrong data?
    Is the only solution to change all my data types to Strings without referencing any data element?
    Any help would be appreciated,
    Thanks,
    LM

    Hi,
    Please refer to the messages in the thread. Opened OSS message. SAP got back saying that it is resolved in SP17 and have to upgrade. Thats not very handy for me at this stage because there is no plan of upgrade.
    Meanwhile, I noticed that another field, which is currency as well, does not throw up the exception, and SAP also validates the field and asks u to enter the data in the desired format. Which is good. But what I cannot figure out is why this field is working and why a similar field is not working.
    Even stranger, I assigned this field to all the currency fields in my application,which worked fine one day, but this morning I find that it has stopped working!!
    Any idea why
    1) One particular currency field is working, whereas others dont? (The only difference I can see in this currency field is that it is a Z field and not refer to sap std domain).
    2) Why it worked one day and then stopped working when I changed the data type to this field.
    I know these questions are vague, and you maynot have a readymade answer, but just checking..you could have faced a similar issue..
    Many Thanks,
    LM

Maybe you are looking for

  • Help with drawing strings on JFrame?!?!

    Hey guys, I'm really new to Java (just started AP Comp Sci last month), and we had a project to build a Mastermind application using numbers, which I did. However, I'm trying to learn more on my own, and was hoping to use the example code my teacher

  • Insert new rows based on user selection on a table display on the screen

    Hi.. In my requirement i need to display the line items of a PO# to the user on the screen for specific fields. Each row should also include an additonal checkbox when displayed for the user. When the user checks this check box or clicks on it a new

  • Dw6 fluid grid layout

    trying to make sense of the fluid grid layout. can you use <div class> in fluid grid layout? is it best to only insert divs using the fluid grid layout div? when you insert a new fluid grid div what is the difference between entering a new line or no

  • Customizing messaging and silent mode

    Several questions here: 1- Is there a way to choose to send text message rather than iMessage to a specific contact other than completely turning off iMessage? 2- Can the vibrate mode be customized to select how many vibrations for each category rath

  • Wiping corrupt FI documents from DB

    I need to get completely rid of FI documents that somehow got corrupted and could not be rebuilt via SAP-supported utilities. There is an exact list of documents that are missing one or more item records in table BSEG. The financial aspect of this pr