Dynamic LOV buttons in Forms

Hello:
The dynamic LOV button (app.ui.lovButtons=true) in Registry.dat setup is showing the LOV button in NORMAT Mode ONLY.
This does NOT get displayed when the form is in QUERY mode. Is there a way to display the LOV buttons irrespective of Query/Normal Mode?
Thanks
Bala

Anyone faced this issue before?
Please help
Edited by: kart on Jun 16, 2010 3:58 PM
Edited by: kart on Jun 17, 2010 12:30 PM

Similar Messages

  • Dynamic lovs in parameter forms ... Is this possible?

    Hi
    I am using report developer 10g on windows xp.
    I need a cascading prompt style dynamic LOVs in my report parameter form.
    The first LOV displays a set of values (say for eg. dept list). The second LOV will display another list, based on the value chosen by the user in the first LOV (Eg. List of employee names in that dept).
    My first LOV select statement may look like below for the user parameter say P_DEPT
    select deptno from dept;
    My sencod LOV select stmnt may look like below for the user parameter P_EMP
    select ename from emp where deptno = :P_DEPT
    Each time I try to set the second LOV, report developer complains "Bind variables not allowed in select statement"
    Same error msg comes if I reference the first user parameter(P_DEPT) as a lexical parmaeter.
    How do I acheive the above in report parameter form? Any help is appreciated greatly...
    Thanks
    Suma
    Message was edited by: suma
    user519129

    Hi Brad,
    Thanks for the reply. I had almost given up hope on receiving replies to this message.
    I do agree that it is simpler (and a lot striaght forward) to just use forms to develop dynamic LOVs of cascading prompt style, that is required in my app. But in our shop, we have integrated forms and reports in such a way, that all the report parameters are handled by report developer's own parameter form, rather than coding a separate logic on the forms side to handle the report parameters(as this has to be done on the forms side for every report that we generate, We thought it would be better to use the reports developer to handle the parameter input and then pass the .rdf to forms app). Currently in all our app, the parameter form generated by the report developer is rendered as HTML form on the browser (when the concerned rdf file is called within the forms app) and by submitting this we get the report output)
    Hence I am very keen to get this done somehow on the report developer side.
    I do hope I get some input on this. Also, its a little surprising that such a simple feature is not readily avalibale in the report parameter form. I hope oracle report developer team is reading this message...:)
    Thanks
    Suma

  • How to get LOV button in Forms 10g

    Hello Everyone,
    I have created a form in 10g and also create a LOV for item (DESIGNATION). But i can't get/see the LOV button, always i have to press Ctrl+L. And then from the list item can select.
    I need that button nearer to particular item for which LOV is created, just like we can get into Oracle Apps.
    Regards,
    JAK

    Hi Tony - Mark,
    Thanks for your reply. I did the changes " app.ui.lovButtons=false to true " as you both told me, but still the LOV button is not getting beside that text item.
    The senario is, Created a text item HIREDATE & to this item the Calendar library is attached i.e. PL/SQL library calendar90.pll, then create a KEY_LISTVAL trigger on the date item which is to use the Date List of Values window.
    Now when i run the form (Ctrl+R), the form will open in browser, but i can't see the LOV button with the HIREDATE text item. Always i h've to use "Ctrl+L" then it shows the calendar. So user has to know, how to open this calendar or just simply put the date directly in to the text item.
    I want to see the button (Just like we can get into oracle application, after attaching the value set). Whether it is possible to get it or i h've to place a button beside to HIREDATE text item & on this button code can be write to open the calendar.
    Thanks & Regards
    JAK

  • Dynamic LOV FOR TABULAR FORM 6i

    Hi,
    I have tabular form of two Items(ID,DESC) and I want to Populate LOV for item(ID) every record
    and record_Group & SQL statments are stored in DB.
    ACTION: when query in POST-QUERY Trigger get for every record in tabular form -- the stored SQL-Statment from table then put it into dynamic record_group and populate the dynamic LOV.
    Please advice,
    Thanks in Advance.

    OK daniel
    This form used for get reports
    then header get the name of Report (Table-A) (report_ID),(report_desc).
    then details for get the Parameters will send to report builder (Table-B) (detail_id),(report_id),(sql_stm).
    so parameters may be need for example stock code so this record need to query from stocks table to get stock code and stock name.
    next record for item Code so need to query from Items table to get the Item code and Item name
    another report for employees so the user enter report code then when query and get in details block employee code and employee name.
    so the lov will check if this record have query sql-statment or not if have execute it in the record_group then in lov
    then go to the next record if sql_stm is null then no lov in this record and so on.
    thanks..

  • Dynamic Lov in Tabular form

    Hi,
    I'm creating select lists in tabular forms
    and 2 select lists in it.
    I'd like to use 1st list as a filter of 2nd list dynamically.
    How can I do that?
    Please advise me.
    I found one tips(http://htmldb.oracle.com/pls/otn/f?p=18326:54:10017106699293281168::::P54_ID:1282) and I tried to do it but it didnt work...
    Thanks

    Hi,
    There's several postings in the forum on how to do this, so if this message doesn't make sense, search the forum some, maybe for my Name?
    If I remember correctly, using the following as an example, to something similar. This is based on a country and state lookup.
    field 1 (:P1_country):
    select distinct country from lu_location;
    field 2 (:P1_state):
    select distinct state from lu_location
    where country = :P1_country;
    Make :P1_country a 'Select List with Submit', and it 'should' work. I'm at home, so I don't have access to my database.
    Bill Ferguson

  • Dynamic LOV on form in update mode

    I have a link to a portal form that specifies the primary key as below:
    Portal30.wwv_user_utilities.get_url(
    'application.form_link',
    'primary_id',to_char(id),
    '_primary_id_cond','=');
    This works well. I can access the form in update mode for the specified row. However, on the form I have 2 combo boxes: one is for make of vehicle and the other for model. The make combo box uses an lov derived from a simple table query. The model combo box is a dynamic lov using a query based upon the value of the model. When entering the form in update mode, it fails to set the make bind variable to anything, so the model is left blank with no options. How can I set the value of the make bind variable on the link so I can get the dynamic lov for the model to be populated correctly?
    (I have already tried to add the model to the url link, to no avail).
    null

    Hi noor,
    When I click the link button I am opening the userdefined form and filling the corresponding document number details manually.
    Do you mean, you're filling the form, field by field???
    If so you're doing it wrong. That way the form has no connection to the correct Database record and cannot update it.
    The correct way is as follows:
    Put a DocEntry field in your form and bind it to the DocEntry database field.
    Set this field to NOT Visible by default.
    When a user clicks the LinkButton, you change the form mode to FindMode, make the DocEntry field visible use the oForm.Items.Item("DocEntry").Specific.Value = "" method to set the correct value to the field (use the DocEntry number NOT the DocNum) and use the oForm.Items.Item("1").Click() to open the correct record.
    Then the user can change the value it needs without errors.
    Best Regards,
    Vítor Vieira

  • Dynamic LOV in a Tabular Form

    Can somebody please tell me if there is a easy way to code a
    dynamic LOV in a Tabular Form?
    I need the ability to access a column value in the table row, to use in the WHERE clause of LOV query for another column in the row? Seems
    like that should be easy , but not finding an answer.
    Thanks for any help.
    Carol

    Hi Carol,
    You can add the select list's definition directly into your SQL statement using APEX_ITEM.SELECT_LIST_FROM_QUERY - see: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDIDGDA]
    If you first run your page with your existing select list on it, then do a View Source and look for the select list, you will see a "name" attribute of something like "f01" or "f02" etc. Make a note of the number part of this.
    Then update your SQL statement to include the above and using the number you noted as the Index value (say, 4):
    SELECT EMPNO,
    ENAME,
    DEPTNO,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(4,MGR,'SELECT ENAME d, EMPNO r FROM EMP WHERE DEPTNO = ' || DEPTNO || ' AND EMPNO <> ' || EMPNO) MGR
    FROM EMPThat would give you a select list of employees in the same department as the current employee (excluding that employee themself)
    Andy

  • Select item on a Tabular form with a different dynamic LOV on each row

    I would like to use a tabular form where one of the columns is a dynamic LOV based Select, and where that dynamic LOV refers to one of the column values on each row.
    So if the tabular form represented a list of teams and the LOV-based Select column was the current team leader, I would want that select list to be populated only with the members of that team (different for each row). Since the list of team members is in some other table (all_players or something) I would want to populate the LOV with a query with a where clause that selected only those players records with a team-membership equal to the current tabular form's team id. So, on each row that select list's contents would be different.
    -- Justin

    I'm beating a dead horse here but I did get something to work with "less" code. My current needs do not require me to cascade drop downs, I only want 1. You can use the query like the in the first reply (but I don't have a table with joins) I created a simple two column table dept_emp with 4 records 10,null 20,null .... I want to fill the nulls with an employee but ONLY an employee that matches the dept. (Same concept of team leader and members).
    Here's the query:
    select apex_item.display_and_save(1,dept) dept,
    apex_item.select_list_from_query(2, name, 'select ename from emp where deptno='||dept) name
    from dept_emp
    I removed the code that was there already (ApplyMRU) and just put in this code:
    BEGIN
    FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
    UPDATE dept_emp
    SET
    name=HTMLDB_APPLICATION.G_F02(i)
    WHERE dept=to_number(HTMLDB_APPLICATION.G_F01(i));
    END LOOP;
    END;
    The G_F01 matches the column 1 and so forth. There's more documentation but little explanation at:
    http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/api.htm#sthref2171
    The thing I could not get to work was a dynamic message
    #MRU_COUNT# row(s) updated, #MRI_COUNT# row(s) inserted.
    Not sure when the MRU_COUNT gets populated (probably in the routine I removed ;))
    You're probably way past me by now but I like to have as little code as possible when it comes to maintaining an app. That's why I liked oracle forms so much. This kind of stuff was pretty easy to do.
    Thanks again everybody!

  • Creating dynamic LOV in form builder 6i

    Hi All,
    I am new to form builder.
    I want to create dynamic lov, means
    Project type
    Client
    Work_type(thsi is also lov) ->> 1) Billable
    Reason (this is also lov) ->> 1) Billable
    Work_type(thsi is also lov) ->> 2) Non-Billable
    Reason (this is also lov) ->> 1) Fresher
    2) Project Manager
    As shown above, Suppose the project type is client then I will select either "Billable" or "Non-Billable" value.
    If I am selecting Work_type LOV as "Billable" then it should display "Billable" value in reason LOV
    or if I am selecting Non-Billable value from Work_type LOV then reason LOV will display the list of value as Fresher and Project Manager.
    Please help me, its very urgent.
    Thanks in advance.
    Regards,
    Bluetooth

    Bluetooth,
    This can be accomplished by creating two seperate record groups; one for Billable and one for Non-Billable. Then - in the WORK_TYPE When-Validate-Item (WVI)trigger - when the value is "Billable" you assign the Billable Record Group to your LOV or if the value is Non-Billable, then you assign the Non-Billable record group to your LOV. Your Record Group queries must return the same number of columns and the column names must match. If your record groups need to have a different number of columns and column names, then I would just use two seperate LOV's and assign them to the item accordingly. For example:
    /* Sample WVI trigger */
    DECLARE
      lov_id    LOV;
      item_id   ITEM;
    BEGIN
      lov_id := Find_LOV('YOUR_LOV_NAME');
      /* Option 1: Change Record Group of LOV */
      IF ( :YOUR_BLOCK.WORK_TYPE = 'BILLABLE' ) THEN
        IF ( Get_LOV_Property(lov_id, GROUP_NAME) != 'BILLABLE_RG' ) THEN
          Set_LOV_Property(lov_id, GROUP_NAME, 'BILLABLE_RG');
        END IF;
      ELSIF ( :YOUR_BLOCK.WORK_TYPE = 'NONBILLABLE' ) THEN
        IF ( Get_LOV_Property(lov_id, GROUP_NAME) != 'NONBILLABLE_RG' ) THEN
          Set_LOV_Property(lov_id, GROUP_NAME, 'NONBILLABLE_RG');
        END IF;
      END IF;
      item_id := Find_Item('YOUR_BLOCK.REASON');
      /* Option 2: Seperate LOV's */
      IF ( :YOUR_BLOCK.WORK_TYPE = 'BILLABLE' ) THEN
        IF ( Get_Item_Property(item_id, LOV_NAME) != 'BILLABLE_LOV' ) THEN
          Set_Item_Property(item_id, LOV_NAME, 'BILLABLE_LOV');
        END IF;
      ELSIF ( :YOUR_BLOCK.WORK_TYPE = 'NONBILLABLE' ) THEN
        IF ( Get_Item_Property(item_id, LOV_NAME) != 'NONBILLABLE_LOV' ) THEN
          Set_Item_Property(item_id, LOV_NAME, 'NONBILLABLE_LOV');
        END IF;
      END IF;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Default value of combobox using dynamic LOV in Oracle Portal form

    We are trying to specify the deafult value of a combobox on a form that derives it options from a dynamic LOV. The option value is a number and the display is text.
    E.g.
    <Option value="1">Books
    <Option value="2">CDs
    We have tried various ways of setting the default option to be selected on the Combobox. First, we tried using a sql query to return a number from a table (sql query returns number -> in the default value type field). Next, we tried to use a constant number (default value: 2, default value type: constant). In neither case, did the Oracle Portal form pre-select our default choice in the drop-down list.
    Any suggestions? I browsed the other forum articles on this topic and noticed several folks believed it was a bug in Portal. We are using Portal version 3.0.9 (latest App Server for the Ebusiness Suite). Thanks in advance.

    You can manually add the select list (or for that matter anything else) to a wizard created form. If the select list is for an existing item, simply change the "Display As" setting from Text to a Select List based on the LOV you create. Any changes made will then be applied by the update process.
    cheers,
    Ron

  • Dynamic lov on a apex page parameter form

    I'm trying to create a dynamic lov on a apex page parameter form. I read another post to look at metalink note. 292521. I asked our DBA to review the note but he claims he can't find the article. he's also been unable to find the last 2 metalink requests i've made. can someone verify metalink note 292521 exists so i can inform the DBA?
    Thanks,
    Brian

    Brian, I cannot find that note either, try posting your question in the APEX forum, this forum is for Oracle Portal questions.
    Cheers,
    Mick.

  • How to implement custom lov button without the standard template.fmb?

    hello,
    i am developing a application using oracle forms 10g. i can't use the standard template.fmb because my application does not run in ebs. there comes the problem: i want to implement the lov button function like the template does, such as :
    1. when the text item get focus, lov button display.
    2. when the text item lost focus, lov button disappear.
    3. when scrollbar scrolls, the position of lov button adjust accordingly.
    4. there is only one lov button in one form and the lov button was created dynamicly.
    i found it's so complex to do this.
    anyone can help?

    Try to change the following setting to true
    app.ui.lovButtons=falsein $ORACLE_HOME\forms\java\oracle\forms\registry\registry.dat

  • Not Able to put LOV in search form fields

    Hi
    I created the search form using Bindvariables.In my application i am using only JSF,ADF BC,trindad components(In Mobile apps,we have to use only trinidad comp's).
    I want search fields as LOv's .
    In AppModule,under view,ExecuteWithParams i have bindvariables.while dragging them i selected the selectonechoice ,in Edit List Binding Window,for base datasource i am giving one VO,and for list Data Source i am giving different VO .
    everithing is fine.but when i click 'ok' Button,it is giving th efollowing error.
    The selected target attribute has read-only access.please select an updateable attribute
    what is the Wrong i am doing?
    PLease anyone help me in figuring out my problem?
    I want to make the search fields as LOV in search form.so that user no need to enter the data in to them.simply can select the value from LOVand find out the results .
    Sailaja.

    what actulay is the problem.. i triied it , this is working fine.
    I guess just in the lov you have made make both the fields updatable
    Edited by: Rohit Hoon on Apr 23, 2009 2:13 AM

  • Theme 23 does not display popup LOV in tabular form

    I created new application using new Theme 23. In tabular form the popup LOV button does not show. While using this theme the column LOV button is soooooo small it is not visible. If I move the cursor on the side of the field eventually I cursor handle will change and I can click and popup LOV will show. When I switch to an older theme (e.g. 21) the LOV button shows just fine.
    Does anyone can offer a solution? Can I expect more this type of problems in the new theme 23?

    I examined exported application file. Indeed the problem is p_column_id parameter. It should be decimal number for translated application. Characters %2C in p_column_id value stands for comma. It should be dot instead. Parameter value should be p_column_id=30289208519476123679.915121.

  • Problem with dynamic LOV and function

    Hello all!
    I'm having a problem with a dynamic lov in APEX 3.0.1.00.08. Hope you can help me!
    I have Report and Form application. On the Form page i have a Page Item (Popup Key LOV (Displays description, returns key value)).
    When i submit the sql code in the 'List of vaules defention' box. I get the following message;
    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.
    When i excecute the code below in TOAD or in the SQL Workshop it returns the values i want to see. But somehow APEX doesn't like the sql....
    SELECT REC_OMSCHRIJVING d, REC_DNS_ID r FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) order by 1
    returns_dns_lov_fn is a function, code is below;
    CREATE OR REPLACE FUNCTION DRSSYS.return_dns_lov_fn (p2_dns_id number)
    RETURN dns_table_type
    AS
    v_data dns_table_type := dns_table_type ();
    BEGIN
    IF p2_dns_id = 2
    THEN
    FOR c IN (SELECT dns_id dns, omschrijving oms
    FROM d_status dst
    WHERE dst.dns_id IN (8, 10))
    LOOP
    v_data.EXTEND;
    v_data (v_data.COUNT) := dns_rectype (c.dns, c.oms);
    END LOOP;
    RETURN v_data;
    END IF;
    END;
    and the types;
    CREATE OR REPLACE TYPE DRSSYS.dns_rectype AS OBJECT (rec_dns_id NUMBER, rec_omschrijving VARCHAR2(255));
    CREATE OR REPLACE TYPE DRSSYS.dns_table_type AS TABLE OF dns_rectype;
    I tried some things i found on this forum, but they didn't work as well;
    SELECT REC_OMSCHRIJVING display_value, REC_DNS_ID result_display FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) order by 1
    SELECT REC_OMSCHRIJVING display_value d, REC_DNS_ID result_display r FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) order by 1
    SELECT a.REC_OMSCHRIJVING display_value, a.REC_DNS_ID result_display FROM
    TABLE(CAST(return_dns_lov_fn(:P2_DNS_ID) AS dns_table_type)) a order by 1
    Edited by: rajan.arkenbout on 8-mei-2009 14:41
    Edited by: rajan.arkenbout on 8-mei-2009 14:51

    I just had the same problem when I used a function in a where clause.
    I have a function that checks if the current user has acces or not (returning varchar 'Y' or 'N').
    In where clause I have this:
    where myFunction(:user, somePK) = 'Y'
    It seems that when APEX checked if my query was valid, my function triggered and exception.
    As Varad pointed out, check for exception that could be triggered by a null 'p2_dns_id'
    Hope that helped you out.
    Max

Maybe you are looking for