Maximum value in a JFormatedTextField?

Hi all,
I want to have a maximum value in a JFormatedTextField, and was wondering if it could be done?
I know you can have a maximum number of digits through the NumberFormat class, but was wondering if you could do it for just say maximum value of 50?
thanks,
Justin

For this particular case, you could use the VariableLengthMaskFormatter in
[url http://forum.java.sun.com/thread.jspa?forumID=57&threadID=461577]this thread with a mask of '##' to restrict the user to two digits max.
: jay

Similar Messages

  • Top 3 maximum values in a table

    Dear Friends,
    I'm just looking for a query to get the top 3 maximum values from a table. For example is a table contains the salary of employees, I would like to get the top 3 maximum salary. Can you please help?
    Thank you in advance.
    Regards,
    Senthil .A. Perumal.

    here is a basic sample:
    select emp_id, sal from employee;
        EMP_ID        SAL
           101       2000
           103       1500
           102       2500
           104       3000
           105       2800
           106       3500
           107       2100
    7 rows selected.
    select emp.emp_id, emp.sal, emp.ranking
    from (select emp_id, sal, rank() over (order by sal desc) ranking
          from   employee) emp
    where ranking <= 3;
        EMP_ID        SAL    RANKING
           106       3500          1
           104       3000          2
           105       2800          3hope this helps.

  • Get maximum value in a field using SQL query

    Hi,
    I want to retrieve the row containing the maximum value for a particular field.
    select max(fieldname) from tablename
    How do I do this using database connectivity toolkit.
    Shiva

    Hello,
    I figured out the answer. It was sql syntax.
    Thanks for coming in here to help.
    I created another post earlier because I had a little different question that pertained to fetch.vi.  How do you get an array out from fetch.vi without creating error. I also made type an array also but it does not allow an array.
    Thanks for your help.
    By the way, how do I as the original poster get rid of a whole thread I created, especially if its a duplicate.

  • How to find out the maximum value of one array

    hi all..
    I have one array that consists of some elements
    so I want the maximum value of the list ...
    if anyone knows this please help me..
    thanks..

    >
    If your array is already sorted, you can do a binary
    search.
    I think there are already methods to do that in
    java.util.Arrays. (?)
    If not, it's not hard to find an example on the net.
    A binary search will be more efficient.1. If your array is already sorted, you do not need a binary search. Either check the value of arr[0] or arr[arr.length - 1] depending on the direction of sorting.
    2. If your array is not sorted, try this:
    int maxValue = arr[0];
    for(int index = 1; index < arr.length; index++)
      if(arr[index] > maxValue)
        maxValue = arr[index];
    }

  • How to find out the maximum value in a Query

    Dear all,
    Im creating a Query on 0SD_C03 where i have to disply Maximum value of a material..
    EX:
    MATERIAL BILLED VALUE
    x                   1000
    y                   3000
    z                   2500
    in a analyser i have to display only Y and 3000
    We are using BW 7.0 version
    Can any one help me out in this
    Thxs in Advance
    Venu

    Hi Venu,
    You may wish to refer the link below:
    http://help.sap.com/saphelp_nw04/helpdata/en/17/82853c2dc5c505e10000000a11405a/content.htm
    Assign points if this is helpful.
    Regards,
    Anil

  • How to find out the maximum value in a Query within single material

    Dear all,
    Im creating a Query on 0SD_C03 where i have to disply Maximum value of a material which is having more that one transaction..
    EX:
    MATERIAL BILLED VALUE
    x with BILLED VALUE 100
    x with BILLED VALUE120
    y with BILLED VALUE 50
    y with  BILLED VALUE 80
    z with BILLED VALUE 50
    z with BILLED VALUE 60
    in a analyser i have to display X with billed value 120 that is max in X material and
    Y with billed value 80 that is max in Y material and
    Z with billed value 60 that is max in Z material
    In a query all the values are summing up. I.e for X its 220 and Y its 130 and Z its110 but we dont want to get total sum value we want individual values and the maximim of those values.......... 
    We are using BW 7.0 version
    Can any one help me out in this
    Thxs in Advance
    Venu

    Venu,
    In your query try creating a formula, with the value of each record as the key figure in the formula.
    In the aggregation tab select maximum in the exception aggregation dropdown and then select material as the reference characteristic
    then when you include material in the rows it will only display the maximum value.
    cheers
    mark

  • How to find out the maximum value

    Dear all,
    i have one query where in i have to calculate Excise Duty based on the  maximum  sales qantity of all materials with the corresponding sales value... i mean i wil get the maximum value of a individual material no matter how many sales has done.i wil pick up the maximum sales qty and the correspondig sales value....
    This im able to solve by taking the condition as TOP 1..
    Now my question is if the same material qty is sold with differnt value then i have to pick up the  Max value and as usual the sales qty..... plz help me out
    Material              Sales Qty              sales value
           3000                10 kl                   1000INR
           3200                15 kl                   1100 INR
           4000                20 kl                   1000INR
    in this case my query is picking up the max qty of  20 and the value 1000 INR as i had taken TOP 1 on Sales qty ....
    <b>
    But In the below example  for the same material i have to pick up the 3 rd row  where the sales value is maximum and the corresponding sales qty 10 kl</b>
    EX   Material        Sales Qty              sales value
           3000                10 kl                   1000INR
           3000                10 kl                   1100 INR
           3000                10 kl                   1500INR

    Hi,
    U can use the restrict option fo the Material characteristics  for sales value just drag and drop on columns >right click Properties> U have the option Calculated Result as Summation, Maximum, Minimum etc..just choose Maximum for ur case.

  • Cap on Maximum value of payment in single payment run (F110)

    Hi All,
    we have a requirement to put a cap on maximum value of payment in payment run in F110. Kindly suggest me how we can do this.Is there any sta
    Thanks & Regards
    Deepak Garg

    Hi Deepak,
    Please find below the answers to your queries.
    1.Let us suppose that you have already posted a document with a payment method C( say for 255000 Euros). Later you go configure your company code specific payment method C and stipulate a limit of 250000 Euros as maximum amount . The maximum amount stipulation does not bind this invoice item which was created earlier. This item can be paid via payment method C. The maximum limit applies to documents posted after completion of your configuration.
    2.In standard SAP payment amount limit is per payment method level, and cannot be set at payment run level.
    The alternative option would be adding a "user exit" with the help of ABAP Team for this specific purpose. The second alternative, though not practicable, would be reviewing the proposal run and making the necessary changes to restrict the total payment amount.
    Warm regards,
    Murukan Arunachalam

  • Maximum value of a Internal table field

    Hi ,
    I have been struck in 1 place.
    I am getting Payment term from Zterm from VBRK table .
    Now I have to fo to table T052 and according to ZTerm - I get the 3 different value - ZTAG1 , ZTAG2 ,ZTAG3.
    Out of these i need to fetch the maximum calue out of ZTAG1, ZTAG2 ,ZTAG3.
    i DONT WANT TO CASE STATEMENT.
    pLS HELP

    If you're lucky and on a new version (I think you'd need at least 7.0.2) you could use the predefined ABAP function [nmax|http://help.sap.com/abapdocu_70/en/ABENNMAX_NMIN_FUNCTIONS.htm]:
    max_tag = nmax( value1 = t052-ztag1 value2 = t052-ztag2 value3 = t052-ztag3 ).
    On lower releases you're out of luck and you have to code it yourself. Should be obvious how to code it, but let me be explicit:
    max_tag = t052-ztag1.
    if t052-ztag3 is not initial.
      max_tag = t052-ztag3.
    elseif t052-ztag2 is not initial.
      max_tag = t052-ztag2.
    endif.
    Now, why did I post such a trivial solution? Because the previous poster gave one, but as you can see one can make it shorter and more legible. My solution is based on the fact that the number of days from baseline date must be in ascending order, i.e. ztag1 < ztag2 < ztag3 or a value can be 0 and then all following values have to be zero (if you try it in customizing you'll see that other combinations are not possible).
    Obviously neither my nor the previous solution works in general to determine the maximum value of three numbers (though of course that's also trivial to implement and I think the disadvantage of the previously posted solution is that it's not necessarily immediately obvious).
    Cheers, harald

  • Exchange Rate is picking the Maximum value, instead of valid from

    Every first day of month we enter exchange rates for foreign currencies.
    but when we make  Purchase Order or any other payments in foreign currency, system is picking the maximum value, but not the value from Validity date.

    Hello,
    Thanks for your immediate response.
    But my Question is for e.g.
    on 01.01.2010  entered Exchange rate is 1 euro = 5.6954 SAR
    on 01.02.2010  entered Exchange rate is 1 euro = 4.9653 SAR
    if am posting document on 16.02.2010 it should pick the second value i.e., 1 euro = 4.9653 SAR, but system is picking the maximum value.

  • Maximum value of Processes in Oracle 11g

    Hi,
    In our application, we do get the following error frequently.
    ORA-12516, TNS:listener could not find available handler with matching protocol stack
    When i searched about it, I learnt that the processes /sessions used might be exceeded.
    So, I'm trying to alter the values of the system parameters - Processes & sessions for my DB.
    The following link says the maximum value for PROCESSES is 'operating system dependent'
    http://docs.oracle.com/cd/B28359_01/server.111/b28320/initparams188.htm#REFRN10175
    The DB Host machine is Windows Server Enterprise and its 32-bit machine.
    The DB is *"Oracle Database 11g Enterprise Edition Release 11.2.0.1.0"*
    Can you please help me find out the maximum value of the PROCESSES parameter that we can set for this OS?
    Let me know if my understanding of the issue is wrong.
    Regards,
    Tamil

    Hi,
    I checked the v$resource_limit table,
    Resource Name    CurrentUtilization Max_Utilization Initial_Allocation Limit_Value
    processes     119          150     150     150
    sessions     124          158          248     248
    I could see the current value for processes is 119 here. When i checked v$process few hours back, it was 145.
    I could not use the command "ulimit -a" as its a DB installed in Windows box.
    Can you help me to find out how i can find the value for Windows OS?
    Thanks,
    Tamil

  • WSH_NEW_DELIVERIES_S Reaching maximum value in Oracle apps 11.5.10.2

    Hello Friends,
    In one of our production system, WSH_NEW_DELIVERIES_S Reaching maximum value.Current application version is #11.5.10.2 and Database version is 11.2.0.3.0
    Can any one help what we can do, do we have any Meta link Note ID's or Patches to do  it. as customer will not agree to ALTER the maxvalue with Out Oracle NOTEID or Approved Patch.
    As of now Maximum value defined in sequence is 285700000 and the WSH_NEW_DELIVERIES_S.currval is 285012483.
    Please suggest.
    Current Script in System is as below:
    CREATE SEQUENCE WSH.WSH_NEW_DELIVERIES_S
    START WITH  285012482 
    MAXVALUE 285700000
    MINVALUE 1
    NOCYCLE
    NOCACHE
    ORDER;

    An another possibility is to do the opposite to what I just wrote. Upload the true definition to the database an compare with the one you are not sure about via SQL:
    1. Backup the WFT file where the standard/seeded workflow is provided
    2. Edit it and change the name of the ITEM_TYPE. For instance, change it from OEOL to OEOL_TMP (cannot exceed 8 characters)
    3. Upload it to the database with WFLOAD
    4. Compare the design tables for the two if them (WF_ITEM_TYPES, WF_ACTIVITIES, WF_MESSAGES, WF_PROCESS_ACTIVITIES, WF_ITEM_ATTRIBUTES, etc). If the table provides a VERSION column then the query would need to use a WHERE END_DATE is null (so that you get only the active/current version of the object). A select... MINUM select would do the job.
    I would do this in test though, to avoid a mistake can cause any issues.
    Regards,
    Alejandro
    Edited by: Alejandro Sosa on Feb 4, 2013 7:07 AM

  • Depriciation for asset with limit on maximum value

    Hello,
    We have a requirement in which we have a limit on maximum value of the asset on which depreciation is allowed. For example is asset value is more than 100000 then depreciation should be allowed only for value 100000 and the depreciation should be spread across the useful life of the asset.
    I have an asset having value 300000 and I am able to post depriciation only for 2 years (50000 each) whereas the useful life of asset is 6 years.
    What I want is that the depreciation should be posted for 6 years with value (100000/6) 16666.67 each year.
    Has anyone come across the similar business scenario earlier?
    Any pointer to this will be of great help.
    Thanks
    Jyoti

    Hi,
    I found the solution.
    IT can be done by defining the maximum value of the asset in the SPRO path
    AA-> valuation mentods> further settings> define maximum base value.
    Jyoti

  • Calculate maximum value of subarray while creating it using a case structure and shift registers

    I have two 1D arrays that contain cyclical information (kind of like a sine wave).  One that contains information on position in degrees and another that contains torque.  I would like to calculate the maximum torque value each time the position is within a certain range (e.g. from 30-80 degrees).  The ranges are repeated - that's why it is cyclical.   I use the "in range" function, a case structure and shift registers to build a new array with values that fall within the range I specify - this was the easy part (see VI attached).  I'm struggling with a way to calculate a maximum value for each subarray formed when values are "in range".   Your help is much appreciated.
    Solved!
    Go to Solution.
    Attachments:
    Simple Calculate between anatomical position range.vi ‏16 KB

    It's not really noise - it's more inconsistency.  So a position output can run: 20, 30, 40, 50, 60 etc.  OR, it could run: 21, 24, 32, 41, 44, 51, 59 etc. But, it is always cyclical. 
    Attached you will find a .csv file with the data arrays - I'm using POS (ANAT) degrees column (column D if you open in excel).  There you also see torque in ft-lbs along with some other information.
    Attachments:
    025C.csv ‏224 KB

  • How to check the maximum Value and Last value in Reports CP column

    Hi all
    First of all i am sory that iam posting this question in forms instead of Reports....i had posted it in reports but no one reply and i need uirgent solution so I post here....
    My problem is that in Report I have calculated some values in CP column......Like
    :CP_Total := :Frieght * Rate ...etc
    Know i want to ask that how can I get the last value that will be return the by this column????and also the maximum value that it will return
    Thanks in advance
    Shayan
    [email protected]

    You mast build Summary column out of the query and select maximum to your maximum value of CP in Report level (or last for last value).

Maybe you are looking for

  • FFT of 20 waveforms

    Hi, I used the following VI (attached to the mail) in the past that acquires data from the specified channel, scales the data to engineering units, windows the signal, and performs the requested averaged frequency measurement. Power Spectrum, Power S

  • Leading zeros in dynamic text fields

    I have a dynamic text field that indicates the degree of rotation of a knob. I need the display to have three digits showing at all times. This means I need leading zeros from 0 to 99. ie, 000, 001, 002, etc. Is there a way to do this numerically or

  • Reports - adding selection criteria as part of output

    Hello, We are on ECC 5.0. My business users would like to have the following on all R/3 reports, extracts and printouts: The company code, the period selected, the filters or parameters selected, the title of the document/report/extract, the currency

  • How to extend Segment if segment of current version & has been generated

    Hi, I am facing a problem, in extend the segment. It is a BAPI-ALE interface, I have generated the segment, and the segement is in the current verion. But i need to add one more field to the segment. How to add the segment, It very urgent. Can someon

  • Retail Windows 7 can't install on Lenovo R61i

    I have a retail version of Windows 7 that keeps asking for the drivers CD/DVD on installtion. I thought that was a thing of the past, I mean XP, but not with Vista and 7, and yet I get the error message. I've set the SATA settings to Compatibility mo