Auto Filter in LOV in form builber 6i

Suppose a table have 5 Records
101
102
103
104
105
when I call the Lov then it is displaying 5 records, but when I will select suppose 103 record no. and put in detail block, then after that I again call the LOv then it will display only four record not five....
How can I auto filter the records in LOV????
Please tell me.

Hi,
You will need to add an post delete trigger that adds the record row back in.
This is from forms 6i help:
** Built-in: ADD_GROUP_ROW
** Example: Add ten rows to a new record group and populate.
PROCEDURE Populate_My_Group IS
rg_name VARCHAR2(20) := 'My_Group';
rg_col1 VARCHAR2(20) := rg_name||'.NumCol';
rg_col2 VARCHAR2(20) := rg_name||'.CharCol';
rg_id RecordGroup;
gc_id GroupColumn;
in_words VARCHAR2(15);
BEGIN
** Check to see if Record Group already exists
rg_id := Find_Group( rg_name );
** If it does, then clear all the rows from the group and
** populate ten rows with the numbers from 1..10 along
** with the equivalent number in words.
** Row# NumCol CharCol
** 1 1 one
** 2 2 two
** 10 10 ten
IF NOT Id_Null(rg_id) THEN
Delete_Group_Row( rg_id, ALL_ROWS );
FOR i IN 1..10 LOOP
** Add the i-th Row to the end (bottom) of the
** record group, and set the values of the two cells
in_words := TO_CHAR(TO_DATE(i,'YYYY'),'year');
Add_Group_Row( rg_id, END_OF_GROUP );
Set_Group_Number_Cell( rg_col1, i, i);
Set_Group_Char_Cell( rg_col2, i, in_words);
END LOOP;
END IF;
END;
If you are unhappy about using record groups in this way, you might want to think about using a session temporary table. Do a direct insert into this table every time one gets selected and delete the record every time gets removed from your block. Your lov then simply becomes:
select mytab.*
from my_table mytab
where not exists (select 'already chosen'
from my_session_temp_table mytemp
where mytemp.primary_key = mytab.primary key)
The session temporary table need only hold the primary key vales.
You could probably so the same with a PL/SQL table but I find them hard work. Primarily because I never use them often enough to become comfortable, not because there is anything majorly wrong with them.
One last thought, you could use the base table of the block that you are selecting in the 'not exists' clause. You'd need to post the selects and deletes but it should work. Unfortunately it will post all changes not just the ones you want so it could have a knock on affect.
Regards,
Danny

Similar Messages

  • Auto-filter in PDF-file?

    In my PDF file, I have tables with data. Is there an auto-filter function to use so that you can select data?

    A PDF is not a spreadsheet like an Excel file. Unless you create the table
    in LC Designer as a dynamic form element, it's not possible to filter,
    sort, or manipulate it in any way.

  • Excel file with auto-filter

    I have a excel file with auto-filters (sort filters) i'm
    trying to incorporate that into my web page via dreamweaver. what
    is the best method on doing so? converting the file to any other
    format will loose the auto-filter feature i have setup on the excel
    file. any ideas would be appreciated.

    Nor do I... Now! ;-)
    BTW interesting error message. I've never seen that.
    Walt
    "Ken Binney" <[email protected]> wrote
    in message
    news:g8kig8$2tm$[email protected]..
    > Thanks for posting that Walt, but I have no problems
    reaching the site
    > from New York.
    >
    >
    >
    > "Walt F. Schaefer" <[email protected]> wrote
    in message
    > news:g8kco3$o97$[email protected]..
    >> link delivers this: This Account Has Exceeded Its
    CPU Quota
    >>
    >> Whoops!
    >>
    >> --
    >>
    >> Walt
    >>
    >>
    >> "Ken Binney"
    <[email protected]> wrote in message
    >> news:g8k8vp$j7e$[email protected]..
    >>> You might also consider converting it to a table
    and use javascript for
    >>> sorting
    >>> Here's a free script
    >>>
    >>>
    http://www.mingyi.org/other/ts_demo.html
    >>>
    >>> "bronxbabie1"
    <[email protected]> wrote in message
    >>> news:g8jsro$269$[email protected]..
    >>>>I have a excel file with auto-filters (sort
    filters) i'm trying to
    >>>>incorporate
    >>>> that into my web page via dreamweaver. what
    is the best method on doing
    >>>> so?
    >>>> converting the file to any other format will
    loose the auto-filter
    >>>> feature i
    >>>> have setup on the excel file. any ideas
    would be appreciated.
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • Using Dynamic LOV in Forms

    Hi Everybody,
    I am making forms based on procedures in 9iAS Portal. I am using two parameters for the form. One is Item Code for which I am having a simple LOV with sql statement. Other LOV has a dynamic Sql statement which accepts the Item_code as parameter and displays records containing the item_code. When I run the Lov seperately through navigaror it runs properly but when I used the lov through form and passed the item_code to it, on runtime it says that the lov is based on dynamic sql and unable to show results.
    Can anybody please help me out of this problem.
    Thanks in advance
    Warm Regards
    Vivek Bajaj

    When I tried to compile the following code in Forms, the compiler error I got was Encountered the symbol "STMT_STR" when expecting one of the following: select. However, when I run it in SQLPlus, it creates the function without any errors.
    FUNCTION my_func
    return number
    is
    TYPE DiaryCurTyp IS REF CURSOR;
    cur DiaryCurTyp;
    stmt_str VARCHAR2(200);
    dmonth NUMBER;
    dday NUMBER;
    BEGIN
    stmt_str := 'SELECT dmonth, dday FROM p2_diary
    WHERE dmonth = :1';
    OPEN cur FOR stmt_str USING '12';
    LOOP
    FETCH cur INTO dmonth, dday;
    EXIT WHEN cur%NOTFOUND;
    -- <process data>
    END LOOP;
    CLOSE cur;
    END;

  • I am new to Firefox; how do I set up for auto fill for the various forms that need the same info time and time again; thanks.

    I am new to Firefox; how do I set up for auto fill for the various forms that need the same info time and time again; thanks.

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    *Deselect: [ ] "Always use private browsing mode"
    *Select : [X] "Remember search and form history"
    See also:
    *https://support.mozilla.org/kb/Form+autocomplete
    <i>[locking thread due to the age]</i>
    If you have further questions then please start a new thread.
    *[[/questions/new start a new thread]]

  • Lov in forms personalization

    how to create a lov for a text item in forms personalization in release r12?
    i created a record group with query but i dont know how to add a lov for that item.
    Regards
    Sudharshan

    You can attache a new record group to exisitng LOV and You can attach already exisiting LOV to a text item......but i don't think you can create a new LOV in forms personalizations..
    and even when u add new record group to existing LOV...u cannot change number of columns or their names
    CREATE_GROUP_FROM_QUERY (vrg_name_new, vlv_sql); to create new record group
    SET_LOV_PROPERTY (---LOV NAME--- ,group_name ,---RECORD GROUP NAME-----); attach group to exisiting LOV
    Set_Item_Property( ..., LOV_NAME, 'your lov'); attach exisiting LOV to an ITEM

  • How can I filter the LOV rows at the runtime

    I am working in oracle forms 6i.
    My lov is based on a view. If I selected one row from LOV, that row should not appear in list box.
    I would like to restrict rows before saving a form. How can i filer the LOV rows at the runtime?
    Please help me.

    Dear Mr.MH_BD,
    Thanks for your immediate response,
    My form is built based on master and detail link.  On the multi row detail section I am invoking this LOV.  The record group containing the following query:
    select fees_id,fees_name,term_fees from sk_fees_mst where fees_bal>0;
    fees_id
    fees_name
    term_fees
    12
    Tuition Fees
    2500
    13
    Smart Class
    100
    14
    Admin Fees
    300
    If I selected the fees_id 13 for the first row of detail section, then the LOV should display only the following in the next row:
    fees_id
    fees_name
    term_fees
    12
    Tuition Fees
    2500
    14
    Admin Fees
    300
    (ie.) Before commit form I need to filter the already selected fees ids from record group.
    Thanks in advance.

  • Auto-populate checkboxes in a form

    I'm working on a form in ApEx that has several checkbox fields on it, and am having some trouble getting them to auto-populate. Based on a selection on the welcome page of this application, certain checkboxes should auto-populate so that users should be able to opt out of certain criteria on the form.
    Here's an example:
    On page 1 of this application, the user chooses what type of report they are requesting. Their options are: "Internal Use" "Non-Solicitation Mailing" "Solicitation Mailing" "Solicitation" "Invitation" and "Other." On the next page (the form itself), there are several different conditional items called "(type of request)_Exclusions," and all of these are checkboxes based on a Static LOV. For example, for a request that is listed as "Internal Use," the checkboxes for "Deceased" "Lost" and "No Mail" should be automatically checked so that the user has the option to opt out, and their values should be returned to the database.
    Any help would be greatly appreciated.

    Hi,
    You want the checkboxes to be checked by default in the form while creating a new record in the database. Suppose that form page number is 7 and it has a hidden item P7_ID (refererring primary key of database table) and checkbox item P7_IS_ACTIIVE (refererring IS_ACTIVE column of database table and can have values 'Y' or 'N'). Now edit P7_IS_ACTIIVE item and scroll to Default section.
    Type Default Value = case when :P7_ID is null then 'Y' end;
    Default Value Type = PL/SQL Expression
    In the List of Values section type List of Values Definition = STATIC2:Active;Y.
    Click Apply Changes and create Automatic Row Processing (DML) process On Submit -After Computations and Validations for insert, update and delete of database table records. Type Item Containing Primary Key Column Value = P7_ID.
    Whenever you create a new record the P7_IS_ACTIIVE is always checked.
    Else if this is not what you need you can refer the example posted by Denes as 'Checkbox Y/N' on http://htmldb.oracle.com/pls/otn/f?p=31517:123:1499221457271585::NO
    Thanks,

  • Filter Display Data using Form Personalization

    Hi All,
    I have 2 blocks, Query and Detail block.
    Based on search criteria from query block the details are displayed in detail block.
    Now i want to filter display data in Detail block by adding org_id condition through form personalization.
    I would like to know if its possible by form personalization.
    Thanks

    not sure any auto feature available but u can set the DEFAULT_WHERE property of the Block using SET_BLOCK_PROPERTY and execute query after it
    search DEFAULT_WHERE in this forum for examples
    Baig,
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • Dependent LOVs in form

    Guys,
    I do have two fields of LOV types on my form
    LOV attached to first field should display all the department. And second field should display all the employees assigned to the department selected in first field. Thats how I need dependent LOVs.. can you please guide me how it can be achieved.
    Thanks
    Sunil

    Hi Sunil
    second field should display all the employees assigned to the department selected in first field. Thats how I need dependent LOVs.Here is an example...
    Let's Suppose u have a rel between dept & emp table related with a FK called DEPT_NO that's what it should be
    Now when u select the 1st Lov it will disploay the DEPT_NO of the dept u selected this DEPT_NO will be displayed on ur form or will be hidden it doesn't matter.
    Now in the second LOV Record group u should write a similar select statment as follow...
    SELECT EMP_NAME,... etc.
    FROM EMP
    WHERE DEPT_NO = :DEPT_NO ;     Pls note that :DEPT_NO is the number of the department selected form the first lov in ur form, then all emp data will be displayed according to this DEPT_NO as ependent LOVs.
    Another approach u should be aware and think about it...
    u could u a drop down list dependent on one another specially if u don't have large number of departments in ur company.
    Hope this helps...
    Regards,
    Amatu Allah.

  • Addition of one column in LOV through Form Personalization

    Hi
    While approving a purchase order when we click on Forward check box the forward to field becomes enabled and it has the LOV containing employee names and employee numbers. I want to add another column in this LOV for employee positions through form personalization.
    Can any one guide me how to do this.
    Regards

    Hello,
    To set another LOV, you should change the property of your combobox, named LOV_NAME with Forms perso, but you need some PL SQL code to create a new LOV.
    See this example : [http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/custom-lov-using-custompll-883870]
    One pre-requisite is that your new LOV should have the same number of rows and the same datatype, so I'm afraid you won't be able to do this just using Forms perso
    Kind regards,
    Xavier

  • Auto-populate of SHELL_shellName_shell Upper form DE only functions in one single-instance project shell.  The DE in the BP Upper Form needs to auto-populate in two separate single-instance shells.  How can I get this DE to autopopulate in both?

      The Unifier environment
    contains two single-instance project shells, INF and PBS, and two multiple-instance child project shells, INFS and
    PB.    There is a single instance, non-workflow
    business process, ‘Project Information’ that contains a data element in the
    upper form definition, Project ID.  The Project ID is set to auto-populate from the multi-instance “INFS”
    project shell attribute, which is populated manually. 
    Issue:  The auto-populate functionality for the
    Project ID ‘Shell_shellName_shell’ data element within the single-instance
    Project Information BP only functions within one of the shells, either
    INFS or PB, but not both.  The INF and INFS shells are currently deployed
    to production, PB and PBS shell are not.
    It is critical that Project ID ‘Shell_shellname_shell’ data element is populated correctly in the
    Project Information upper form of both shells, INFS and PB,
    because that data element is referenced by multiple business processes and
    integrations. 
    The attribute form definitions for both single and multiple instance project shells are identical.  The Project ID utilizes the same data
    element ‘SHELL_shellName_shell’ as is defined in both shell attribute forms
    (INFS and PB). 
    The data definition source is a Unifier system-level variable, SYS Shell
    Name (String, 128, Text Box)
    Potential Solutions:
    1. Create a Project ID DE of another data type which can
    be successfully auto-populated from either shell.  Drawback: all BPs and integrations which
    reference Shell_Shellname_shell will need to be rewritten.
    2. Investigate converting the Project Information single-instance
    to a  multi-instance BP, and create a
    separate instance for each single-instance shell type.  Same Drawback as Option #1, but with additional
    rework.  Most likely Project Information
    would have to be recreated as a new BP.
    Not sure that this option would even work.
    3. Create a separate Project Information BP for PB.  Drawback:  Two separate BPs for Project Information would
    need to be created.  All existing BPs
    refer to Project Information, so this option could potentially invalidate the
    ability to use the existing BPs in the PB shell.

    Was it really necessary to post the whole API description?!?
    Locale[] locales = Locale.ENGLISH();ENGLISH is not a method in class Locale, so do not add the braces "( );".
    Also, the constant ENGLISH is not an array, but just a single Locale object.
    You didn't say what your problem was. What do you want to achieve with your program and what is it that you don't understand?

  • How do you remove or change auto generated text in returned form e-mails?

    Hello,
    I am currently using Adobe Acrobat 8 Professional (Version 8.1.3) to create a form that will be sent to a group of people.  When testing it, I've noticed that when the end user presses the "SUBMIT FORM" button and a new e-mail opens with the completed form attached, the following text is automatically added to the body of the e-mail:
    Form Returned: XXXXXXX.pdf
    Instructions to add this form to a data set:
    1. Double-click the attachment.
    2. Acrobat will prompt you to select a data set.
    What I need to know is whether or not there is a way to either prevent this auto generated text from appearing or revise it so it gives a custom message instead.
    Any insight would be greatly appreciated!
    Regards,
    Jeff

    It sounds like you are getting a basic message that is telling you submitting the PDF is unnecessary and asking if you want to submit the data instead. I have not seen this one before, but that is my guess. If you are using the form fields created in Acrobat (not Designer), then just select FDF or XML for the data type to be submitted, not the form.

  • Problem in Changing the Query of LOV using Forms Personalisation

    Hi all,
    I have a problem while trying to change the LOV of job field in the people--> assignment form. I am trying to do through forms personalisation. I defined all the rquired fields:
    Following are the description of fields Idescribed in the form Personalisation:
    Trigger Event: WHEN-NEW-FORM-INSTANCE
    in actions tab:
    10-- Built In--Create Record Group With Query
    11-Property----LOV
    Target Object--JOBS
    Property Name--GROUP_NAME
    vALUE--jobs(rECORD gROUP NAME created above)
    It is validated successfully,
    but when trying to open the form it is giving an error 'cannot create record group jobs'..
    Can anybody help me with this..
    Thanks and Regards
    Raj

    I found that there is no problem with code. My problem is not technical, its a functional problem.
    It is related to Inventory's "System Items" KFF.
    Can anybody tell me, to this "System Items" KFF, one value set is assigned. but it is of none type of value set. so from where the values in LOV are coming?

  • 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

Maybe you are looking for