Value Range for numeric field

I'm fairly new to LiveCycle, I've used it to make forms for a bit, but am now hoping to make the forms much more advanced.  I'd like to know the best way to set a value range/parameter for a numeric field? I want the filler to be restricted to a range of $300 to $10,000 and if they try to enter below or above that value they would receive an error message.  I've looked at all the beginner material and am trying to get introduced to FormCalc and/or JavaScript but not fully comprehending the best/complete method (any guidance on where to start is also greatly appreciated).
Thanks, Ed

if (((300 < this.rawValue) && (this.rawValue < 10000)) || (this.rawValue == null)){
   true
} else {
this.rawValue = null;
app.alert("Please enter a value between 300 and 10.000")
I changed some things though... ^^
If you want 300 / 10 000 to be true too then set <= instead of <.
You can also change the app.alert message as you want.
If you don't add the null in the beginning you might get an error message if it's on the validate event. If it's in the exit there shouldn't be a problem...
Though this is just a little different from Paul's original solution.

Similar Messages

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • How to find the Ranges for a field ?

    Hello All,
               Can anyone tell me how to find the ranges for a field.
    <b>1</b>, i.e say I want the Ranges Structure for the field LIFNR.
        The ranges structure for this is "<b>RANGE_LIFNR</b>".
        This I used in my Program since I know it previously.
        But now I want the ranges structure for the field <b>VBELN (Delivery Document).</b>
        I  don't know what is it !!!!!
    <b>2</b>, Is there any procedure to know the ranges structure for a particular field ?
    Regards,
    Deepu.K

    Hi Deepu,
    Using 'Where used list' you can able to find out RANGES tables.
    For VEBLN range table is --> CRM_AC_ASSIGN_VBELN
    If you using a program defined as shown below.
    DATA: r_vbeln type ranges of vbeln.
    The above statement also creates ranges structure in Runtime.
    Procedure finding range table structures
    go to SE37 -> Enter domain or dataelement value
    Go to where used list --> search for 'Structures'
    After getting all structure  --> Click 'SEARCH' butoon in tool bar --> Search for 'RANGES' word
    You can get all ranges tables in the search window
    If helps plz reward points.
    Regards
    Bhupal Reddy

  • Can we use same number range for different  fields

    can we use same number range for different  fields. how can we see the number range defined for a particular field

    Hai,
    Yes you can have same number range for different fields  by using the same domain to the data elements that are user to your two fields.
    To see the range:
    Go to SE11,Type table Name open it-->double click on the DataElement adjasent to the field name ,You will get Domian ,Double click on Domain You will get Domain.There See Value range option .Value range cam also be defined by Value Table which will also at the Doamin level.
    <b>Reward points if it helps you.</b>
    Regds,
    Rama.Pammi

  • How to create value request for screen field text box tt1

    How to create value request for screen field text box tt1
    i have a text box name tt1,
    i want f4 help for that .
    remember i am asking for screen i.e done from screen layout not selectio-screen.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla,

    Hi,
    Create one Search Help in the SE11 for the particular Field that u want to display. In the Screen(Transaction SE51),For that Text Box in the Attributes,in Dict Tab ->Search Help Field give that Search Help Name.
    For Eg,
    If u want Purchase Order Numbers in that F4 Help.Create one <b>Search Help</b> by giving Table Name as <b>EKKO</b> & <b>Search Help Parameter</b> as <b>EBELN</b> with Lpos & Rpos as 0 & 1.Save & Activate it.
    Give this Search Help Name in Dict Tab ->Search Help Field of that Screen Attributes.
    Regards,
    Padmam.

  • Value Help for a field from custom table in BSP

    Please let me know, the procedure to create value help for a field from a custom table in BSP using HTMLB.
    Thanks

    hi prodigy,
    check this code using drop down list.
    <b>layout for first page</b> 
    <htmlb:dropdownListBox id                = "ddlist"
                                  table             = "<%=t_mara%>"
                                  nameOfKeyColumn   = "matnr"
                                  nameOfValueColumn = "matnr"></htmlb:dropdownListBox>
    <b>event Oninitialization event of first page</b>
    SELECT MATNR UP TO 10 ROWS
      INTO TABLE T_MARA
      FROM MARA.
    <b> event Oninputprocessing event</b>
    **Load the manager class
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    DATA: V_EVENT TYPE REF TO CL_HTMLB_EVENT.
    DATA: DATA TYPE REF TO OBJECT.
    DATA: V_DATA TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
    CALL METHOD CL_HTMLB_MANAGER=>GET_EVENT
      EXPORTING
        REQUEST               = RUNTIME->SERVER->REQUEST
      RECEIVING
        EVENT                 = V_EVENT
    IF V_EVENT->NAME = 'button' AND
       V_EVENT->EVENT_TYPE = 'click'.
    DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST =
                                          RUNTIME->SERVER->REQUEST
                                          NAME     = 'inputField'
                                          ID       = 'matnr'
        V_DATA ?= DATA.
    IF V_DATA IS NOT INITIAL.
         V_MATNR = V_DATA->SELECTION.
    ENDIF.
    NAVIGATION->SET_PARAMETER( NAME = 'v_matnr' VALUE = V_MATNR ).
    NAVIGATION->GOTO_PAGE( 'detail.htm' ).
    ENDIF.
    <b>in the onInitialization event for detail page</b>SELECT MATNR
           ERSDA
           ERNAM
           LAEDA
           AENAM
           VPSTA
           PSTAT
           LVORM
           MTART
      FROM MARA
      INTO TABLE T_MARA
    WHERE MATNR = V_MATNR.

  • OBIEE Presentation Services : Default formatting for numeric fields

    Hello all.
    I need help in setting default formatting for numeric fields in criteria. If a user adds an numeric field, it does not have any formatting associated with it. I want to know how do you set default formatting (for example if user adds sales measure it should appear in default format like $1,000 or even with decimal places).
    Please help.
    Thank you.

    Hi,
    1) We have so many subject areas. If we select "system wide default for this data type", is this change going to reflect in all subject areas.No should do this subject area wise.
    2) Will this effect if we migrate from dev to prod environment.Yes it will effect.
    I hope u will follow this to-
    http://forums.oracle.com/forums/ann.jspa?annID=939 :)
    Regards,
    Srikanth

  • Some fields from R/3 have automatic value help for input field on WD

    Hello,
    we have imported a Model from RFC/JCo (ABAP) with several fields. One of them is "IWAER" of SimpleType Iwaer and "Built-In-Type" string in J2EE. Though the enumeration of this type is empty, WebDynpro mystically generates a value help if the type is assignet to an ImputField. On the ABAP-side component type is IWAER with data type CUKY and in domain WAERS which has a value table TCURC (instead of fixed values in a value range).
    Where/why does WD find out that this is a currency-field and where do the values in the value selector come from?
    Best regards,
    Manuel

    Hi,
    at least for the ModelData-Connection (BAPI-Call) there is no data being transferred besides one value for each field.
    I don't know if the MetaData-Connection of JCo is able to get more information (e.g. key-value-pairs for the domain or type the field belongs to,..) than just the structure of the interface.
    -> Where and how do these EVS-values come from without doing something?
    Best regards,
    Manuel

  • Asign Numeric Field Value to Another Numeric Field

    I have 3 numeric fields on 3 different pages and I want to populate all 3 with the same value. If the value changes in 1 the other 2 should change. I've tried many variations, but I can't get it to work. Here is what I have right now. This is in the change event of "TopmostSubForm.Page1.SurveyNumber"
    TopmostSubForm.Page2.SurveyNumber2.rawValue = TopmostSubForm.Page1.SurveyNumber.rawValue;
    Any help is appriciated.
    Greg

    That is an interesting solution that I will use for next time - or I may use this idea now.
    In this case, the survey form is being emailed back and the XML data is already being stored in a database and then reported on. I would need to change all of the queries that produce the reports and change existing data. Not the end of the world.
    Even if I do go that route, it seems I should still be able to use the change event to populate the other field. What am I doing wrong?
    Greg

  • Need help for "Numeric field Overflow" error in excel 2003.

    Hello,
    a friend of mine have a problem exporting Business Objects 5.1.8 to excel 2003 (turning on windows 2000).
    Each time she want to export her reporting in excel format (.XLS), she obtain a "Numeric field Overflow (3349)" error.
    So, she export in .CSV format, but it's not easy to use for her following tasks.
    What could she do ?
    Does she do an "update" to newer version of B.O., or there are a solution at her problem ??
    Thanks in advance.
    Nicolas
    P.S.: I searched for solution on this forum, but found nothing.
    Edited by: Nicolas Kowarski on Sep 28, 2008 10:16 PM

    Hello Nicolas,
    Please post this query to the [Legacy Products|SAP BusinessObjects BI Legacy Products;  forum.
    That forum is dedicated to topics related to legacy products such as Business Objects Enterprise 5.x and 6.x.
    The forum is monitored by qualified technicians and you will get a faster response there.
    Also, all Legacy Product queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

  • Finding short text description of Fixed values for value range for domain

    Hi,
    When I got to Dictionary: Dispaly Domain and click on tab value range; I get the template showing Fix. Val and its associated short text.
    I want to fetch the short text for a particular fix. val for a domain.
    How can I do that ? What table can I use it ? Or do I need to use some function module ?
    Lets say I want to fetch the short text for a given Fix val. for domain VBELN.
    Please help me out.

    Hi,
    You can use Function Module 'FM_DOMAINVALUE_CHECK' to get the fixed values of any domain.
    Regards,
    Atanu

  • Automated value generation for key field in db table

    Hi All
    I have created a table in SE11 and i want to autogenerate a value for the keyfield when the user adds a new record to the table. the keyfield is of type numc. this field represents a document id hence i do not want the user to physically enter in an id. Is it possible to achieve this without any additional coding. I am using a WDA app together with an adobe form to allow user to input data.
    Thanks in advance
    Regards
    Thashin Naicker

    There is one more method to do that.
    Write a query to fetch all the records from the table into any temporary internal table.
      Then, do a looping in that table & increment one temporary variable inside a loop.
    after this add first value of your primary field  to this temporary variable..
    Ex.: To add one more record with an increment to a primary key field  is shown below:
    DATA: TEMP type I.
    TEMP = 1.
    SELECT * FROM <TABLENAME> INTO TEMP_TABLE.
        ENDSELECT.
    LOOP AT TEMP_TABLE.
          TEMP = TEMP + 1.
        ENDLOOP.
    <Tablename>-<fieldname> = TEMP_TABLE-<fieldname> + TEMP.
    Note: temp is a temporay variable and temp_table is a temporary table.

  • Value range for domain

    Is it possible to enter value range more than 10 characters long ??

    HI Michal
    This seems to be a restriction as the DOMAIN for storing the value range is defined of length 10 Chars.
    Kind Regards
    Eswar

  • Value range for free characetstic

    Hi All,
    I need to restrict the free characterstics value range form 20...29 and 40...49 for document type charcaterstic in the work book i mean i need to exclude the 20..29 range and 40...49 range form the selections, but i couldn't see the 20 and 49 in the slections i can see only 21 to 29 i couldnt find 20.How to achieve this in the work book itself.
    Any help in this regards.
    will assign the points.
    thnaks
    sg

    Hi SG-
      Lets see if this helps. In the query definition, from the context menu of doc type, choose RESTRICT. In the small window that opened, click on the box at the bottom left that has an arrow pointing to the right. In the subwindow that opens, see if you have the checkbox for Only Values in Infoprovider selected (tick mark). If yes, uncheck it and see if you can find the value 20 now. Let me know if it worked.
      What KJ said is true. But since you said that your superior was able to do so for the same infoobject I am assuming that the values are being filtered from master data table already. One other place you can check is in the infocube. Go to RSA1, doubleclick on the infocube, go to EXTRAS -> Structure specific infoobject properties -> see what is the selected value under the column F4 query. If it says Only Values in Infoprovider, then change it to Values in Master data table and activate the cube.
    Assigning points is the way of saying thanks in SDN.
    Message was edited by:
            Sudheer B

  • How do I put a permanent dollar value in a numeric field?

    I'm setting up a simple order form in Adobe Livecycle Designer with UnitPrice, Qty and Total columns.
    I need to have permanent dollar values show in the UnitPrice numeric field. When they enter a qty, it will be calculated by the unitprice and give a total. I have already figured out the other calculations, just can't work out how to put the dollar values in the unitprice field. They must be showing when the person opens the pdf file. Can someone pls help, I have looked thru all the posts and couldn't find an answer.
    thanks in advance
    KerryDun

    I need the numeric field to show the actual price eg $3.50 and it needs to stay there, it's not editable. To get around this I have put a text field column next to the unitprice column, to show this value, but the filler will have to type the unitprice in again, in the unitprice column so it will make the calculation of unitprice x qty = total(when the price is already sitting there.)There must be a better way to do this. Any help is greatly appreciated.
    thanks
    KerryDun

Maybe you are looking for

  • I want to change my apple id email?

    When i try to change it on account manager, it says i 'can not change my email to my security email' my security email is the email i want to use as me main email, but i have no idea how to change it? i dont really want to make a new email as i use m

  • HELP ON HOW TO STORE OUTPUT IN TEXT FILE

    Hello, I am trying to output the results from queties into an output text file does anyone knows how to do that please? For example i want to do : Select SYSDATE from dual; and output the result of it in a text file called output.txt does anyone know

  • Corrupt Rotated Images

    Hi I have made some low res scans of 35mm trannies for reference on a project that I'm working on. They are 16 bit and just over 2mb in size. The ones that have been shot in portrait format have been rotated either in Bridge or Photoshop CS3. I've im

  • Convert a string to date, so that i can insert it on SQL database

    Hi, me again.. i have this variable date.getText() i want to convert it to date, so i did this: d = (Date) DateFormat.parse(date.getText()); but it says "Cannot make a static reference to the non-static method parse(String) from the type DateFormat"

  • Outbound queue locked due to incorrect password

    Hi Gurus, I'm having a problem to activate an Integration Model as I'm getting an error stating that the outbound queue is blocked due to incorrect password. I have set up the RFC destination of the SCM ECC logical systems wit a valid user (I tested