Validate field value against LOV in JClient

Hi,
I have wondered is it possible when i have a LOV attached to a textfield or column from JTable to validate entered value against values in LOV. I mean when i enter wrong value in field, automatically to invoke LOV panel when the field lost focus.
Thanks in advance!

Hi,
this is currently not a feature available in JClient. We are evaluating this as a new feature in a next version fo ADF JClient (which will be named ADF Swing then)
Frank

Similar Messages

  • Validate a value against table validation value set within PL/SQL

    Hi,
    I am trying to import price list lines along with Pricing attribute values.
    I have to validate the uploaded values against the pricing attribute value set, before I import them into base tables.
    Value set defined is of type table validation.
    I wanted to know if there are any public APIs that can be used to validate the value against the Value set values within my PL/SQL procedure
    Also please point me to documentation that lists various public PL/SQL APIs
    Regards,
    Mrutyunjay

    You can find functions and procedure for Value sets in packages FND_FLEX_VAL_API or FND_FLEX_VAL_UTIL.
    Example : get_table_vset_select gives you the select statement of your value set. Executing this statement will allow you to validate your values.

  • Validate field value is number or varchar

    Hi All,
    I want to validate field's value is number/varchar by single line query. is it possible?
    e.g.
    select is_number(fieldval, 'Number','Varchar') from dual;
    Thanks in advance.
    - Hiren Modi

    Hi,
    If you cannot use regexps (due to your DB-version perhaps) you could do something like:
    MHO%xe> create table t as (
      2  select 'YES' col from dual union all
      3  select 'NO' from dual union all
      4  select '1' from dual union all
      5  select '2' from dual union all
      6  select '3' from dual union all
      7  select '4' from dual union all
      8  select '5' from dual union all
      9  select '6' from dual union all
    10  select '7' from dual union all
    11  select 'NO' from dual union all
    12  select 'YES' from dual union all
    13  select 'ABCED' from dual union all
    14  select '33' from dual union all
    15  select '5699' from dual union all
    16  select 'KPKHIH' from dual union all
    17  select 'ASDFSDAFSD' from dual union all
    18  select 'ASDFASDFSDFSDFSDAFASD' from dual union all
    19  select '212121' from dual union all
    20  select '9689898' from dual union all
    21  select '6545454' from dual union all
    22  select '212121' from dual union all
    23  select '5745757' from dual union all
    24  select '9857441969*' from dual
    25  );
    Tabel is aangemaakt.
    MHO%xe> create or replace function is_number( p_string in varchar2 )
      2  return varchar2
      3  deterministic
      4  as
      5    l_num number;
      6  begin
      7    l_num := p_string;
      8    return 'Number';
      9  exception
    10    when others then return 'Varchar2';
    11  end;
    12  /
    Functie is aangemaakt.
    MHO%xe> select col, is_number(col) dtype from t;
    COL             DTYPE
    YES             Varchar2
    NO              Varchar2
    1               Number
    2               Number
    3               Number
    4               Number
    5               Number
    6               Number
    7               Number
    NO              Varchar2
    YES             Varchar2
    ABCED           Varchar2
    33              Number
    5699            Number
    KPKHIH          Varchar2
    ASDFSDAFSD      Varchar2
    ASDFASDFSDFSDFS Varchar2
    DAFASD
    212121          Number
    9689898         Number
    6545454         Number
    212121          Number
    5745757         Number
    9857441969*     Varchar2You could index is_number as well.
    See: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:15767849694647

  • Validate Multiselect List Against LOV

    I am trying to validate what a user has selected from a multiselect list. I want to make sure the user selections are within the values of a particular LOV. I have been trying to come up with a good way to do this, but I am stumped. Does anyone have any suggestions?

    Kevin,
    More details are usually a good idea. You might want to use htmldb_util.string_to_table on the submitted multiselect item in an after-submit process to loop over the selected values and check them against whatever criteria you have.
    Scott

  • Validate input value against database

    Is it possible to check the value of an input field (regular input, not cfinput) against a database to check for duplicate values?

    Probably.

  • Validate input value against calculated value

    Hi Chaps,
    Need a bit of guidence with some PHP code.
    I have a Query that estimates a quote ($price_total) for a job.
    The estimate ($price_total) is the value of an input (jobquote), and the database is updated once the form is submitted (using a seperate script.php page).
    What I need, is to validate the entered value of 'jobquote' against the estimated value of $price_total, just incase a 'custom' price has been agreed with a customer.
    If the values are different, then I need an 'admin override' radio button (admin_quote enum('y','n')) to appear.
    If someone can help or point me in the right direction, I'd be most grateful.
    Cheers

    Got a bit further:
    PHP Code:
    <input type='text' name='jobquote' value="<?php echo $price_total; ?>"/>
            <input type='hidden' name='original_jobquote' value="<?php echo $price_total; ?>"/>
            <?php
    if ($_POST['original_jobquote'] != $_POST['jobquote'])
    { ?>
    <span id="spryradio1">
    <input type="radio" name="jobquoteadmin" value="y" id="radio" />Confirm<br />
    <span class="radioRequiredMsg">Please confirm Admin Override</span></span>
    <?php };
    ?>
    Problem 1. The information is '$_POST'ed to a script file, not to the page itself and at the moment, the $_POST takes place before the PHP validation takes place. If I remove the link to the script page, the validation works.
    Problem 2. (link to script removed for testing) If I change the value (from the default 'original_quote'), then submit, the page reloads, the 'Confirm' radio button appears, but the value of 'job_quote' has reverted back thte default:
    1. Start - job_quote = £350
    2. Change - job_quote = £100
    3. Submit
    4. Page reloads - job_quote = £350, confirm appears
    Is there a way around this?

  • API to validate a value against a value set

    I have a 'Table' Value Set based on the MTL_CATEGORIES_V view, and need to validate some loaded data against it to check the loaded values are are valid. Rather than use a cursor to perform a lookup of the value in MTL_CATEGORIES_V, is there an API that can be used instead?
    I thought I'd found something when I discovered "FND_FLEX_VAL_UTIL.is_value_valid", but this seems to just check that a value meets the criteria of the valueset based on the datatype. size, hi-lo range etc, it doesn't check if the value is actually permitted within the set.
    Andy

    Hi,
    you can use fm FM_DOMAINVALUE_CHECK. Pass parameter values for I_DOMNAME and I_DOMVALUE.
    If the value is invalid, exception VALUE_NOT_ALLOWED will occur.
    Regards,
    Klaus

  • Validation of a form field value against existing values in database tables - urgent.

    Hi,
    I have created a "form based on a table". Is there a way of validating the fields entered by checking that they are valid values existing on another table in the database? So if they are not valid values, the data would not be inserted and an error would be flagged to the user.
    I have not yet been able to find any questions on this forum which deal with this exactly.
    Thanks,
    Steve.

    On Insert button try following (change to your requirement),
    declare
    usr_id varchar2(100) := portal30.wwctx_api.get_user;
    usr_name varchar2(100);
    my_deptno number(10);
    begin
    my_deptno := p_session.get_value_as_NUMBER(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_DEPTNO');
    usr_name := null;
    begin
    select ename
    into usr_name
    from emp
    where dept=my_deptno;
    exception
    when others then null;
    end;
    if usr_name is null
    then
    htp.p('<script> alert("Dept wrong"); </script>');
    else
    doInsert;
    end if;
    end;

  • Function Module to validate a value against domain fixed values

    Hi,
    Could anybody please let me know if there is a standard Function Module that takes a Value and Domain name as an input and checks if the input value exists in the Fixed Values of the domain.
    Thanks,
    Shalabh

    Hi,
    you can use fm FM_DOMAINVALUE_CHECK. Pass parameter values for I_DOMNAME and I_DOMVALUE.
    If the value is invalid, exception VALUE_NOT_ALLOWED will occur.
    Regards,
    Klaus

  • Verify a value against value set

    Hi,
    I am trying to import price list lines along with Pricing attribute values.
    I have to validate the uploaded values against the pricing attribute value set, before I import them into base tables.
    Value set defined is of type table validation.
    I wanted to know if there are any public APIs that can be used to validate the value against the Value set values within my PL/SQL procedure
    Also please point me to documentation that lists various public PL/SQL APIs
    Regards,
    Mrutyunjay

    Hi,
    You can query the fnd_flex_values or fnd_flex_value_segments_vl to find the name of the value set defined.
    Another point is that the Value Set is defined of validation type Table so the values are dependent on the base tables.
    There are no such API's to cater the need for Verfying a Value against a Value Set.
    If u want to search for public API's go to the metalink.
    Regards

  • Not validating against LOV if the field is not null

    hi all,
    i am using form6i.
    i have two fields called p_code,p_doc.
    p_code is optional and p_doc is mandatory. Both the fields is having LOV. Based on the p_code, p_doc should be filtered.
    both fileds i have given validate_from_list true.
    if user entered some values and processed after that without clearing the fields(p_doc) if user enters the data p_code the values in the LOV for p_doc is filtering(refreshing) but the value is not validate against the LOV.
    that means
    p_code p_doc
    aa 123
    bb 456
    first time for the code 'aa' the p_doc value was 123. now again user entered bb so that in the lov p_doc 456 is present but in the item still 123 is there. If user press the ENTER or TAB the cursor is going to next field with out valudating the value in the p_doc(old value is 123 but it should replace by 456) but is not showing any error also.
    if my requirement is not clear.please let me know.
    Thanks..

    Because the value in P_DOC is not getting validate. How about trying the below code in WHEN-VALIDATE-ITEM trigger of P_CODE
    :P_DOC:=:P_DOC;-Ammad

  • How to set value from LOV only as a default reference not enforce validate check?

    In jdev 11.1.2.3,
    By creating  List of Value(LOV) for an attribute of a VO, I can get default value for the current VO's attribute from the lookup table, but it will also enforce a validate check for that value.
    If I input a value which is not in the lookup table, then errors will raised.
    Now I hope I can get default value from LOV, and can also input some new value (and this new value can be insert into the lookup table by a database trigger) for the attribute/field without failure to pass the check.
    Any one can help?
    Thanks!

    Hi, Arun
    Your suggestion let me get to know how to create a new record in the customeActions facet of inputComboBoxListOfValues, which I donot know before. It's great. and thank you very much.
    However, my current issue is a different requirement, let me describe it clearly as:
    I have a formlayout to input a field value which can be from a lookup table, or if this value is not in the lookup table then it can also be input without raising value validation check failure.and this new value can be added to the lookup table at the same time.
    for example, there is a FK attribute deptno in the EMP table, in a form for editing EMP attributes, user can input deptno value which is already in the DEPT lookup table by selecting from a LOV. also can input some new value which cannot be selected from the LOV, and this new deptno value will be posted to database both in EMP and DEPT table.
    The issue is, after create a LOV for deptno attribute in EMP VO, there will be a enforced value validation check, so new values cannot be input in EMP unless it is input into DEPT first.
    (http://docs.oracle.com/cd/E37975_01/web.111240/e16182/lists.htm#BABBJFBB)
    List of values are designed to return valid values only. As a result, validation rules defined on data source view object attributes will be suppressed.
    My question is: how to disable this enforced value validation for a LOV-enabled field?
    (There is other means to ensure user will input valid value for this field, for example ask him to double input.)
    Thanks again!
    bao

  • Unable to return value from LOV to the text field

    I have created the LOV and attached in the database text item. I have done the mapping to the require field in the LOV properties and I was able to show the LOV whenever reach that field by press F9 with all the records in my query. However, when I try to press enter to select one of the data in the LOV screen, the data was not return to the column which I have defined the LOV. What's wrong with this ?
    Regards,
    Lim

    Lim,
    Check is there any KEY-LIST-VAL trigger has any code. And Also check by assigning the same value to a dummy item for testing.
    Regards,
    Manu.

  • Not able to find values in LOV of field "Help Desk" of Global contract

    Not able to find values in LOV of field "Help Desk" of Global contract defaults.
    This value should be coming from resource setup.
    Resource is already created.

    Issue resolved:
    The resource should ahve valid Email id in HR People setup

  • Check or Uncheck a messageCheckbox field depending on a LOV field value

    Dear Gurus,
    Please let me know if we can check or uncheck a check box field based on a value in LOV field in a OAF Page. I need to know if we can do this without touching the code in controller, is it possible? Please provide your valuable thoughts.
    The requirement is something like say, if X is a value in LOV, we need to check the checkbox else we need to uncheck the checkbox
    Thanks in Advance,
    Affy

    You could try workaround. Not sure whether this is feasible in your case.
    You need to modify (add a new column) the LOV query something like this :
    select decode(<column_name>, 'X','Y','N') checkbox_value,
    from .....
    where ....
    Make sure that the checkbox checked value = 'Y' and unchecked value = 'N'.
    Set this attribute as the return item to the checkbox.
    Cheers
    AJ

Maybe you are looking for

  • Why fail to call third party funciton in DLL via JNI but workable in C++?

    Hi, I need someone help me here. I like to call a function in third party A.dll which is from PowerBuilder App by Java. So first I worte C++ code to call A.dll for the function to confirm: String feGetMM( String a); I worte code like here in C++: typ

  • Mapping Programming in XI

    when I deploy a sap jca adapter in XI, it require s a mapping program, can I omit this mapping program, I just want to deploy sap sample adapter as sender, then use file adapter as receiver. I don't need any mapping. hope help from you

  • Heirarchical Fetch using SQL or enchanced SQL

    The mapping of the tables is such that : Table A - Composite filter [Child Table - holds only the ids] Table B - Event Filter [Master Table - holds all details about the filter] Table C - Event Discount Table D -Tariff element Discount Table E - Prod

  • IPS strange behaviour ?

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-

  • I already have installed miniSAP, can I install NetweaverPreview as well?

    I already have installed miniSAP (6.4), can I install NetweaverPreview as well? miniSAP uses sql server, what does the preview use? Viresh