2nd LOV in oracle forms

I have an lov for dept_id, If the user is the not manager of that department, then I populate a message, you are not the supervisor and clear the dept_id field. If the user running the form is the manager, then after choosing the dept_id from the lov, or manually entering, I want another lov to populate, That lov is the list for all employees in that department under that supervisor. How can I populate that 2nd lov? Need help.

I have a requirement to populate an LOV in a Form Which is taking LOT of TIME (PERFORMANCE ISSUE)
the Record Group Query is as
select segment1 INVENTORY_ITEM ,
inventory_item_id,
description,
primary_uom_code,
decode(service_item_flag, 'Y', service_duration, NULL) service_duration,
service_duration_period_code,
shippable_item_flag,
Decode(bom_item_type ,
1,'MDL',2,'OPT',3,'PLN',4,
Decode( service_item_flag,'Y','SRV',
Decode( serviceable_product_flag,'Y','SVA','STD'))) item_type_code
from mtl_system_items_b --table name
where organization_id = :QOTLNDET_LINES.ORGANIZATION_ID
AND (bom_item_type = 1 or bom_item_type = 4)
AND vendor_warranty_flag = 'N'
AND primary_uom_code <> 'ENR'
AND ((:QOTLNDET_LINES.LINE_CATEGORY_CODE = 'ORDER' and customer_order_enabled_flag = 'Y') OR
(:LINE_CATEGORY_CODE = 'RETURN' and NVL(returnable_flag, 'Y') = 'Y'))
AND segment1 like :QOTLNDET_LINES.INVENTORY_ITEM || '%'
When ever i give :QOTLNDET_LINES.INVENTORY_ITEM from Front end This LOV need to be displayed.
IT IS TAKING MORE THAT 3 MINUTES DEPENDING ON THE ITEM GIVEN.
SUGGEST ME TO REDUCE THIS TIME.
Thanks,
Durga Srinivas

Similar Messages

  • Lov in oracle form

    I attached an lov to text item in oracle form.
    if i write some thing in text item and it is first also have been written then show me it like when we write email in yahoo if those email is already been written then in below it shown like popup or tooltips.

    ddd

  • How the handle the LOV in oracle forms 10g

    Hi All,
    Could anyone can tell how to handle the LOV error in blocks as no data is there in db..while clicking on button, the LOV message is getting continously and its not allowing me to close the screen, this makes me to forcefully close the applicaiton...
    please suggest how to handle this..
    Regards,
    Badri.

    You should ask this in the Forms forum (this is the Reports forum) and when doing that, mention your Forms version etc. Also, explain what you mean by this:
    LOV error in blocks as no data is there in dbWhat error do you get? An LOV can return no records without a problem, so you probably did not use standard LOV funtionality.
    while clicking on buttonWhat is the code behind this button?

  • Is LOV able to do real validation like Oracle Forms LOV?

    Dear JHeadstart Team,
    I am using JDeveloper 10.1.3.3 and JHeadstart 10.1.3.2.52.
    To simplify the situation, I explain the problem using scott schema.
    I created a page on the emp table and used a LOV on the deptno and check the lov for validation for the lov. I changed the query of DeptLookupView (which lov uses) and added a where deptno <= 30 to that, so lov just showed the department with deptno <= 30.
    Then, When I entered number 40 in the deptno field and pressed tab, the lov poped up with No rows found in that.I pressed the cancel button and the amount of deptno remained 40. I pressed Save and data successfully commited to database.
    It seems to me a little strange. This capability exists in the Oracle form and when we use lov for validation in the Oracle form it does not permit us to enter a value which does not exist in the lov. I expected to see that functionality here too. Am I wrong or Is it a bug in JHeadstart?
    If it is not a bug and this functionality is not supported in the JHeadstart, is there any way to achieve this functionality.
    Any help would be highly appreciated.
    Thanks in advance,
    Navid

    Navid,
    It is not a bug in JHeadstart, it is intended behavior of ADF Faces. The ADF Faces valueChangesListener that we use to validate and display the LOV window only fires when the user-entered value changed, since the last time the listener fired. When you cancel the LOV and click the Save button the listener no longer fires.
    Note however that you are implementing a business rule (deptno must be <- 30) in the view layer only, which is a bad practice. I suggest that you implement the same rule in Business Components and/or in the database.
    This way, the user will get an error message when he tries to save a value > 30.
    Steven Davelaar,
    JHeadstart Team.

  • PERFORMANCE ISSUE IN LOV(ORACLE FORMS)

    I have a requirement to populate an LOV in a Form Which is taking LOT of TIME (PERFORMANCE ISSUE)
    the Record Group Query is as
    select segment1 INVENTORY_ITEM ,
    inventory_item_id,
    description,
    primary_uom_code,
    decode(service_item_flag, 'Y', service_duration, NULL) service_duration,
    service_duration_period_code,
    shippable_item_flag,
    Decode(bom_item_type ,
    1,'MDL',2,'OPT',3,'PLN',4,
    Decode( service_item_flag,'Y','SRV',
    Decode( serviceable_product_flag,'Y','SVA','STD'))) item_type_code
    from mtl_system_items_b --table name
    where organization_id = :QOTLNDET_LINES.ORGANIZATION_ID
    AND (bom_item_type = 1 or bom_item_type = 4)
    AND vendor_warranty_flag = 'N'
    AND primary_uom_code <> 'ENR'
    AND ((:QOTLNDET_LINES.LINE_CATEGORY_CODE = 'ORDER' and customer_order_enabled_flag = 'Y') OR
    (:LINE_CATEGORY_CODE = 'RETURN' and NVL(returnable_flag, 'Y') = 'Y'))
    AND segment1 like :QOTLNDET_LINES.INVENTORY_ITEM || '%'
    When ever i give :QOTLNDET_LINES.INVENTORY_ITEM from Front end This LOV need to be displayed.
    IT IS TAKING MORE THAT 3 MINUTES DEPENDING ON THE ITEM GIVEN.
    SUGGEST ME TO REDUCE THIS TIME.
    Thanks,
    Durga Srinivas
    Edited by: DurgaSrinivas_886836 on May 31, 2012 5:14 PM

    I had an idea ,
    record_group1=
    select segment1 INVENTORY_ITEM ,
    inventory_item_id,
    description,
    primary_uom_code,
    decode(service_item_flag, 'Y', service_duration, NULL) service_duration,
    service_duration_period_code,
    shippable_item_flag,
    Decode(bom_item_type ,
    1,'MDL',2,'OPT',3,'PLN',4,
    Decode( service_item_flag,'Y','SRV',
    Decode( serviceable_product_flag,'Y','SVA','STD'))) item_type_code
    from mtl_system_items_b --table name
    where organization_id = :QOTLNDET_LINES.ORGANIZATION_ID
    AND (bom_item_type = 1 or bom_item_type = 4)
    AND vendor_warranty_flag = 'N'
    AND primary_uom_code 'ENR'
    AND ((:QOTLNDET_LINES.LINE_CATEGORY_CODE = 'ORDER' and customer_order_enabled_flag = 'Y') OR
    (:LINE_CATEGORY_CODE = 'RETURN' and NVL(returnable_flag, 'Y') = 'Y'))
    AND segment1 like :QOTLNDET_LINES.INVENTORY_ITEM
    Record_group2 =
    select segment1 INVENTORY_ITEM ,
    inventory_item_id,
    description,
    primary_uom_code,
    decode(service_item_flag, 'Y', service_duration, NULL) service_duration,
    service_duration_period_code,
    shippable_item_flag,
    Decode(bom_item_type ,
    1,'MDL',2,'OPT',3,'PLN',4,
    Decode( service_item_flag,'Y','SRV',
    Decode( serviceable_product_flag,'Y','SVA','STD'))) item_type_code
    from mtl_system_items_b --table name
    where organization_id = :QOTLNDET_LINES.ORGANIZATION_ID
    AND (bom_item_type = 1 or bom_item_type = 4)
    AND vendor_warranty_flag = 'N'
    AND primary_uom_code 'ENR'
    AND ((:QOTLNDET_LINES.LINE_CATEGORY_CODE = 'ORDER' and customer_order_enabled_flag = 'Y') OR
    (:LINE_CATEGORY_CODE = 'RETURN' and NVL(returnable_flag, 'Y') = 'Y'))
    AND segment1 like :QOTLNDET_LINES.INVENTORY_ITEM || '%'
    If i can give Full item name then dynamically I will assign Record_group1 else i will assign Record_group2 by using Set_LOV_Property()
    so that if i give full item name lov is populated quickly .
    Suggest me Which Triggers Should i use.
    Edited by: DurgaSrinivas_886836 on May 31, 2012 6:49 PM

  • Unable to do UPDATE in Oracle Form 10.1.2

    Hi,
    I am using an LOV to query data from a master-type table.
    -- WHEN-BUTTON-PRESSED in button Retrieve
    declare
      l_number number;
      a_value_chosen boolean;
    begin
      a_value_chosen := Show_LOV('LOV_CUSTOMER');
      if not a_value_chosen then
        message('No value selected');
        raise form_trigger_failure;
      end if;
    end;First, I choose a value from the LOV. The LOV showed the selected items in the Form.
    Next, I modified some values (not the Primary Key) in the Form text items.
    Finally, I tried to Save the modification into table, using
    -- WHEN-BUTTON-PRESSED in button Save
      commit_form;
      clear_form;Surprisely, it showed
    FRM-40508: ORACLE error, unable to INSERT record.
    BTW,
    Previuosly, I can do UPDATE if I use the Enter Query and Execute Query button.
    I did not attempt to do inserting, just updating.
    Could someone show where is the problem?
    Is the form status not changed by the query returned from LOV?
    Any help would be grateful.
    Many thanks,
    Imelda

    Hi,
    Glad I found all of you in this forum.
    Thanks for all of the explanations.
    I thought by using LOV would suppress the network traffic.
    If the use of LOV would give lots of drawbacks, then I should see the Enter_Query() Execute_Query() instead.
    BTW,
    I found the button Enter Query and Execute Query on the toolbar.
    (Seems that Oracle Form provides lots of help to simplify the programming)
    I have some sort of problems in using them :
    1. Well, they do the query and retrieve the records for a match query criteria.
    But it did not give any specific message if the record does not exist.
    The message bar (for unknown reason) is showing
    "Enter a query; press CTRL+F11 to execute, F4 to cancel."
    Can we change this behaviour?
    Perhaps, showing "No record(s) are retrieved for this query. Either change the query criteria; press CTRL+F11 to execute, F4 to cancel."
    2. I found the Count Hits from Query menu.
    Based on the documentation, the message line will show the records number returned based on query
    criteria, without actually retruning the records to the user.
    I am not sure whether this function has been removed for the Oracle Developer 10g (10.1.2), since
    there is nothing happen, and the message line keep showing
    "Enter a query; press CTRL+F11 to execute, F4 to cancel."
    Do we tho do some modification to the Forms to use Count Hits?
    3. I read on the documentation about Query Where dialog box.
    Query Where will be showed if user enter a colon ':' in a field in Enter Query mode for query criteria.
    Again, I am not sure whether this function has been removed too.
    the message line showed :
    FRM-40367: Invalid criteria in field <field_name> in example record.
    It happens if the criteria contains # or : or &
    Or is it done via another way?
    Any help would be grateful.
    Many thanks,
    Imelda.

  • Oracle Forms 6.0: Message file\ORANT\DBS\FMCUS.MSB not found

    Hi,
    I have a PC with oracle forms installed on it and recently the operating system was updated from win. 2000 to win. XP. After the update, a particular form could not run. It gave the following message: Message file\ORANT\DBS\FMCUS.MSB not found. What could be the likely course of this?

    Hi,
    That's because Forms6i has a 2nd edition for WinXP and you should apply patchset 13 at least for forms to work on WinXP.
    what's your forms version?????
    I don't know how would it react fors6i on upgraded OS from win2K to WinXP.
    Tony S. Garabedian

  • Calling a Report from Oracle Forms 10g

    Hi Everyone,
    I need assistance.
    Am running Oracle Forms & reports 10g.
    My Form module is running just fine. Inside the the Form Module I added a button with a "When Button Pressed Trigger" that has the following code
    declare
         repid REPORT_OBJECT;
         v_rep VARCHAR2 (100);
    begin
         repid := FIND_REPORT_OBJECT ('REPORT49');
         v_rep := RUN_REPORT_OBJECT (repid);
    end;
    This compiles without any errors.
    At runtime when I press the Button from Forms, I get the following error;
    "FRM-41211: Integration error: SSL failure running another product"
    Please assist.
    Regards,
    Pascaline

    Hi user593321
    FRM-41211: Integration error: SSL failure running another product.
    Cause:     There is a problem detected when launching another product.
    Action:     Check the RUN_PRODUCT built-in.
    Level:     99
    Type:     Error
    Below a very useful links pls try them, i recommend the 2nd one:
    http://www.programmersheaven.com/mb/oracle/211184/211184/ReadMessage.aspx
    http://www.developpez.net/forums/showthread.php?t=292435
    Best Regards,
    Abdetu..

  • Problem inputting Chinese characters in oracle forms

    Hi,
    We have a Chinese character: UCS2=7A4F (UTF8=E7A98F) If we try to input it to a control in a Forms application using chanjie (key sequence h-d-b-s-p) input method, it becomes "?", but if we input it using same method in word or notepad, it shows correctly and can then be copy-and-paste to oracle forms.
    Is there some sort of implicit conversion of Chinese character input done by Oracle Forms controls such that it is unable to decode this character properly? Or is there some sort of setup that can be done to bypass this problem?
    Any help would be greatly appreciated, hopefully as soon as possible.
    Thank you very much.

    979801 wrote:
    If I use LOV in place of List Item,Then I have to populate a LOV at run time.How could I maintain a record group n attach to LOV at run time?
    On my previous post I have mentioned record group as follows:
    select * from tbl_state where s_id=:tbl_address.s_id;
    If :tbl_adress.s_id chaned during the time of run, then output values of list_city (LOV) is also changed.

  • Problem with List Item in oracle forms

    Hello Experts,        
                         I am new in oracle forms and i am using oracle forms 11g with weblogic 10.3.5 at windows 7.
    I have 3 database tables say(tbl_city,tbl_state,tbl_address).
    tbl_city
    C_ID
    C_name
    S_ID
    0
    None
    0
    1
    XYZ
    1
    2
    AS
    2
    3
    AXD
    2
      tbl_state
    ID
    s_ID
    S_Name
    0
    None
    1
    XY
    2
    ASD
    tbl_address
    A_ID
    A_Street
    S_ID
    C_ID
    1
    ABC
    1
    1
    Now I have made an oracle form having data block tbl_address with base table name tbl_address. In the form there are two list: one(list_state) for State_Name & State_ID and another(list_city) for City Name & C_ID display.
    Here I want when I set State_name to ASD then List item list_city should be populated with the values having State_NAME=ASD not of State_Name=XY or None.I have tried it to make but not succeeded.I have made a procedure to populate list_city list item as:
    -- here item_nm-->List item Name,  sel_val & sel_val2 for selecting C_ID and C_NAME,   tablNm---->tbl_CITY,  whr for where condition,   mtch--->selected value of list_State(list item in form)
    PROCEDURE list_item(block_nm varchar2,item_nm varchar2,sel_val varchar2,sel_val2 varchar2,tablNm varchar2,whr varchar2,mtch varchar2) IS
    group_id RecordGroup;
    group_name varchar2(10) :='abc';
    status NUMBER;
    query1 varchar2(350);
    item_name varchar2(20);
    match varchar2(50);
    BEGIN
        match:=mtch;
        item_name:=block_nm||'.'||item_nm;
      group_id := find_group(group_name);
    if not id_null(group_id) then
    delete_group(group_id);
    end if;
    --if whr='' then
    --    match:='0';
    --    end if;
    query1:='select '|| sel_val || ',TO_CHAR('|| sel_val2 || ') from '|| tablNm ||' where '||whr||' = '||mtch;
    message(query1);
    group_id := Create_Group_From_Query(group_name,query1);
    /* Select statement must have two column*/
    status := Populate_Group(group_id);
    Populate_List(item_name,group_id);
    exception
        when others then
        message('error');
    END;
    I am not  able to guess what trigger  in oracle forms should be used to populate list item(list_city). Please help by giving useful suggestion.
    Thank You
    regards
    aaditya

    979801 wrote:
    If I use LOV in place of List Item,Then I have to populate a LOV at run time.How could I maintain a record group n attach to LOV at run time?
    On my previous post I have mentioned record group as follows:
    select * from tbl_state where s_id=:tbl_address.s_id;
    If :tbl_adress.s_id chaned during the time of run, then output values of list_city (LOV) is also changed.

  • Question on Dynamic Query Data Source and Form Folders in Oracle Forms 6i

    Hi there -
    I have one interesting requirement in Oracle Forms.
    This is what I wanted to do.
    1. Have a LOV and Go button on Form.
    2. From LOV, I will select a pre-defined custom table and click Go.
    3. Based on the selected custom table, I have to populate the Block (Tabular Format).
    4. User should be able to do update, delete, insert on this block.
    5. User should be able to use the Oracle Form folders functionality (select only necessary column and save views etc. Std folder functionality).
    6. If user selects a different custom table name in the LOV on top, I need to refresh the data from the block based on this new table. Remaining functionality should be as it is (steps 3 to 5).
    You can see here, I am going to have dynamic query data source (Table Name as well as column mapping) on the block. I do not know before hand how many columns the user selected table has!
    This is what I have planned for this so far but I have some major questions before I can move on with this design:
    1. I am going to create a table structure with fixed number of column in form (40 cols assuming that the custom table will not have more that 40 cols). (Kind of limitation but it's okay as of now).
    2. Dynamically populate the block based on the table name selected by the user from LOV. Dynamically change the table column names based on the table selected etc.
    3. Perform insert, update, delete using PL/SQL package.
    So far it looks okay.
    Now my real question is,
    Can user still be able to user "Folders" functionality here? I have never done this kind of development before and I doubt the dynamic column naming, dynamic column data source will really work for "folders"!
    Also, I am not really sure whether user will be able to save these "folder" queries?
    Okay so form experts, can you ppl suggest me if this is really going to work? Are there any better ways to do this?
    Initially I tried to do this in OA Framework but I got stuck at because as per OAF developer guide "I cannot user OAF personalization for dynamic items, regions etc".
    For more info on that thread see this link...
    Re: setUserCustomizable issue!
    Thanks in advance for the help.

    Any suggestion anyone?

  • How to deploy the Oracle Forms and Reports 10g in Web?

    Currently I am working in Oracle forms & Reports conversion project (6i to 10g).
    As of now 6i forms working as a standalone application. After migrated it to 10g, I need to deploy the forms and reports in web.
    Any one know how to deploy the Oracle forms and Reports in web?
    Please help me out. Thanks in advance.
    Vimal

    Hello Frank,
    for development, you need to install Oracle Developer
    Suite 10g. This includes Forms and Reports.this topic interests me too, because I've downloaded Developer Suite and Database (both for 10g) from Oracle website, installed them, but I couldn't connect to a database.
    What should be done for me to create a database link and be able to connect locally, in my personal Desktop computer? (Not to a server)
    Once it was told me here that I should download 10g Database - I did it, and installed it, but it didn't work. Later, some of my job partners said I should install them in a sequence - that is, 1st the Developer, and 2nd the Database. But it has failed too. And I don't know how to configure a database connection.
    Best regards,

  • Search option using a new small window in oracle forms using pl/sql

    Hai Friend,
    Iam Navya Jeevan,regarding Oracle Forms and Reports Doubts.
    Our project is developed using Forms and Reports
    In Forms for triggers we are using Pl/SQl language.
    DOUBT
    IN a form we require an option like search button when we press the search button a small window must be opened.This window should contain details from database(ie an entire column of database,must be displayed in the window ) and the user selects the value from the window.
    If u got any sample code related to this subject please mail to me.
    ....................................VERY URGENT............................................................................
    thankyou,

    Hello,
    The LOV is made for this.
    Francois

  • Urdu support in Oracle Forms 9i

    Requirement:
    ============
    We have an application in Oracle Forms & Report 9i Rel 2 and Database 9i Rel 2.
    There is a client requirement to provide Urdu support in this application.
    We have to enter Urdu data in few forms and print it in PDF reports.
    Problem:
    ===========
    We created new database with AL32UTF8 Character Set with same National
    Character Set for Unicode support.
    Developed a form and report on a table with NVARCHAR2 data type.
    Edited nls_lang entries in Registry to AMERICAN_AMERICA.AL32.UTF8
    Installed Urdu Support in WinXp
    Database stores and retrieves Urdu and displays Oracle SQL Developer.
    Oracle form stores/retrieves Urdu characters but it fails to type
    complete words and sentences.
    On typing 2nd, 3rd characters of a words all characters position mix up
    randomly and produce garbage.
    Oracle report don't show Urdu characters in run-time but it shows the
    same in Report Builder.
    Further more, Our group of applications works in Materialized View Replication environment [5-6 applications consolidate data at a Central Database]. If we change Character Set of one application's database to Unicode then is it must to apply the change in all databases of replication group.
    Please suggest if Oracle IDS 9i or 10g provides support for Urdu. If yes then please suggest solution of the above stated problems.
    Looking forward for your quick response.

    You would have much more possibilities to have your question answered if you posted it in Oracle Forms forum.....
    Greetings,
    Simon

  • Oracle Forms Builder

    Hi Experts,
    I am learning oracle form builder version 6i where my manager wants me to develop a form with the LOV and data blocks.
    I dont know the Form Builder. Where i can get the form builder document with the simple form created example.
    I need it urgently.
    Thanks,
    Atul

    Please see these doc (use TEMPLATE.fmb form to build your form).
    Forms6i Documentation
    http://www.oracle.com/technetwork/documentation/6i-forms-084462.html
    Oracle Forms in Applications FAQ [ID 177610.1]
    Error Opening TEMPLATE.fmb in Forms Builder [ID 236803.1]
    Customization in Oracle Applications [ID 743490.1]
    How To Customize And Compile An Application Seeded Form (FMB) Or Library (PLL)? [ID 427879.1]
    How to Add a Path to Environment Variable $FORMS60_PATH [ID 168431.1]
    Errors when Compiling TEMPLATE.fmb for Release 11i [ID 206458.1]
    Thanks,
    Hussein

Maybe you are looking for

  • URGENT: Need help in stripping commas in number

    Hello, XML has commas (thousand separators) in number, example, 1,234,567. Per XMLP Guide and a thread in this forum, below should work, but it doesn't. Could use some help... Thanks. Is there another or better way of getting rid of commas in a numbe

  • How to use Time Machine with newly cloned source disk?

    I've got an iMac (10.6.8) which I'm using with a Time Capsule and Time Machine. Recently, the iMac's internal disk started to fail. Instead of going through the effort and expense of replacing it in a fairly old computer, I added an external FireWire

  • Distributing forms shuts down Standard 9 program

    I am using Adobe Acrobat 9 Standard version 9.5.4, when I get to the distributing of my form the program shuts down.  Any idea what is causing this?

  • Best video format for converting DVD to NAS for widely sharing

    Summary: The article shows you with an easy workaround for copying DVD to NAS for streaming by ripping DVD to NAS friendly video format on Mac and Windows I recently purchased a NAS to store all my music/photos etc on. I can stream stuff to my iPhone

  • Spool file Wrapping issue

    Hello experts, I have an issue with the output of a report.  If I run the program on line, the output is okay.  If run in background, the output is sent to the spool file.  The problem is when view the report in spool file, the report column wrap aro