UI for LOV

Now that I understand that I need to control the settings for a Field Item from within the ITEM options..... I have working drop down select lists.
But now I'd like to go to the next level.
For a form entry, I'm not a fan of drop-downs or popups, since they require me to change from keyboard to mouse.
I prefer to type in the field, and have entry autofilled as I type - (and have the entry be validated).
1. Do I set that from:
a. the field definition in the SQL workshop for the table? as a constraint?
b. the item condition? as a type: Exists (SQL query returns at least one row)
c. elsewhere
2. Further, I would like to know how to do it in 2 flavors:
a. restrict entry so that it MUST be one of the specified items (ie, static); and if entry is not one of the specified items, then a pop-up window can give me the permitted list to choose from
b. autofill based on list, but permit new items to be added on the fly
Thank you -
Marion (eagerly awaiting the 2 apex books I ordered on Saturday)

Marion
There are a number of ways the can be achieved.
The default select list will recognise the first letter typed and jump to that in most browser's. For full lovely autofill - you should visit Denes Kubicek's demo application. I believe he has demonstrated this will full instruction.
Oh, and happy reading!
Cheers
Ben

Similar Messages

  • PL/SQL code problem for LOV

    Hi,
    I have developed an application using Apex 4.0
    Now, i am trying to make a LOV for two columns in my table. Say column A and column B.
    Column A has four different values under it say x,y,z,w and column B has around 3 different values say 1,2 and 3.
    How do i write a code for LOV for A and B.
    SO that it shows me a drop down list for each and then display results accordingly.
    Thanks

    user13280446 (mind setting your name?),
    The fix for this error is to find the subquery in your SQL that's returning more than one row; generally, you'll want to fix the subquery to return only one row, though in some rare situations it's appropriate to change an = to an in clause.
    Example:
    select *
    from a_table a
    where a.col1 = ( select b.col1
                     from b_table b
                     where b.col2 = 42 );Unless b.col2 is guaranteed to be unique (either PK or enforced through a unique constraint), sooner or later that subquery is going to return more than one row, producing the error you're seeing. These variations will all avoid this, though which one (if any) is/are correct is dependent on the data:
    select *
    from a_table a
    where a.col1 = ( select min(b.col1) -- Ensure one row returned
                     from b_table b
                     where b.col2 = 42 );
    select *
    from a_table a
    where a.col1 in ( select b.col1
                     from b_table b
                     where b.col2 = 42 );
    select a.*
    from a_table a,
        b_table b
    where a.col1 = b.col1
        and b.col2 = 42;This is a very contrived example, of course, but without seeing the SQL for your LOV, we can't be any more specific than that...
    -David

  • Custom code for LOV generation in Custom.pll

    Hi All,
    I am using the custom in my custom application, I am using the following procedure in Custom.pll for LOV generation. When I use the same procedure standalone then it's working fine, But when I use it in Custom.pll then it's giving me the Error "No-Data-Found", please let me know what to do. I am assuming that it can't find the appropriate backend table, I am logging in through sysadmin/sysadmin, Also I have fully followed the procedure for Table registration and Synoym creation and assiging it to apps but even then it's giving me the above mentioned error.
    procedure event(event_name varchar2) is
    rg_id RECORDGROUP;
    query_string VARCHAR2(2000);
    crnt_item VARCHAR2(60) := name_in('SYSTEM.CURSOR_ITEM');
    crnt_type VARCHAR2(30) := GET_ITEM_PROPERTY(crnt_item, DATATYPE);
    -- Omit crnt_hint if not context sensitizing the LOVs.
    crnt_hint VARCHAR2(30) := SUBSTR(GET_ITEM_PROPERTY(crnt_item,
    HINT_TEXT),
    INSTR(GET_ITEM_PROPERTY(crnt_item,
    HINT_TEXT), ':') + 2);
    begin
    IF event_name = 'WHEN-NEW-BLOCK-INSTANCE' THEN
    IF (form_name = 'FRM_EXPATIENTMASTER' and block_name = 'REG_EXPATIENTMASTER' and item_name = 'DEFENCECODEFK')
    then
    crnt_item := SUBSTR(crnt_item, (INSTR(crnt_item, '.') + 1));
    query_string := 'SELECT DISTINCT reg_defencecategory.defencecodepk'
    || ' AS holder_value '
    || ' FROM hms.reg_defencecategory'
    || ' ORDER BY 1';
    IF NOT ID_NULL(FIND_GROUP('generic_lov_rg')) THEN
    DELETE_GROUP('generic_lov_rg');
    END IF;
    rg_id := CREATE_GROUP_FROM_QUERY('generic_lov_rg', query_string);
    SET_LOV_PROPERTY('generic_' || crnt_type || '_lov',
    GROUP_NAME, rg_id);
    IF FORM_SUCCESS THEN -- >From "IF" to "END IF" may be omitted
    -- if not context sensitizing the LOVs.
    SET_LOV_PROPERTY('generic_' || crnt_type || '_lov',
    TITLE, 'Available ' || crnt_hint || ' values');
    SET_LOV_COLUMN_PROPERTY('generic_' || crnt_type || '_lov',
    1, TITLE, crnt_item);
    END IF;
    LIST_VALUES;
    /* IF name_in('control.holder') IS NOT NULL THEN -- Holder is set to null in Lov_Btn WBP trigger
    COPY(name_in('control.holder'), crnt_item); -- Depends upon implicit conversions for non character
    -- datatype values (in this example, NUMBER and DATE). Create a 'holder' for/of each datatype
    -- required to avoid implicit conversions.
    END IF;*/
    end if;
    end if;
    exception
    when no_data_found then
    message('No Data Found, try Again');
    null;
    end event;

    Hi John,
    I got the same issue. Is yours being resolve yet?
    Can you share the solution.
    Thanks.

  • Regular expression for LOV?

    I have a list of strings in an LOV. I tried filtering it by typing in "^disk" in the search bar, which I hope will return a list of strings starting with "disk", but I failed.
    Any idea on how to use regular expression for LOVs? Thanks!

    HI Buffalo,
    i have a select list item in my page1 named :P1_EMPNAME with lov query value
    select ename as d, ename as r from emp WHERE EGEXP_LIKE(ename,:P1_SEARCH) or :P1_SEARCH IS NULL
    i have a Search text box in my page1 name :P1_SEARCH
    When i run the page, by default all the empnames will display in the lov list item
    i have given ^buffalo in the text seach item and clicked the submit button ,it shows the Employee buffalo in my list item lov.
    If you want all the entries that start with S, search for ^s
    End with R, use r$
    please try this link http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28424/adfns_regexp.htm
    Thanks
    Logaa

  • How to change the button lable for LOV ??

    when you press for lov you will get this LOV pop up. At the pop up, there are button , CANCEL,OK and FIND. i want to change to different word.
    any idea...how to do it.
    hairol

    see.. this is my problem,
    i'm writing a program to be used by users who don't speak english. I can change the prompt, lable and since the character set used is similar to english and that language is not supported so we use english.
    the problem is that these three button cannot display correct word for it. so my application will become half english and half other language.
    It believe it looks ugly.
    can't oracle do something to solve this problem.
    hairol

  • 9915467377 Powerful B l a c k Magic White Magic for Love Spells +91-9915467377

    1. Advice for HEALTH PROBLEMS.
    2 Advice for LOVE LIFE.
    3. Consultation for CHILD.
    4. Advice for FAMILY PROBLEMS.
    5 Advice for .PROMOTION IN JOB.
    6 Advice for.DOMESTIC CONTROVERSY.
    7 Advice for.LOVE.
    8.FOREIGN TRAVELING.
    9.DREAM PROBLEMS.
    10. Advice for BUSINESS LOSSES.
    11. Advice on Disturbed love life

    Welcome!
    You may wish to adjust your computer description based on this line from your log:
    Model: iMac11,1, BootROM IM111.0034.B02, 4 processors, Intel Core i7, 2.8 GHz,
    Instead of an iMac G5, you have an Intel iMac--and a very nice one--that is newer and more capable than the G5 iMacs. If you leave the old description and have a hardware question later, people could give you inapplicable advice because they think you have an older model.
    Doesn't apply to your current Safari issue--that is not machine-specific--just a heads-up for future postings.

  • Problem setting initial value for LOV

    Hello, everyone. This seems like it should be simple, but it's giving me lots of problems. I am trying to create my first LOV. I have a messageLovInput item called PFedFilingStatus. From the Property Inspector, I can set an Initial Value of "02", which displays when I run the page, and lets me change it and validate it using the associated LOV.
    What I would rather do is set the initial value programmatically, but here are my problems:
    If I set the value like this:
    OAMessageLovInputBean lovText = (OAMessageLovInputBean)pageLayout.findIndexedChildRecursive("PFedFilingStatus");
    lovText.setText("02");
    then the field displays properly at run time, but can't be changed. The LOV runs, but any value I select flips back to "02"
    If I set the value like this:
    lovText.setDefaultValue("02");
    then nothing seems to happen at run time. The value is not displayed at all.
    Can anyone tell me what I am doing wrong? Thanks for your help.
    --Dave                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Yes, that helps a bunch. Now can you tell me where that is set?
    Thanks so much.
    --Dave                                                                                                                                                                                       

  • Can I have a PL/SQL code for LOV

    Hi,
    I apologize for this dumb question. I have been so out of touch with dev (almost 8 years). Plus new to pl/sql.
    I am creating a status report application. On the dashboard, I currently have some metrics (horizontal charts). I wanted to expose these metrics based on filter.
    I had created 2 filters. The first one will identify the type (Week, Month, Qtr or Year) and the 2nd filter would be based on the type. For e.g. if I select Month as type, the 2nd filter should show May-12, April-12 etc. Once I select the 2nd filter, I should use them to show the appropriate metrics. The metric that I currently have would show all the projects that users have worked on during the week/month/qtr or year (depending on the 1st and 2nd filter).
    On the dashboard region, I added a condition to check if the value for both 1st and 2nd filter is not null. This allows me to show the dashboard only if the 2 filters have been selected.
    For the 2nd filter, I need to write a PL/SQL code to show the LOV.
    I am assuming that the pl/sql would return a SQL query. The SQL query will be based on week, month etc. Is that right?
    Thanks
    balaji
    Edited by: user644868 on May 17, 2012 11:29 AM

    rbalaji2026 wrote:
    For the 2nd filter, I need to write a PL/SQL code to show the LOV. Doesn't appear necessary. With filter 2 cascading from filter 1, why not:
    select
            /* Week query */
    from
    where
    and     :p1_filter_1 = 'WEEK'       
    union all
    select
            /* Month query */
    from
    where
    and     :p1_filter_1 = 'MONTH'       
    union all
    select
            /* Quarter query */
    from
    where
    and     :p1_filter_1 = 'QUARTER'       
    union all
    select
            /* Year query */
    from
    where
    and     :p1_filter_1 = 'YEAR'       

  • UI defaults for LOV on report not working?

    Hello,
    I have a table called CUSTOMERS and an associated lookup table called DISCOUNT (each customer is associated to a discount level).
    I defined a complete set of UI-defaults for CUSTOMERS, containing a LOV-definition for the column DISCOUNT_ID (which is the FK to DISCOUNT).
    I specified that DISCOUNT_ID is to be "displayed as text(based on LOV)" as a report default.
    APEX (3.1.2) seems to ignore that completely when I create a new report and agree to use the UI defaults.
    I always get a column displayed as "standard report column" and no associated LOV.
    Am I doing anything wrong?
    Strangely, the similar setting for (tabular) form defaults works fine.
    Thanks in advance for any hint!
    Ingo

    Also Nelmaz,
    I have just checked OSS notes and found below note helpful to you:
    Note 1059465 - CN43N: Dynamic selections for scheduling data of WBS elemnts
    Symptom
    You cannot use transaction CN43N to create dynamic selections for scheduling data of WBS elements (table PRTE). You can use transaction CNS43 to do so.
    Hope this helps.
    Please assign points as way to say thanks

  • Using variable in from close of select statement for LOV

    Hi all,
    I had a select list based on a query with a variable in it for the database schema. Something like this:
    "select name, id from &SCHEMA..countries order by name". This warked in version 1.4.4..., I don't remember the rest. Now we upgraded to version 1.6.0.00.87 and I am trying to change the condition for this select item but I recieve this error:
    1 error has occurred
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
    Whatever I'm trying to change for this item, it always gives me this error when I click on "Apply Changes" button. Everything works fine when I remove &SCHEMA. from the query and instead write directly the database schema name.
    Can you help me?

    Sabiha,
    This is a case where the builder cannot parse the query at design time because there is no state for &SCHEMA. in the session. You can try this trick, change the lov query to:  if htmldb_application.get_current_flow_sgid(:APP_ID) = htmldb_application.get_sgid then
        return 'select name d, id r from &SCHEMA..countries order by name';
      end if;Notice also the addition of aliases for the column names.
    Scott

  • Filter for LOV

    Hi i am using Jdev 11.1.1.4
    i have a table with LOV column.
    where the LOV which i attached is coming from different VO.
    now i want the filter for this column where the filter works for the list attribute not the display attribute
    is it possible to implement filter that filters the value according to the display attribute?

    This is not really related to webcenter. You should ask this in the ADF forum: JDeveloper and ADF

  • Additional where-clause for LOV in 9i needs table-alias

    We have upgraded from 6.0 to 9i. All our Forms had been generated for 100% using Headstart. Now we try to generate them all again and encounter a problem with the list of values. It appears that the Additional restriction in the List of Values Properties always needs the table-alias to work properly when references are made to an item in the form.
    For example:
    We have item ORG_CODE in block ORG and have a lov showing all others organisations. The default-where coded in 6.0 looked like this:
    org_code <> :org.org_code
    In 6.0 this worked perfectly. However, in 9i the where-clause is being translated into
    :org.org_code <> :org.org_code
    Offcourse the lov now always gives the message that it contains no entries!
    We have found a solution for this problem - rewrite the where-clause to
    lov_alias.org_code <> :org.org_code
    However, this solution means that we have to check tens, hundreds of lov's, because we never used to put an alias in the where-clause.
    Because of this problem 95% of our Forms can not be generated anymore.
    Anyone has a easy solution for this problem?

    I mean:
    select * from T-A, T-B
    where T-A.id = T-B.id (+)
    and T-B.number (+) = 570
    to get the null record you'll have to do:
    select * from T-A, T-B
    where T-A.id = T-B.id (+)
    and nvl(T-B.number,0) (+) not in (0,570)
    or
    select * from T-A, T-B
    where T-A.id = T-B.id (+)
    and (T-B.number (+) <> 570
    or T-B.number (+) is null)
    hope that works (untested)
    null

  • Customized JSP Page for LOV from a OAF Page

    We want a customized LOV page that will be a new JSP page instead of OAF JRAD XML. Right next to this new item we will put a link to open us this new JSP page. The base page is OAF page. When user selects the data from the new LOV JSP page, it has to be passed to the base page items. Is it possible to acheive this?

    You cannot do that, all queries and eventual data binds to UIX beans must ha[[en through VOs.
    What I can suggest as a workaround is this.
    1. Create a normal LOV based on a VO
    2. Create rows for the LOV VO
    3. populate the attributes of the VO row with the values that you have in your collection object.
    4. Insert the row in your VO.
    Thanks
    Tapash                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Parameter for LOV

    I have a generic lookup table like
    create table lookup_master
    name varchar2(50) not null,
    display_val varchar2(50) not null,
    return_val varchar2(50) not null
    Examples are
    Gener,Male,M
    Gender,Female,F
    Marital Status,Unmarried,UN
    Marital Status,Married,MA
    State,New Jersey,NJ
    State, New York,NY
    One page has a bunch of these lookups.
    Instead of creating 10 LOVs, is there a way to create just one and pass in the "name" as a parameter when it is used by each item?
    Thanks

    Vikas,
    I couldn't think of anything, but for what it's worth, I noticed that if you string together your lookup codes for a Female, Unmarried, New York resident, it's FUNNY.
    Scott

  • Show Display Attributes for LOV in af:query

    ADF 11g (11.1.1.3.0)
    Hi all,
    I'm using an af:query that uses an LOV for a PERSON_ID column, with an EMPLOYEE view as the View Accessor.
    Since the user experience may require the user to search for a particular employee, using either a "Combo Box with List of Values" or an "Input Text with List of Values" makes most sense, but those UI controls only display a the PERSON_ID when returning from the search pop-up. This is in contrast to using a Choice List, which would show, in addition to the original column (PERSON_ID), the selected Display Attributes (eg PersonID, FirstName, LastName).
    It is possible to show the additional Display Attributes when using the "Combo Box with List of Values" or "Input Text with List of Values" controls for an af:query, and if so, how?
    Thanks!

    Hi user,
    Take your base VO and create a transient attribute or an attribute derived from a reference entity as the display value (let's say "PerFirstName"). Then, create the list of values of employees on this attribute and set the return values "FirstName" > "PerFirstName" and "EmployeeId" > "PersonId". Define a view criteria to be used for your af:query component and add "PerFirstName" with '=' operator (this will render as a LOV).
    Let me know if it helps...
    Barbara

  • Setting bind variables in view objects for LOV

    ADF 11.1.1.1.0
    I have two application modules - amCodeTable (contains the code tables) and amLOV (contains the list of values)
    In amLOV I have a VO aListOfValuesVo (not based on an entity) that runs a query Select * from aTable where userNr = :pBindVar
    In amCodeTable I have a VO aMainTableVo based on an EO, This VO has a field (aLOVField) which has a LOV defined on it and uses the
    aListOfValuesVo.
    I've hardcoded the bind parameter to its corresponding value and everything works as expected, list of values from
    aListOfValuesVo available on the aLOVField in aMainTableVo.
    I now need to set the bind parameter by code.
    What I have tried to do is override the execute query of the aListOfValuesVo in the aListOfValuesVoImpl.java
        @Override
        public void executeQuery() {
           setNamedWhereClauseParam("pBindVar","32");
           super.executeQuery();       
        }If I test the amLOV application module the query returns the correct values.
    If I test the amCodeTable the list of values on the aLOVField in the view aMainTableVo is empty.
    I've added a breakpoint to the executeQuery() method but it would seem that the method is not called.
    How are bind parameters for list of values set ?
    Paul

    Ok I've activated an SQL trace and got the following :
    [498] _LOCAL_VIEW_USAGE_ch_mit_trac_model_views_codeTables_SttIncotermView_lovUserBranch_0 ViewRowSetImpl.doSetWhereClause(-1, pUserNr, null)
    [499] _LOCAL_VIEW_USAGE_ch_mit_trac_model_views_codeTables_SttIncotermView_lovUserBranch_0 ViewRowSetImpl.execute caused params to be "un"changed
    [500] Column count: 4
    [501] _LOCAL_VIEW_USAGE_ch_mit_trac_model_views_codeTables_SttIncotermView_lovUserBranch_0 ViewRowSetImpl.doSetWhereClause(-1, pUserNr, null)
    [502] _LOCAL_VIEW_USAGE_ch_mit_trac_model_views_codeTables_SttIncotermView_lovUserBranch ViewRowSetImpl.setNamedWhereClauseParam(pUserNr, 41)
    [503] ViewObject: _LOCAL_VIEW_USAGE_ch_mit_trac_model_views_codeTables_SttIncotermView_lovUserBranch Created new QUERY statement
    [504] _LOCAL_VIEW_USAGE_ch_mit_trac_model_views_codeTables_SttIncotermView_lovUserBranch>#q computed SQLStmtBufLen: 238, actual=198, storing=228
    [505] Select b.Branch_Nr,Decode(b.status,1,'','*')||b.Branch_Id DisplayId,b.Designation,b.Status
    from stt_branch b, stt_users_branch u
    where u.user_nr = :pUserNr
    and b.Branch_Nr = u.Branch_nr
    order by 4,1
    [506] Bind params for ViewObject: _LOCAL_VIEW_USAGE_ch_mit_trac_model_views_codeTables_SttIncotermView_lovUserBranch
    [507] For RowSet : _LOCAL_VIEW_USAGE_ch_mit_trac_model_views_codeTables_SttIncotermView_lovUserBranch_0
    [508] Binding null of type 12 for "pUserNr"To me this looks as if 2 lovUserBranch instances have been created a lovUserBranch and a lovUserBranch_0
    The parameter is being binded to the lovUserBranch but the LOV is using the lovUserBranch_0 which has a bind value of null
    Anybody got any idea as to what is happening ?
    Regards
    Paul

Maybe you are looking for

  • Z68A-GD80 B3 Boot Loop and Failed BIOS LED Flashing

    I've been having "boot loop" issues with my system since it was built in June. Basically, when the system is powered on the lights/fans come on for around 3 seconds then it shuts itself off for another 3 seconds and repeats the loop infinitely. Meanw

  • Purchase order contains faulty items

    HI,   When I tried to change the plant of purchase order I'm getting an error " po contains faulty items, plant can't be changed",          I'm getting this error only for one line item out of 5, for other line items I didn't find any error. For this

  • Warning by NAC when a new Pcs connecte to the network

    Hi All, I have a NAC is configured to authenticate users through the NAC by local BD and just use vlan mapping mac-address filter list. I  would like to control new Pcs connection to the network ; when a new  mac-address -- PC ,laptop or any other ma

  • My daughter has forgoten her iphone password how can i reset it

    My daughter has forgoten her iphone password and is now locked out of it.  how can i reset it

  • Re-Initialize ALV

    Hi I'm a newbie in the abap web dynpro world. I have a selection screen with a search button. When enter a value on the selection field and pressing the search button, data is retrieved and put in an alv list. Some of those fields are edible. When se