How to restrict decimal point entry in numeric field?

Hi All,
There is a requirement from our client that, they cannot accept amount in decimals. That is, they cannot accept the cents, the amount that can be received from them is only in EURO and the same will be entered in the field. They want me to restrict the entry of a decimal point totally in the field, so that there requirement is fulfilled.
Is this possible? If yes let me know how?
If no, can you provide me justification, so that i can intimate the same to my client.

Dear Steve,
I had written in my first thread that, They want me to restrict the entry of a decimal point totally in the field.
If i use 9999 as format mask, then it still allows me to enter a decimal, but when the focus moves out of the field, it highlights the field and warns me "Field must be of form 9999".
But my requirment is to "Restrict the entry of decimal point totally @ runtime".

Similar Messages

  • How to right align a read only numeric field in a panel form layout

    Hi, does anyone know how to right align a read only numeric field in a panel form layout? I am using: Style Class = AFFieldNumberMarker, but it only seems to work if the field is disabled. Disabling the field gives it a difference appearance that does not look right on our forms. These are calculated fields, which cannot be modified, so read only is necessary.
    I have looked online for some answers, and it seems that others are having similar issues.
    I have tried different combinations for the properties, but so far I cannot get it to work.
    Thanks
    Judy
    I am using JDEV 11.1.1.5

    Sorry for the delay in my response. Here is the code
    <af:inputText value="#{bindings.TotalAirlineCostEst.inputValue}"
    label="#{bindings.TotalAirlineCostEst.hints.label}"
    required="#{bindings.TotalAirlineCostEst.hints.mandatory}"
    columns="#{bindings.TotalAirlineCostEst.hints.displayWidth}"
    maximumLength="#{bindings.TotalAirlineCostEst.hints.precision}"
    shortDesc="#{bindings.TotalAirlineCostEst.hints.tooltip}"
    id="it20" readOnly="false"
    disabled="true"
    styleClass="AFFieldNumberMarker">
    <f:validator binding="#{bindings.TotalAirlineCostEst.validator}"/>
    <af:convertNumber groupingUsed="true"
    pattern="#{bindings.TotalAirlineCostEst.format}"
    type="number"
    maxFractionDigits="0"/>
    </af:inputText>
    thank you,
    Judy

  • How do I take two separate non numeric fields in a acrobat form and combine the data to display in a third separate field?

    How do I take two separate non numeric fields in a acrobat form and combine the data to display in a third separate field?

    You have to use custom JavScripting to concatenate the first 2 fields. You cannot use the first 2 calculation options because they force the values of the fields to a numeric value or ignore string values.
    Possible scripts for the 3rd field are:
    event.value = this.getField("Text1").valueAsString + " " + this.getField("Text2").valueAsString;
    or
    event.value = this.getField("Text1").valueAsString.concat( " ",  this.getField("Text2").valueAsString);
    If you do not want change the separator or not show the separator when on or the other field is empty, you will need to add more code to adjust for change.
    The above scripts will also concatenate number because the field values are read as strings and not numbers.
    There is also a generalized user written function to concatenate up to 3 fields with a separator that adjust for missing data.

  • How to delete decimal point and adding leading zeros....

    Hi,
    I have one requirement in the report   i.e.
            <b>Present Value    :</b>  44567.98
            <b>Expected Value  :</b> 0000004456798
    In the present Value how will I remove that decimal point and how to add those six ing zeros. I tried with CONVERSION_EXIT....but it is not giving. Help me...
    Thanks in advance.
    Regards,
    Kumar.

    Hi,
    Use SPLIT and COMCATENATE fnctions.
    Eg:  split l_v at '.' into l_v1 l_v2
            concatenate l_v1 l_v2 into l_v.
    For adding leading zeros
    Use FM CONVERSION_EXIT_ALPHA_INPUT.
    Eg:
    data: tknum type vttk-tknum value '99156'.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
         exporting
              input  = tknum
         importing
              output = tknum.
    Sri
    Message was edited by:
            Sri Tayi

  • How to set Decimal Point position from right to left Serial Read Evaluate Number within Range over RS-232

    I am new to Labview, I am communicating with a TQ8800 Torque meter via RS-232. The 16 digit data stream is as follows:
    D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
    Each digit indicate the following status :
    D0 End Word
    D1 & D8 Display reading, D1 = LSD, D8 = MSD
    For example :
    If the display reading
    is 1234, then D8 to D1 is :00001234
    D9 Decimal Point(DP), position from right to the left
    0 = No DP, 1= 1 DP, 2 = 2 DP, 3 = 3 DP
    D10 Polarity
    0 = Positive 1 = Negative
    D11 & D12 Annunciator for Display
    Kg cm = 81 LB inch = 82 N cm = 83
    D13 1
    D14 4
    D15 Start Word
    I am using a modified version of the basic_serial_write_read.vi. I am attempting to parse the 16 digit data stream extracting out the number and whether it is positive or negative. I am having trouble with the decimal point placement. Is there an example that could help me with this? After the number is parsed I am then comparing it to see if it is within +/- 9.2 N cm. If it is then the test passes. I am outputing the data to a file. I have included the vi. Also how can I check for different units of the annunciator. Any help would be appreciated.  Thank you.
    Attachments:
    basic_serial_read.vi ‏100 KB

    What is the definition of the End Word?  You will likely need to figure this out experimentally (the manual doesn't seem to define it).  Whatever it is, you should set that as the termination character and enable the termination character.  That will help you in keeping your messages in sync.  Just tell the VISA Reads to read more than a message should be, something like 30 should work nicely.
    The error you are seeing is a buffer overload.  This means that the instrument is sending data to you faster than you can process it.  So you need to figure out how to perform the read faster.  File IO is slow.  So you should put that into a seperate loop so that your loop does nothing but read the data from the port as quickly as the data comes in.  Use a queue to send the data from the reading loop to the logging loop.  This is known as a Producer/Consumer.
    And here is a cleaned up version of your code.  No need for your express VI or the formula node.  Some other general cleaning up also done to make it easier to read.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    serial read.png ‏80 KB

  • Different decimal point character for numeric limit test vs multiple numeric test with database logging

    Hi all,
    I have a problem with decimal point character and database logging.
    I've deselected "Use Localized Decimal Point" in Station Options->Localization. Teststand should now use "." as decimal point character (ignore the "'s).
    When logging to database this is only true for Multiple numeric limit test results, not for Numeric limit test results.
    Numeric limit test results use "," as decimal point character where it should be "."
    I can't trust the localization settings on the PC as different endusers might have different settings.
    Example:
    (STEP_NAME and PROP_RESULT.DATA)
    Numeric limit test 1,50127667932332
    Multiple numeric limit test result_1 1
    Multiple numeric limit test result_2 1
    Multiple numeric limit test result_3 10.0304317
    I've changed the Limits->Numeric format for each test but this change is only applied to the report, not the database result.
    Read the manuals but didn't find anything...
    Have I missed something obvious, or is this some kind of bug?
    Teststand version is 2010.
    Windows versions are XP SP3 and Win7. Same behavior on both OS.

    When something is logged to the database as a number, the database is probably storing it in a way that is independent of any sort of decimal point localization. When you view the items in the database however it is probably going to show you the number based on the current locale settings. This is likely purely cosmetic, for display purposes.
    -Doug

  • How to restrict decimal values upto two decimal places?

    Hi all,
    I want to restrict decimal figures upto two places. How to do that? Help will be appreciated.
    atanu
    [email protected]

    You can use NumberFormat class.
    There are lot of threads available in this forum. Just search for the keyword 'NumberFormat'.

  • How to fix decimal point limit

    Hi
    how do i fix the decimal point digit.
    for e.g
    if the input number is 123.33
    then it should conver it to 123.330
    OR
    if input 123
    then it should convert it to 123.000
    OR
    if input 123.321456
    then it should convert it to 123.321
    Thanks in advance.

    No that is not the solution.
    But I found out a different solution. The following code will give me exact figure which I was looking for.
    BigDecimal inputSize = new BigDecimal(12.3215)
    inputSize.setScale(3, RoundingMode.FLOOR);
    Thanks to all of you for your support
    Ciao :-)

  • How to restrict decimal values in Project Management JSP pages

    Hi,
    By default, the values of effort % complete, % complete, Earned Value etc show 8 digits after decimal in Progress Update Overview page.
    We want to round off these values to two digits.
    How can this be achieved? Please suggest.

    Hi 977941,
    Please set the following properties for a field and check for decimal point
    Action Type : firePartialAction
    Event : validateInteger
    Create a controller and add the following in Process From Request :
    if ("*validateInteger*".equals(pageContext.getParameter(EVENT_PARAM))) // identifier should be same as what you have set .
    get the value here and check if the decimal exist and throw exception message .
    Thanks
    Sandeep

  • How to increase Decimal Points for the BOM Component Quantity

    Hi All,
    While creating BOM:
    Can anyone help me to know how i can increase the Decimal points for the BOM components quantity.
    I can able to give only upto 3 decimal points, but the requirement is more than that.
    I have increased the Decimal point value to 5 in transaction Code CUNI. but still it is allowing me to enter only upto three decimal places.
    Thanks and Regards
    Khadeer

    Khadeer,
    You would be better off changing the base quantity of the parent part.  Instead of "1 EA  parent contains .00003MG of  component" you could say "100 EA parents contain .003MG of component".
    Alternately, you could use different units of measure for your parent or component parts, which would be more suitable for the 3 place decimal limitation.
    I agree with Anil in that if you elect to change the decimals from standard, you could end up with huge changes that will propagate through every module in the ERP.  In my view, there is no need of this kind of headache.
    Best Regards,
    DB49

  • How to restrict decimal values from number in OAF

    Hi All,
    My requirement is, when ever user enter number in text box, if the number having decimal it should throw an exception to enter for only integer values.
    Appreciate help on this.
    Regards,
    Rakesh

    Hi 977941,
    Please set the following properties for a field and check for decimal point
    Action Type : firePartialAction
    Event : validateInteger
    Create a controller and add the following in Process From Request :
    if ("*validateInteger*".equals(pageContext.getParameter(EVENT_PARAM))) // identifier should be same as what you have set .
    get the value here and check if the decimal exist and throw exception message .
    Thanks
    Sandeep

  • How to change decimal point in Rotate Tool.

    Hi,
    I use the rotate tool to design gauges, like clocks, a lot. I hold the ALT button and click on the center of my drawing and then a window pops up to enter in what degree I want my object to be. Currently the decimal point only allows for hundredths, ex. 45.25 degrees. Is there any way to change this to thousandths or even higher, ex. 45.25125? I've attached a screenshot to show you what I mean.
    Any help would be appreciated!
    Thanks,
    Laura

    Laura Belle,
    When you enter the full decimal value, that should give you the right rotation whatever the truncated value is.
    At least I hope that is still the case in your version.
    You may test it as follows:
    1) Create a square with W = H = 100;
    2) Rotate thrice, each time inserting 33.333333 degrees, then rotate by -100 degrees;
    3) Look at the W and H values;
    4) Repeat 1) - 3), only with 33.33 degrees and see what you get.
    You should get W = H = 100 in 3) and  something like 100.017 to 100.018 in 4).

  • How to get the width of a numeric field at runtime

    Hi, everyone :D
    Is there a built-in that let me get the width of a numeric field at runtime? The SRW bulit in only has the SWR.GET_PAGE_NUM built-in. Is there something like the Get_item_property of Forms IN Report?
    Thanks
    Edited by: user12422762 on 07-ene-2010 14:16
    Edited by: user12422762 on 07-ene-2010 14:30
    Edited by: user12422762 on 08-ene-2010 4:40
    Edited by: user12422762 on 08-ene-2010 4:50

    Hi. Thanks for answering. I need the width because i want to set the format of the field at runtime. The quantity of decimal digits for all the numeric fieds in the report is received as a parameter.
    I can use a function to create the respective decimal mask ('D99,'D999',etc.) and then call the SRW.SET_FORMAT_MASK in the format trigger of every single field, but i'd have to type the mask of the integral part of the number in the code of the trigger ('99G999D99, '999G999G999D'). However, If i could get the width, i'd just create a function and call it from every format trigger.
    Edited by: user12422762 on 08-ene-2010 10:05
    Edited by: user12422762 on 08-ene-2010 10:06
    Edited by: user12422762 on 08-ene-2010 10:08

  • How to model a non key figure numeric field

    I am new to SAP BI, so please acceopt my apologies if I am asking a very basic question.
    I have some numeric fields which are attributes of master data. These fields are not key figures and will not be aggregated. How can I model this in BI? I have to keep them as numeric fields because they may be used in some calculations at reporting.
    Thanks!

    You can display them as display attribute along with your main infoobject in query.
    or
    Model it using replacement formula variable by using attribute value as in this [Help|http://help.sap.com/saphelp_nw04s/helpdata/en/03/6ba03cc24efd1de10000000a114084/content.htm] doc.
    Hope this helps.

  • How to insert decimal point while selecting data from a table

    Hi All ,
    My select requirement says , If the value received with no decimal then insert decimal before last 2 bytes. I need to retrieve data with this condition.
    May you people help how i can achieve this?
    Thanks in advance,
    Sachetan

    Is the data a number in string format?
    with q as (select '12345' myNum from dual
    union all select '45.78' from dual)
    select case when instr(myNum, '.') > 0 then to_number(myNum) else
           to_number(substr(myNum, 1, length(myNum) - 2) || '.' ||
                    substr(myNum, length(myNum) - 1)) end newNum from q
    NEWNUM
    123.45
    45.78If not just use
    with q as (select 12345 myNum from dual
    union all select 45.78 from dual)
    select case
    when instr(myNum,'.')>0 then myNum
    else myNum/100
    end myNum
    from q
    MYNUM
    123.45
    45.78

Maybe you are looking for

  • Acrobat Scanning with CM1312nfi MFP. Can't change from legal size paper

    I've had the same problem with mulitple versions of Adobe Acrobat, but most recenlty with version XI Standad. All my scans using the Acobat interface result in legal size scans using the ADF, instead of letter size.   When I try to "Configure Preset"

  • PCIe8x instead of 16x

    I recently got myself the following motherboard : MSI G31M2-FD V2 At first, I used the onboard vga, but today I got a Sapphire HD3870 graphics card. After I installed it and checked it with ati catalyst control center, it says :  ''current bus settin

  • Magazines in Newstand keep deleting and I don't want it to!

    This has been happening since the beginning and it's really annoying, especially as downloading magazines is so unbelievably clumsy as it is!! I've downloaded magazines many many times only for them tobe deleted when I go on it. I presume they downlo

  • Calling a javascript function from an Applet

    I am trying to make an applet that works on as many browsers as possible, so I am sticking to Version JCK 1.1 I am trying to call pass the javascript function into a URL object like this URL url = new URL("javascript:" + function, "_self");but I keep

  • UNIX command - turning on "windows sharing"

    Does anyone know how to activate windows sharing via UNIX command?