Validate from List property of dynamically attached LOV

Dear Oracle Gurus,
I have multi record block , the fields are Argument_name,Argument_Code ,argument_lov
displaying two fields . data is populated at run time
user has to input for the argument_value according to the argument_name displayed
it may look like
Argument_name Argument_value
Date of Join User has to input
Branch office user has to select from a LOV
Dept User has to select from a LOV
the LOV's underlying Select statement will fetch data from a table based on other field Argument_Code
The LOV is attached dynamically for each row based on a value for the field argument_lov value will be Y or N
IF value for a argumet is Y , the LOV is attached with SET_ITEM_PROPERTY in the When NEW RECORD INSTANCE Trigger
when user moves to the argument Date of join there will be no lov and the user has to type out the data
whereas for the argument Branch Office , user can select from a LOV
now the user has to press the F9 key to invoke the Lov and then select
whereas we wanted in this way.. that the user can type the first character and the value automatically get selected
if the user types wrong data then the LOV to be displayed
For this we used the SET_ITEM_PROPERTY with VALIDATE_FROM_LIST, Property_true in the same trigger.
we have record validation trigger at the block level .
But it didnt work out exactly when ever the user moves from a record having LOV after selecting. the other field which is not having a LOV displays a lov with values belonging to another field and asks to select from the list . For example the date of join field displays the lov for dept and asks to input
please guide me in this regard
with warm regards
ssr

But when table hav too many rows (here i hav 18000 rows) getting too slow....Is this problem is common...? Yes, this is common when you have a lot of rows returned by your LOV query. In situations like this, it is best to try and reduce the size of the data returned by your LOV. One way of doing this is to enable the Filter Before Display property on the LOV. When enabled, it causes Forms to display a query criteria dialog before displaying the LOV. This too can cause slowness because this option could cause a full table scan to occur. Perhaps a better option would be to make your LOV dependent on other limiting values. For example, if your Form showed a list of all employees in a company you could make your user select limiting data like a department number to help reduce the number of employee records returned by your LOV.
Craig...

Similar Messages

  • Forms 6i: Dynamically set Validate from List property

    Hi,
    Is there any API to set the VALIDATE FROM LIST property for an item with an LOV in Forms 6i?
    Thanks

    you can use set_item_property to do that dynamically. Look in the help for the values of the built-in

  • Validate from List Property

    i created a form and used validate from list property to TRUE for a particluar item which have LOV.But when table hav too many rows (here i hav 18000 rows) getting too slow....Is this problem is common...? If any one hve any idea about this Please help me...
    Edited by: pms on Sep 11, 2011 10:31 PM

    But when table hav too many rows (here i hav 18000 rows) getting too slow....Is this problem is common...? Yes, this is common when you have a lot of rows returned by your LOV query. In situations like this, it is best to try and reduce the size of the data returned by your LOV. One way of doing this is to enable the Filter Before Display property on the LOV. When enabled, it causes Forms to display a query criteria dialog before displaying the LOV. This too can cause slowness because this option could cause a full table scan to occur. Perhaps a better option would be to make your LOV dependent on other limiting values. For example, if your Form showed a list of all employees in a company you could make your user select limiting data like a department number to help reduce the number of employee records returned by your LOV.
    Craig...

  • Change validate from list property at runtime

    I am added below code in when-validate-trigger. But it is not working. Please do the needful.
    IF :PARAMETER.PARTY = 'N' THEN
         set_ITEM_property('B1.GJM_PRTY_CODE',lov_name,'LV_INS');
         SET_ITEM_PROPERTY('B1.GJM_PRTY_CODE',VALIDATE_FROM_LIST,PROPERTY_TRUE);
    ELSE
         set_ITEM_property('B1.GJM_PRTY_CODE',lov_name,'LV_INS');
         SET_ITEM_PROPERTY('B1.GJM_PRTY_CODE',VALIDATE_FROM_LIST,PROPERTY_FALSE);
    END IF;
    I am assigning :PARAMETER.PARTY := 'N' in when-new-form instance.
    I am changing :PARAMETER.PARTY valure when one button usrer press.

    902434 wrote:
    I am added below code in when-validate-trigger. But it is not working. Please do the needful.
    IF :PARAMETER.PARTY = 'N' THEN
         set_ITEM_property('B1.GJM_PRTY_CODE',lov_name,'LV_INS');
         SET_ITEM_PROPERTY('B1.GJM_PRTY_CODE',VALIDATE_FROM_LIST,PROPERTY_TRUE);
    ELSE
         set_ITEM_property('B1.GJM_PRTY_CODE',lov_name,'LV_INS');
         SET_ITEM_PROPERTY('B1.GJM_PRTY_CODE',VALIDATE_FROM_LIST,PROPERTY_FALSE);
    END IF;
    I am assigning :PARAMETER.PARTY := 'N' in when-new-form instance.
    I am changing :PARAMETER.PARTY valure when one button usrer press.test u'r parameter value inside the condition, how it is behave then u will understand what to do ...like
    IF :PARAMETER.PARTY = 'N' THEN
    message(:PARAMETER.PARTY);
    message(:PARAMETER.PARTY);
         set_ITEM_property('B1.GJM_PRTY_CODE',lov_name,'LV_INS');
         SET_ITEM_PROPERTY('B1.GJM_PRTY_CODE',VALIDATE_FROM_LIST,PROPERTY_TRUE);
    ELSE
    message(:PARAMETER.PARTY);
    message(:PARAMETER.PARTY);
         set_ITEM_property('B1.GJM_PRTY_CODE',lov_name,'LV_INS');
         SET_ITEM_PROPERTY('B1.GJM_PRTY_CODE',VALIDATE_FROM_LIST,PROPERTY_FALSE);
    END IF;hope this will help you

  • Validate from list pops up the LOV

    Hi, everybody.
    I have a text item attached to a LOV and the validate from list property is set to YES.
    Despite this, i just write into the text item the text '01' .
    Anytime i use go_block('my_block') the LOV pops up and asks me to choose again the value for my text item from the LOV .
    Is this because my text item is connected to the first column of the LOV and
    the first column of the LOV has more than one values of '01' in the list, more than one record that has the first column '01'.
    In case this is the reason, how can i solve this to avoid poping up of the LOV.

    Ok.But all i want to do, is not to show my LOV.
    If i set validate from list=NO, my LOV doesn't show.
    I still want to validate from list but only in the cases when i put a value that is not in the LOV.
    in this case i put a value that actually is in the LOV, so the LOV should not show.
    I don't understand why LOV shows when the value i put in the text item is equal to one of the values of the LOV, only that the LOV contains this value more than one time.

  • Validate from list

    Hello everybody !!
    I've a Lov attached to text-item with validate from list property "yes". I fill the text-item who has the lov attached and lov works very well , but when I create another record the trigger "when-validate-record" fires and the lov validate once again for the same record. How can I avoid this ?
    Hugs
    Rômulo

    You probably set the name of the country in the POST-QUERY trigger. If so, set the status of the trigger record to QUERY_STATUS after doing this.
    Regards,
    Torsten

  • Validate from list, do not open lov if value already in lov

    Hi,
    I have an item and want to validate value from Lov because do not need a code in w-v-i trigger. i set property validate from list for the item to yes but when executing the lov opened even if i entered a value which already exists in lov. i thought that validate from list to yes triggers the list only if value do not exist in the list. i do not want list to open if value already exists in the list. Can someone help me with this? Thanks for your ideas.
    Edited by: Tabit7 on 2011-04-08 23:24
    Edited by: Tabit7 on 2011-04-08 23:24

    It only opens the Lov when the value not not unique, e.g. you have two equal entries in the lov. Also be aware that the validation is done against the first visible item in the lov.

  • LOV validate from list

    Hello there,
    What factors can be performed for don't validating from list, when having a text item conected by a botton which calls the LOV?
    My problem is that I conect properly the text item to the LOV and the LOV to the Record group. At the text item's properties palette, i put YES when asking if validate from list. However, in an enter-query mode, when i insert 'AAA' into the text item, and change the focus, the LOV doesn't appear.
    Why?
    Thanks to everyone who helps me.
    Sorry for my english, i am spanish.

    Those other forms use a different form of querying. They probably never go into Enter Query mode, and instead simply query with a where clause something like:
        WHERE column_1 = :control_block.item_1 and...
    All the forms I write use that format. The user is never allowed to do an Enter Query. They simply enter the control block values (which may or may not have an LOV attached), and then press the Query button.

  • Validate from list problem

    I have a form in which i have a non-database item.I attached a LOV to it and have set the validate from list to yes..
    but in enter-query mode the list is not getting shown when the value is typed(ie the lov is not shown when the user enters wrong value.validation is not hapenning)
    i have even written key-listval.inside which i have given list_values still the LOV is not shown
    Any suggestions to get the LOV???

    Hi,
    You can try to use the when validate-item trigger, which executes when the cursor navigates out of an item, this happens when user press the tab key to navigate to the next item or when clicking in a different item.
    Validate from LOV works without any additional code when the form is in normal mode.
    When the form is in enter-query mode this won't work, try the key-next-item trigger instead.
    check out the forms online help section:
    "About defining triggers to fire in Enter Query mode" for more info.
    Regards,
    Hugo

  • Validate from list behavior ? help needed

    Hi,
    I have an item whith a lov attached to and the proerty of the lov is validate from list = yes.
    But when a create a record and type the begining of the words eg Jean then when i do key-list-val or F9 the lov returns me all the rows and.
    And when i press enter in the field then the lov shows with Jean% and show me only the names beginning with Jean.
    Why does it only happen when i press enter and not when doing F9?
    Should it not be the same behavior ?
    Thanks in advance.
    PS: it is quite urgent !
    Jean-Yves

    Hi ,
    When you enters a wrong value into a "Validate from List" Item and hit <ENTER> then validation to make sure that the entered value exists within the List and if it is not there , then the forms engine filters the Shows values as the value entered into the Item as helping you to select from the List cause you have entered ambigious Choise and in case no matched entries it display all the list , but in case you display the LOV normally this means you are trying to select a value then no Pre Serach happened unless you specify (Filter Before Display = true) on the LOV properties ,
    Best Regards,

  • Validate from list (Oracle Forms)

    Hi all,
    Does anybody know, how to simulate "Validate from List" functionality from the oracle forms with JDeveloper 10.1.3.
    The case is for example (Empl, Dept), I want to create a table for the empl showing the empl info plus department name and allow the user assign the empl to a given department using only the name and not the department id.
    Many thanks in advance.
    Edited by: user5772728 on Feb 20, 2009 8:56 AM

    Hi,
    there is no list validator like this I am aware of.
    Frank

  • LOV Validate from list Issue!!!

    When the form is in 'Enter_Query' mode, the lov will not validate information entered into the fields. When I cancel the query, the information entered in the fields is then validated against the lov correctly. Is there a way to remedy this?
    I did set the validate_from_list property to true and it had no effect.

    Validate_From _List property is only helpful during data entry.  During enter-query mode, the user is searching records using a qualifier.  If the user wants to make sure that his qualifier is valid, he should press the function key to display the LOV.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Validate Form List Propert of an Item

    Hi all,
    i have Problem in AR Module , when i Enter the Invoice in AR i Select the Memo Line and then go in an other Line and use the key Shift+F5 on Description Field and enter same Memo Line , but the Problem is it does not enter Memo Line id and Record is Save , i need to Set Validate from List Property on Permently basics True but it does not update the Property Permently.
    Thanks

    Unfortunately, I have no code. But if you search this forum you will find examples of how to loop through the elements in a list item. As each element is retrieved you can execute an update or insert into the desired table. This code can go inside a pre-commit trigger.

  • Deleting duplicate from list

    What is the easy and fastest way to delete duplicate from
    list.
    My dynamic list is pretty small. Need to loop through and
    delete duplicate and give unique item list.
    We don't have a CF function yet?.

    What do I think? Well - I think your code has a few problems:
    1) It's not very re-usable
    2) It's not very easy to read (variables are named poorly)
    3) It's introduces unecessary usage of complex data types
    (structs)
    4) Functionally, it does not preserve the sort order of the
    original list.
    To elaborate on #4 above....once you have your list values
    stored as "keys" in a struct, you lose the original order of the
    list. Keys in a struct are completely unsorted. A call to
    StructKeyList will return a list of keys, with no guarantee on the
    order of the keys returned. The order in which the keys are
    inserted makes no difference. Once all of the keys are defined in a
    struct, they are all essentially un-ordered indexes.
    If order is not important to you for this particular usage,
    than you shouldn't have anything to worry about. Functionally, your
    code WILL work. But my honest opinion is that there are many
    "better" ways to approach this (see the example UDF I attached
    previously).
    Please bear in mind I'm not trying to be mean here, just
    offering some constructive criticism.

  • I need to validate Input List Of Values Field when Inserted From Bean

    I've two view object EmployeeView and DepartmentsView
    In Employee View I've changed Department_Id to Input List OF Values
    I've created a bean to inset data into Employee Table
          ApplicationModule am = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
          ViewObject importedVO = am.findViewObject("EmployeesView");
    try {
                newEmp.setEmployeeId(new Number("3424));
                newEmp.setFirstName("Test Fname");
                newEmp.setLastName("Test Lname");
                newEmp.setEmail("[email protected]");
                newEmp.setPhoneNumber("4643131345");
                newEmp.setJobId("AD_VP");
                newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));
                 } catch (Exception e) {
                // TODO: Add catch code
                System.out.println("inside Catch");
                e.printStackTrace();
            }I know that ADF validate Input list of values when inserting new value on it
    when I've enabled the debugger I've found that
    <ViewObjectImpl><buildQuery> [604] SELECT DepartmentsEO.DEPARTMENT_ID,         DepartmentsEO.DEPARTMENT_NAME,         DepartmentsEO.MANAGER_ID,         DepartmentsEO.LOCATION_ID,         DepartmentsEO.ISDELETED FROM DEPARTMENTS DepartmentsEO WHERE ( ( (DepartmentsEO.DEPARTMENT_ID = :vc_temp_1 ) ) )
    <ViewObjectImpl><bindParametersForCollection> [605] Bind params for ViewObject: [com.test.model.views.DepartmentsEOView]AppModule.__LOCAL_VIEW_USAGE_com_test_model_views_EmployeesEOView_DepartmentsView_findByVC_12_LOV_DepartmentId_lov__filterlist__vcr___
    <OracleSQLBuilderImpl><bindParamValue> [606] Binding param "vc_temp_1": 999
    <ViewObjectImpl><processViewCriteriaForRowMatch> [607] VCs converted to RowMatch:  ( (DepartmentId = :vc_temp_1 ) )
    <ViewRowImpl><handleListBindingMismatch> [608] No matching row found for list binding:LOV_DepartmentId for ViewRow:oracle.jbo.Key[34235 ]
    <ViewRowImpl><handleListBindingMismatch> [609] --- filterList ValueMap key:DepartmentId, value:999
    <DCBindingContainer><internalRefreshControl> [610] **** refreshControl() for BindingContainer :com_test_view_testInsertPageDef
    <JUCtrlHierNodeBinding><release> [611] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_2, value:EmployeesViewIterator
    <JUCtrlHierNodeBinding><release> [612] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_2, value:EmployeesViewIterator
    <DCIteratorBinding><releaseDataInternal> [613] Releasing iterator binding:EmployeesViewIterator
    <ApplicationPoolMessageHandler><doPoolMessage> [614] **** PoolMessage REQ ATTACH LWS
    <ApplicationPoolMessageHandler><doPoolMessage> [615] **** PoolMessage REQ DETACH LWS
    <DCJboDataControl><initializeApplicationModule> [616] (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode = Immediate
    <DCBindingContainer><internalRefreshControl> [617] **** refreshControl() for BindingContainer :com_test_view_testInsertPageDef
    <DCBindingContainerState><validateToken> [618] Process BindingContainer state token(decompressed state):BCST:=0%V%=NEmployeesViewIterator=-D-,
    <this means that ADF tries to validate the input list of values "Department_Id" and didn't found any match
    I need to through exception when I try to set Department_ID with invalid value "value not on range" like
    newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));I don't want to validate it manually as I've a lot of fields.
    I need to through exception when try to
    newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));

    Thanks Timo
    this is the code that I use
          ApplicationModule am = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
          ViewObject importedVO = am.findViewObject("EmployeesView");
          EmployeesEOViewRowImpl newEmp = (EmployeesEOViewRowImpl)importedVO .createRow();
          importedVO .insertRow(newEmp);
    try {
                newEmp.setEmployeeId(new Number("3424));
                newEmp.setFirstName("Test Fname");
                newEmp.setLastName("Test Lname");
                newEmp.setEmail("[email protected]");
                newEmp.setPhoneNumber("4643131345");
                newEmp.setJobId("AD_VP");
                newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));
                 } catch (Exception e) {
                // TODO: Add catch code
                System.out.println("inside Catch");
                e.printStackTrace();
            }

Maybe you are looking for

  • Garageband is missing some loops! HELP!

    I created a song on garage band at my uni using their computers, i put it onto mine at home and am missing loads of loops! i have the newest version of garageband how can i get more loops? or simple get the ones that im missing??? HELP PLEASE it's fo

  • Unable to see 2nd and 3rd pages on the report

    Hi - I am facing an issue while developing a simple report. This report is based on a table called PROD. DDL statement of PROD is: CREATE TABLE PROD    (PID VARCHAR2(6),     PNAME VARCHAR2(6),     PCOST NUMBER(4,2),     PPROFIT NUMBER(3,0),     CONST

  • URGENT HELP! iMovie Crashing after when Analyzing video

    Hi there, I have been working for weeks on a large project and all of a sudden when I try and analyze any more video files iMovie just crashes. I would appreciate any help on rectifying this. Thank you! Running on: 13' MacBook Pro 2.53 GHz 4 GB 500 G

  • Can't update InDesign CS6 v 8.0 to v 8.0.2

    When I try to update Indesign CS6 from 8.0 to 8.0.2 it takes me to the Application Manager, but the AM says all my CS products are up to date. So i tried downloading the patch separately, and it says it's not applicable. So actually, the AM won't sho

  • Can't trash files on Windows Server

    I have several .mov files that I created and copied to a Windows server on the network for viewing by my associates. But once they view them I can't trash them. Every time I try I get an error that says "The operation cannot be completed because you