Adding LOV to a field in Oracle Forms

Hello,
I have a requirement, where in I want to add an LOV to one of the field in the standard form.
Pls. let me know what is the best way/process to do this?
Thanks in Advance.
Raj

https://wiki.sdn.sap.com/wiki/display/ABAP/AdobeFormsfrom+Scratch

Similar Messages

  • Adding LOV in Title field of Qualification Form in Other button of People

    Hoe to add LOV in Tiltle field of Qualification form.
    Navigation
    US HRMS Manager-Enter and maintain-others-qualification
    Regards
    Niraj

    Hi
    is the navigation of Qualification form in Oracle application form (HRMS Module) No it is not this is Oracle Developer ( Forms Module)
    i think u need this link:
    OA Framework
    Regards,
    Abdetu...

  • How to encrypt the text in password field in Oracle Forms version 6i

    Need help!
    How to encrypt the text in password field in Oracle Forms version 6i?
    one way is to change the settings in the property palette. Can somebody provide me some script to be run while the form is running which will enable the password to be encrypted?
    Thanks!

    Hello,
    Do you mean "hidden" (replaced with stars) or encrypted (that needs to be decrypted ?
    Francois

  • Hierarchical Field in Oracle Forms

    Hi Experts
    Can any one please give me a sample code to write a hierarchical field in Oracle Forms. I want to display
    Category->Organization->Item->Quantity
    Thanks in Advance.
    Ahmed

    okay,
    place your treeitem in the layout. The treeitem has to the only item in the block and property "Single record" has to be true.
    To populate your tree with data you can either
    - use a query to populate a treeitem have a look at this thread Tree Menu
    - use the Ftree.Add_Tree_Node built-in and program your own logic.

  • How to view field name for a field in Oracle form?

    I was told you can do this but I forgot how.
    If you want to build a report, but don't know what the field name is in Oracle, you can open up the Oracle form and find the screen with that field name and do a trick that tells you the Oracle field name. Any help?

    Try this....
    REPORT ZZDYNAMIC_FIELD.
    DATA: BEGIN OF it1 OCCURS 0,
    printer(10) TYPE c,
    paper1(20) TYPE c,
    paper2(20) TYPE c,
    paper3(20) TYPE c,
    END OF it1.
    DATA: descr_ref TYPE REF TO cl_abap_tabledescr,
          i         TYPE i.
    FIELD-SYMBOLS:
      <key_comp_wa> TYPE abap_keydescr,
      <field>       TYPE ANY.
    it1-printer = 'MUC123'.
    it1-paper1 = 'KBLOGO'.
    it1-paper2 = 'BLANK'.
    it1-paper3 = 'DINA5'.
    APPEND it1.
    it1-printer = 'MUC123'.
    it1-paper3 = 'KBLOGO'.
    it1-paper2 = 'BLANK'.
    it1-paper1 = 'DINA5'.
    APPEND it1.
    TRY.
        descr_ref ?= cl_abap_typedescr=>describe_by_data( it1[] ).
      CATCH cx_root.
    ENDTRY.
    LOOP AT it1.
      i = 0.
      WHILE 1 = 1.
        i = i + 1.
        ASSIGN COMPONENT i OF STRUCTURE it1 TO <field>.
        if <field> is not assigned.
          EXIT.
        endif..
        IF <field> IS ASSIGNED AND <field> EQ 'KBLOGO'.
          READ TABLE descr_ref->key INDEX i ASSIGNING <key_comp_wa>.
          WRITE <key_comp_wa>-name.
          exit.
        ENDIF.
      ENDWHILE.

  • LOV in 2 field of a form

    Hello !
    I created 2 text entry fields on a form. Both contains a numeric value of the same LOV (a "from" field and an "to" field). Putting the focus in one of them results the selected value filled into the relevant field in Forms 6i.
    Now I want ot migrate the form into 10g, and the value fills ALWAYS the first text entry independently of the focused item.
    Please, help, how to solve this....
    Thank You in advance,
    Zoltán

    See the LOV properties "Automatic Select" and "Automatic Skip", a combination of them will make the LOV to automatically use the selected value and the focus will go to the next item (next item in navigation).
    Tony

  • Adding a toolbar to an existing Oracle form

    Hi,
    I am totally new to Oracle forms development. I have a couple of questions ->
    1. Is it possible to add a new toolbar to an existing Oracle E-Business suite form e.g. the Contact Center form? According to the Oracle Apps developer guide, forms can be modified either “by extension” or “ by modification”. It doesn’t clearly say whether a new tool bar can be added or whether an existing one can be modified to add new buttons.
    2. If I want to try out some of the stuff mentioned in the Oracle Apps developers guide and play around forms, what tools do I need? Is "Oracle Forms builder" the only tool availabe to edit and generate forms? If yes, does it come as a free download or can I get a trial version from somewhere?
    Thanks.

    1. Is it possible to add a new toolbar to an existing Oracle E-Business suite form e.g. the Contact Center form? According to the Oracle Apps developer guide, forms can be modified either “by extension” or “ by modification”. It doesn’t clearly say whether a new tool bar can be added or whether an existing one can be modified to add new buttons.Did you review (Chapter 10, Controlling the Toolbar and the Default Menu - APP_SPECIAL: Menu and Toolbar Control)?
    2. If I want to try out some of the stuff mentioned in the Oracle Apps developers guide and play around forms, what tools do I need? Is "Oracle Forms builder" the only tool availabe to edit and generate forms? If yes, does it come as a free download or can I get a trial version from somewhere?You will need Oracle Forms 6i and/or some other SQL editor (i.e. SQL*Plus, TOAD, SQL Developer, ..etc).
    You can download Oracle Developer 6i from:
    Oracle Forms Developer for Windows
    http://www.oracle.com/technology/software/products/forms/htdocs/winsoft.html
    There is no trial version or software key required to use the tool.

  • Create lov at run time in  oracle form 10g

    i want to create a lov and record group dynamically at run time..
    i have the code in when-form-instance..
    Declare
    v_lov lov;
    rg_id recordgroup;
    gc_id groupcolumn;
    tem_num number;
    v_rg_id number;
    begin
    rg_id := find_group('My group');
    if id_null(rg_id) then
    rg_id := Create_group('My_group');
    gc_id := add_group_column(rg_id,'emp_id',number_column);
    gc_id := add_group_column(rg_id,'ename',char_column,15);
    end if;
    v_rg_id := POPULATE_GROUP_WITH_QUERY('My_group','select t.employee_id,t.first_name from employee_mt t where t.employee_id in (103,104,106)');
    --tem_num :=populate_group(rg_id);
    v_lov := find_lov ('LOV_NAME');
    set_lov_property(v_lov,group_name,'My_group');
    set_item_property('VEH_SEARCH.TXT_VEH_CODE',lov_name,'lov');
    End;
    now i have problem...whether i create first a lov and record group at design time or not????
    if i create a lov and have the recordgroup column then what is the benefit of dynamically lov...???
    thanks

    Hi.
    It is possible with some restrictions. Let's say you agree there are max 5 columns in your LOV-s. That way you can easily create LOV to RG colums mapping (what Andreas pointed out).
    For example :
    1. in design time create RG with dummy columns (for example : c1, c2, c3, c4, c5)
    2. in design time create 1 LOV with 5 predefind columns (for example : c1, c2, c3, c4, c5)
    3. populate that record group with select (selecting 5 columns. If you do not have 5 columns in your table on which LOV is based just select dummy columns for the rest of the columns) aliasing them as c1, c2, c3, c4, c5 (same as in LOV from step 2)
    4. asign that RG to the LOV in step 1
    5. in LOV show just "non-dummy" rows form step 3
    The rest you already figured it out.
    The benefit of this approach is questionable as the same can be done creating more RG and LOV-s in design time. So I believe this is the matter of developer preferences. By the way the concept I described we use on daily bases dealing with LOV-s.
    Best regards.

  • Question about hot key to jump between fields in oracle form

    say I have bunch of orders to upload,
    at the order number field I type in the number
    and move the mouse to click on next line to type another number
    how can I use some hot key to replace the mouse movement.
    I know if use tab key several times you can come to the next line eventually, but is there any better hot key just move to the next line?
    my purpose is to automatically upload bunch of orders, and bypass the mouse move, if there is some similar case study material, I really appreciate.
    thank you

    There is one built-in to move to the next record programatically. Like...
    NEXT_RECORD;It is a restricted procedure check the forms help.
    In your case can use on KEY-NEXT-ITEM trigger.
    or if you are uploading from any file or any other source then also you can use this built-in in your code while uploading.
    Check the below documentation. Select on your version.
    http://www.oracle.com/technology/documentation/6i_forms.html
    -Ammad
    Edited by: Ammad Ahmed on May 25, 2010 12:15 AM

  • Sorting by non-base table fields in Oracle Forms

    I have a form with a block that associated with a table.
    There are several base table fields and several non-base table fields displaying information in this block.
    I need to sort the data in this block by non-base table fields.
    Is this possible without rewriting the form so that the block is not associated with a base table, and then manually populating the block?

    Hi mark
    You could do the following
    Create a database function on the server,
    The function should return the value that you want to order by.
    In your form update the ORDER BY clause to use the function
    Example:
    Assume you have a block base on the employee table,
    and you want to order by the department name not the department no (The employee table only contains the department no)
    The function will be
    CREATE OR REPLACE FUNCTION "TEST_ORDER" (pDEPT_NO NUMBER) RETURN VARCHAR2 AS
    DptName VARCHAR2(100);
    BEGIN
    SELECT DEPT_NAME
    INTO DptName
    FROM DEPT
    WHERE DEPT_NO = pDEPT_NO;
    RETURN DptName;
    END;
    The form block ORDER BY Clause will be
    TEST_ORDER(DEPT_NO)
    Hope this will solve your problem
    Regards

  • Need to enable a Field in oracle form- Urgent

    I have a search from where i need to fill the customer number and if its a valid customer number it should automatically enable the next filed ie.. customer name. Can not use the 'TAB' out functionality on customer number to enable customer name.
    Can anyone say me the logic for it

    What I understand from the question is, you want the customer name field getting enabled without 'tab'bing out of customer number?
    Maybe you can use the post-text trigger in the customer number field to set the properties of customer name as Sri and Craig suggested.
    An alternative approach would be,
    1. Keep both the items enabled.
    2. In the when-new-item-instance trigger of customer name write this code -
    IF <customer_num NOT valid OR customer_num IS NULL> THEN
    message('FRM-XYZ Invalid Customer Number.');
    go_item('customer_num');
    END IF;
    This obviously, won't disable any item but serve your purpose w/o much hassles.
    Regards
    Bhushan

  • 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.

  • Adding a field to a form based on a table

    Hi
    I am unable to make the following scenario work.
    I have a form which is called from a report. The report passes in an ID parameter. This form field then displays the text associated with this ID because it has a LOV attached to it.
    However, the user is able to select other values from the LOV, which then renders the form useless.
    Is there a way of:
    - disabling the LOV?
    - adding a separate text field to the form where I can display the value I want with no LOV?
    Thanks

    As part of my attempts to make this work, I added a field to a form, with the intention of passing a value into it using the link to the form. But the field does not appear in the list of parameters available to the link.
    why is that?

  • 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 to Create a ADF Form same like in Oracle Forms

    Hi,
    I need to create a Form in ADF where in on the top I have two text fields with LOV and one Text with out LOV and a button. Selecting values from the first two should populate the value of thid text
    and pressing the button should actually populate the fields below.
    Below I have several other fileds of which few are queried from the database and other are calculated fields (aka like control fields in Oracle Forms).
    Now I am a Forms Developer and know quite a few things in ADF as well, like creating Master Details Forms and some of the work flows. Some basic functionaliy.
    I want to make an attempt to create something like this which is created in Oracle Forms.
    What I have tried as of now is create a query and added LOV to first Text. Displayed all the fields as ADF form and on top I have put a ADF Query panel , using this I am able to populate few of the columns.
    Can someone tell me what is the best way to do the things which I have mentioned.
    TIA

    Hi,
    If your need is to auto populate other employee fields of the page based on previous 2/3 fields like deptno, empno, loc, then you can achieve this with button action listener. You can add runtime bind variables to your view object and set them with user input values and execute query.
    for e.g, you can add below code in your AMImpl class and expose it to UI and invoke it from UI (from page, create a managed bean and call AM method)
    /***** Sample code only*****/
    public void refreshVO(Integer EmployeeNo, Integer DeptNo, Integer locNo)
    ViewObject vo = this.getEmployeeVO();
    vo.setWhereClause(null);
    vo.setWhereClauseParams(null);
    //Adding empNO where clause
    vo.setWhereClause("employeeno = :empNum);
    vo.defineNamedWhereClauseParam("empNum", null, null);
    vo.setNamedWhereClauseParam("empNum", EmployeeNo);
    // similarly add logic for DeptNo, LocNo and you can additional check if they are null or not null
    vo.executeQuery();
    Regards,
    Ravi Nuka

Maybe you are looking for