validation to regret the negative values...

I have a class called "P14_No_of_days"...

In this field the negative value should not accept that any validation is there?

pls help me guys

SKUD,

Put code next under Edit Item-> HTML Form Element section "attributes".

onkeyup='this.value=this.value.replace(/[^0-9]/g, "");'

It will limit users to enter non-numeric characters.

Kind regards
Hari

Tags: Database

Similar Questions

  • Checking the negative value

    Hey guys I have a result on the ground which is of type varchar, but it stores numbers. I want to check if the value is negative or not. The code below works perfectly except for 1 case where the result has only ' - '. -indicates a missing value not a negative... How this can be fixed. Here is my code snippet.
    -Search for numeric values
    IF (trim (TRANSLATE (resvalue,'+ -. 0123456789', ' ')) IS NULL) THEN
    -Look for the negative value if the value is numeric
    IF (substr (resvalue, 1, 1) = '-' AND substr (resvalue, 0, 1) is not null) THEN
    v_ret_msg: = v_result_name | "" A negative result. "

    Also check the LENGTH of resvalue.
    That is to say:
    If length (resvalue) = 1 and substr (resvalue, 1, 1) = '-' then...

  • correctly when reading the negative value

    Hi all,

    It's about power meter device. in fact, I've already got the good value here, but I create additional calculations. the situation is:

    When the power reading is positive, I enjoy reading.

    power is negative, I misread (high value). so I need to subtract this value to 2 ^ 32 (or 4294967296).

    is that someone he knows the reason why he needs to happen?

    OK, "registers" are tables of U16. so try to typecast I32. How many elements in the table?

    Somehow, you do everything with tables, but you only display one item. It almost seems to me that everything going primitive "contact numbers" be given ordinary scalars. There are also a lot of duplicate code. You might get away with an instance and a loop FOR, for example.

    Representations of data are a mess with a wild mix of types of data and constraints. The Psum (High value) is I64 without reason (under the constraint of a DBL two values U32 (?) division). I do not understand the function of the Subvi. Can you explain?

    You can place an indicator of one of the 'registers' tables, run the VI so it contains data, then turn the indicator in a constant of schema that contains the typical data (Right-Click... change to constant). Save and attach the VI.

  • remove the negative values in table

    I have a table 1 d of data depending on the positive and negative values. I'm trying to search for negative values and remove them from the table.  This corresponds to the data in the column in the second table 2D that should also be deleted. A minor problem is that there are an additional column in the 2D array that must be skipped.  I have the code that should do it.  The problem is that if I have two negative numbers in a row the code doesn't thow on the other.

    This first picture is the answer I get when alternate positive and negative values.  It shows the correct answer.

    When I change the first1 of the positive a-1 value as shown below...

    ... I get the following response.

    FYI, some other things such as conversion are here because I'm trying to manipulate the actual data set is enormous.  I test everything I do with the numbers that I can actually follow before I apply in my real program.  That's why I do extra things.

    Thanks for the help!

    Here is the solution, that increase the index when you do not remove an element. In addition, whether you use the "less then or equal" when you use the "lower to."

  • Data file see the negative value

    Hello, well this post here because the Support of Oracle will not answer this question, its been 2 weeks and many phone calls to "try and speed it up. IM wondering whats up with them now...

    In any case!

    Oracle 10.2.0.2
    Linux x 86

    These files are difficult to maximum 4 and 15 GB, but now they show 30 GB and 60 GB of free space.
    tablespace file bytes free bytes
    ORACLE_DATA /data/oracle/padb/oracle_data_12.dbf 4000 34947
    ORACLE_DATA /data2/oracle/padb/oracle_data_31.dbf 15000 60298 
    And I'll upload a picture Grid Control:
    http://img190.imageshack.us/img190/3594/oracledata31dbf.jpg
    http://img200.imageshack.us/img200/1526/oracledata12dbf.jpg

    Did you ask where the actual data is gone? Because these files should / have 4 GB and 15 GB of data in them, but now his party and instead his free more space than what is available.

    Grateful for any help.

    Hello

    You can serve your dba_recyclebin, and then try again.

    Please cehck:

    Bug 5083393: VALUE FILE_ID AND DBA_FREE_SPACE RELATIVE_FNO ARE DIFFERENT

    Use negative for an Oracle data file. [444170.1 ID]

    Concerning
    Rajesh

  • Tree control mode: Returns a validation event when the NORMAL value

    CVI 2013: I am writing a software to change the command tree modes based on the user's selection. I noticed that when the command is set to NORMAL, I got a "EVENT_COMMIT". Just for reference, I am using a custom control - group of Radio buttons, but the bug (I'm assuming that) is in the tree control are I forgot something?

    An application of Corrective Action (CAR) has been filed for this behavior. His number is 578618. You can monitor the condition of this CAR by checking the notes Readme or release new versions and checking the bug fixes section.

  • Negative value to run to analyze the report in the statspack report

    Hello

    I use Oracle 10.2.0.3.

    In the Execute to analyze the value of its pack stats report report, I get the negative value-35%. I read that this means that there are more number of parse as executions. But how and where it can be checked off, and what step I can take to resolve/correct this?

    I have a procedure 'a' who calls the procedure b, c and d in it.

    I have a table "t" that is referenced in the proceedings b, c and d (not in one)

    I've run a DDL on the table "t" where, by b, c and d invalid and in which cases invalidate the procedure as well.

    I call the procedure 'a' for execution, but in this procedure, I circumvent enforcement of procedures b, c and d (I can do this based on a condition and I don't call these procedures during execution of the procedure a).

    Then, when I call the procedure, it will be recompiled, but before he could be recompiled, oracle has recompile b, c and d as well.

    So in this case, I don't have that a single execution of procedure 'a' but compilation of a, b, c and d have run to analyze the ratio of 1:4.

    I hope you understand now. Which is why I suspect me that your procedures are be invalidated yet and still have several compilations.

    Salman

  • Validating data on the issue of Webforms

    Hello

    I put a data validation on an online form that will transform the Orange cell if the user enters a negative value.  However, she still accepts the negative value.  So technically they could leave and move.   Is there a way to block users to enter a negative value in a cell?  What is as close as you can get?

    Thank you

    Data validation cannot currently prevent the data actually saved.  (He has been asked several times.)  That said, you CAN prevent users to promote their data if the validation fails.

    Hope this helps,

    -Jake

  • Replace negative values of table 2d

    Hi all

    I have a large dataset I want for post processing... My data are in the form of a 2D array of typically 1e5 + lines by 100 + models! I want to replace all the negative values in the table with zeros.

    My initial was however to use two indexed for loops with a structure of matter inside looking for > 0 condition. However, this way I'm practically rebuild the table from scratch and it takes forever (had to give up after about 5 minutes of Calc, while I was still less than 10% of fact). I've attached a snapshot of my sample vi for your review.

    Is there a more efficient and faster way to do this?

    Thanks a lot for your time,.

    Harry

    There are many ways to do this, but in your case I would just wire table 2D to a primitive range and Coerce (from the palette of comparison) with the range of 0 to + infinity.

  • VALIDATION - function returns the error text

    I have a domain that occurs on about 12 pages, I need to post this field with some code

    I created a function on the database that performs this validation, I pass the field value to the function and it returns some text of error, or NULL if the value is correct

    I can't for the life of figure me out how to call the function of APEX

    I've tried everything

    FUNCTION RETURN ERROR TEXT, Expression SQL, PL/SQL Expression... nothing works!

    to call the function my comand is

    FN_VALIDATE_HR1_REF (: P1_GCI,: P1_HR1_REF);

    I want to return the error on the function text and display it in the banner of APEX error

    any help greatly appreciated

    A function like this return error text should work:

    Return (FN_VALIDATE_HR1_REF (: P1_GCI,: P1_HR1_REF));

    Is giving the error?

  • How can I design square wave which has a positive and negative values equal to the other and separated from each other by controlled time or distance

    How can I design square wave which has a positive and negative values equal to the other and separated from each other by controlled time or distance, as indicated in the figure below. and enter this signal in a data acquisition.

    At the time wherever you go for the beautiful diadram, you could have done the vi

    Your DAQ would like a waveform (table of values and dt ak 1/sampling rate)

    If you set the sampling rate you know the length of the array, create a matrix of zeros and set the values of the two amplitudes...

    Because I don't want to connect other duties here are some photos

    And it does have a few drawbacks leaves to be desired in my solution, just think... rounding errors and what might happen if the tables are becoming more...

  • Help compare the negative and positive values

    Well guys, I do this example to show you what I mean

    With this example, I can get positive and negative numbers in digital

    But for me, the 'negative' mean nothing

    Example:

    If I have "100-200" for me the biggest value is - 200

    But if I compare the values of bouth got 100 as greater value

    I do the same calc for 3 different variables such as A, B, C

    and after that I need to calc whose value is 'more '.

    But my problem is that if I have the values "-350 300-400.

    the largest will be "300", but for me the 'negative' mean nothing

    so I need to the largest value is "-400".

    For all positive values, its works very well!

    I compare A and B, after the highest is on C and have a result!

    but when I have negative and positive values... I had this problem...

    and when I have negative values only I have a problem too.

    '-300-400-500' for me the largest value must be "-500" but labview-watch "300".

    as - 300 is greater than-500 in algebriac.

    And if I use absolute values, I will always have a positive value... but I need to know if the value is positive or negative

    No matter which, can help me with this?

    Thank you

    Ben

  • DRM validation to check the existence of nodes in a different hierarchy as a property value

    Hello gurus,

    I have two hierarchies, named A and B respectively. I need to create a validation for nodes in A hierarchy that checks the value of a property such that the node must have the property value equal to any node name in the hierarchy B.

    Means that the values for this particular property for the nodes in A hierarchy must exist as a node in the hierarchy B.

    It would be very grateful if someone can give an idea to achieve this.

    Hello

    Try this in a type formula validation-

    NodeInHier (PropValue (Custom.PropName), B)

    This returns false if the value of the property is not a node in the hierarchy B and True if it's.

    So, you will get a validation message whenever the property is loaded with a value that is not a node in the hierarchy of B.

    Thanks, let me know

    Denzz

  • I'm not able to use the keyboard to type negative values in the mode of developing LR6. Whenever these negative values are reset to zero. Can someone help me?

    I use LR 6/CC 2015.

    Whenever I type in a negative fashion develop it is reset to zero after entry or tab.

    I type in positive values remain and are not reset to zero.

    In older versions of Lightroom, I had no such problems.

    I have an iMac 27 with Yosemite 10.10.3.

    Hope someone knows how to fix this annoying problem.

    Your LR is configured in one language other than English?  If so, this is a known bug.  See the remark made by Simon Chen employee under this post (you need to click on see more reviews to actually see): 6 Lightroom: Bug of negative values (in German).   The comment includes a workaround solution that is to edit a text TranslatedStrings.txt.

  • How to create a validation script that sets my value to a minimum of 1 (even if the calculation of the value is less than 1)?

    I use a notation simplified field to calculate the value

    (kg1 * 1.5) - diaporama1

    I want my value to only a minimum of 1 at any time, even if the actual value itself is less than 1

    Thank you!

    Add this code in the custom validation script:

    If (event.value<1) event.value="">

Maybe you are looking for