Arranging of records in LOV

Hi ,
I have a unique requirement. Consider there are two fields in a form. One is a list box from which i select a value. Another field has an LOV based the first field. My requirment is the LOV in the second field should come in such a way that, the records pertaining to the value in first field should be list first and others should follow.
Rajesh.r

I cannot spell it out exactly without knowing the data relationship but you should be able to do it with
order by decode(...)

Similar Messages

  • How can i populate records using LOV value in form 6i

    Create a form based on the following output use EMP Table
    Create a non Database Block i.e Control Block----> Dept No
    Create a Database Block -EMP
    Create an LOV for the Dept no from dept table.
    For the Current Dept No . Populate the Employee Records
    How can i populate records using LOV value????
    thanks

    How can i populate records using LOV value in form 6i Start by posting in the correct forum: {forum:id=82}
    (Seriously: after making all your previous posts in the Forms forum, how do you end up posting in this one? Is it because the Forms forum has changed category?)

  • How can i populate records using LOV value

    Create a form based on the following output use EMP Table
    Create a non Database Block i.e Control Block----> Dept No
    Create a Database Block -EMP
    Create an LOV for the Dept no from dept table.
    For the Current Dept No . Populate the Employee Records
    How can i populate records using LOV value????
    thanks

    Hi maddyd2k
    How can i populate records using LOV valueIt's not clear what u r trying to do create, create then want to...
    1.Pls Create a non-db item db set to > no named DEPT_NAME
    2. when creating the LOV assign the DEPT_NAME FROM DEPT table to that displayed item and u have also to assign the Dept No selected to the Dept No in the emp block
    To populate or display DEPT_NAME after Query - the If i got ur problem then - u need to cretae a Post-Query Trigger then use the following...
    BEGIN
    SELECT DEPT_NAME
    INTO :CONTROL_BLOCK.DEPT_NAME
    FROM DEPT
    WHERE Dept No = :Dept No;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    WHEN OTHERS THEN (ERRTXT);
    END;Hope this helps...
    Regards,
    Abdetu...

  • Use value of multi record in LOV in same multi record

    Hello,
    I have created a multi record tabular form (report actually). Some fields are select lists with of course an LOV. I would like to use a value of each current row to use in the LOV to make it dynamic.
    This is the where clause of the LOV:
    and rda.tsr_code = :P1103_TSR_CODE (TSR_CODE is a column in the multi record)
    But that is not working, it works when I use:
    and rda.tsr_code = 'M' (but that is not very dynamic and I have to make numerous different LOV's...)
    After reading several pages, I could not find a solution...
    Anyone?
    Edited by: 960788 on 23-sep-2012 13:56

    Hello Garcol,
    Search the forum with Cascading LOV, Tabular Form. You will get lot of threads discussing on this.
    See http://dbswh.webhop.net/htmldb/f?p=BLOG:READ:0::::ARTICLE:2003800346210117 blog entry by Jari.
    Regards,
    Hari

  • Add multiple records thorough lov, help of one field?

    Hi All:
    Actually, I have a datablock with two fields, one is id, other one is name. I select no of records in datablock is 3.My requirement is, there is should be one field on the above of this block.on this block should be lov. suppose that field name is "abc_name", lov delivers value in abc_name and there should be button. when button pressed then value transfer from abc_name to datablock field "name".
    when i enter the 2nd value then on pressing button it will transfer on other record of datablock field "name" and so on. Please help me. How it will be done. I am unable to transfer more than one records from "abc_name". to datablock fied "name".Thanks
    Ali

    I'm sorry, it's not clear to me what you want.
    Are you saying that when you select a value from the LOV it should populate ALL the records rather than just the current one?

  • State where no records match LOV

    hi
    i have a column ins_co_id, insurance_name, co_pay_rate which retrive values from LOV
    here the problem is a customer may or may not have insurance
    in case of having insurance the code works fine
    but when the customer does not have insurance
    im getting error
    my code is
    PROCEDURE Compute_amounts IS
    BEGIN
    IF :refill.ins_co_id IS NULL THEN
    :refill.ins_co_name := NULL;
    :refill.ins_co_pay := 0;
    :refill.amt_due := :refill.total_charge - :refill.ins_co_pay;
    ELSE
    get_ins_desc;
                        :refill.ins_co_pay := :refill.total_charge - (:refill.total_charge *
    (100 - :refill.cust_ins_co_pay_rate) * .01);
    :refill.amt_due := :refill.total_charge - :refill.ins_co_pay;
    END IF;
    END;
    and the error is
    FRM-40735:WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-01403
    thanks

    hi
    its working but the code which calculates amt_due is calculated
    BEGIN
         get_ins_desc; -- gets ins info from customer_insurance_co_x table
    SELECT co_pay_rate
    INTO :refill.cust_ins_co_pay_rate
    FROM customer_insurance_co_x
    WHERE ins_co_id = :refill.ins_co_id
    and customer_id = :prescription.customer_id;
    get_ins_desc;
    :refill.ins_co_pay := :refill.total_charge - (:refill.total_charge *
    (100 - :refill.cust_ins_co_pay_rate) * .01);
    :refill.amt_due := :refill.total_charge - :refill.ins_co_pay;
    EXCEPTION WHEN no_data_found THEN
    :refill.ins_co_name := NULL;
    :refill.ins_co_pay := 0;
    :refill.amt_due := :refill.total_charge - :refill.ins_co_pay;
    END;
    thanks

  • Error in updating records brought by LOV

    Hi everybody
    I am using Oracle 10 g
    when fetching data from the database by choosing a specific record from LOV then trying to make "save" means "commit" I have this error
    FRM-40509: Oracle error: unable to update record
    I think there is a problem in mapping btw the record in the form and the cursor pointing to that record in the database because when i execute "next_recod" button after choosing one in LOV it go to the record next the one specified before choosing from LOV
    knowing that updating process working correctly when choosing by ("first_record, previous_record, next_record or last_record)
    so what is the solution
    please help
    thank you very much

    yes please
    I didn't know what do you mean by customized or default menu
    I build LOV using the wizard and bind it by a query to a table then make Show_LOV from the form
    so when I choose one of the rows and they brought to the text boxes assigend to them after that when I make "Commit" I got that error
    thank you for help
    and sorry for bieng late in reply, I don't have enternet after 2:00 pm

  • Lov Records

    Hi guyz,
    i want to select the records from LOV with the current entered record. and delete on commit.
    example.
    i have an IP module related to department wise. how can i select the current item record to an LOV?
    Example: if i enter record in Department field "Administration' and in next filed with attach lov with IPS list. when i press this button it should shows the current department IP related to Administration and when i commit the record it should delete selected IP from IPS table
    how can i perform this?
    Regards

    Yes andreas,
    some like this let me explain you my scenario how i want to restrict the user by choosing LOV from departments.
    i have three tables
    1) system_user
    2) Ip_master
    3) ip_details
    IP_master and IP_details im using this for lov
    system_user contain fields dept_name and user_ip by click on button which is attach to user_ip field it will show the ips but i want that before displaying all ips it will check the :system_user.dept_name what ever i enter in dept_name like Administration, accounting, etc etc it will shows that department related ips. if dept_name is null or not related to :system_user.dept_name then shows a alert that department not exist like this?
    i create an lov in system_user form and by clicking button lov appear with the below code on when button pressed triger but it will show all departments IPS from 172.xx.xx.01 to 172.xx.xx.254
    DECLARE
    LOV     BOOLEAN;
    BEGIN
    LOV :=SHOW_LOV('LOV48');
    END;
    when i select the lov button it should shows the ips related to dept_name what i enter in system_user.dept_name if system_user.dept_name is null then then set an alert please enter the department name something like this.
    how can i modify the code, plz give me some hint. like this.
    Regards

  • How to create a multi column list item and select these values from a LOV

    Hi all,
    My requirements are:
    1) create an LOV which holds the productno, productname and productprice fields (this is working)
    2) at run time, select one record from LOV and populate the list/grid with this selected record values of productno, productname and productprice fields, so we are showing them on the form in the form of a table/grid (not working)
    3) be able to select multiple records from LOV and be able to populate the list item with multiple records (not working)
    4) have two more columns in the list/grid, for productquatity and total price (not wokring)
    Please help me.
    how can i create this grid or list in oracle
    whats the possible way of acheiving this in oracle

    If you use a list item to display multiple columns then you'll need to use a fixed-width font. You can achieve a similar look with proportional fonts by using a normal block and setting the fields' bevel to 'None'.
    Each column in the LOV has a Return Item property (under Column Mapping Properties). Set this to a :block.item reference for each column to bring the data back into those referenced fields.
    You can't select multiple records from an LOV. For this you will need to create your own form. Check the help for system.mouse_button_modifiers to see how to respond to Ctrl+click and Shift+click.
    To add columns just modify the LOV's record group's query.

  • Cannot DELETE rows from LOV on running...is it a bug ??

    One of the features I appreciated in the new version of JHeadstart is that we can now insert, modify and delete rows on LOV (even in the database).
    We have just to check on Lookup properties :
    Multi-row insert allowed
    Multi-row update allowed
    Multi-row delete allowed
    I cheked all of them and on runnig I could insert and update records in LOV.
    When I tried to delete records from LOV the system display information message "nothing to save" and in fact no records were deleted.
    Normally since I checked the delete property it should be possible to delete rows from LOV
    thanks for any Help

    Monta,
    I could reproduce this, it is a bug. Added to the fix list for the next release.
    Thanks for reporting,
    Steven Davelaar,
    JHeadstart Team.

  • Search with '%' symbol in lov window

    Hi ALL,
    How to get all the records from lov window by giving '%' symbol , currently i am able to do search by giving partial letter like 'A%' but i need all the records should be display by giving '%' symbol.
    thanks

    HI Sanu,
    Thanks for reply , you mean to say "selective search criteria field" for that lov field.
    i already set still not able to get all the values
    Thanks

  • Change in an LOV query of Sales Order Form not working

    Hi,
    I wish to change the the Order Type (in the Sales Header) displayed in the Sales Order Form when viewed from a particular Responsibility.(11i Instance)
    To be specific only certain order types should be displayed in the LOV when the User tries to create Order from that Responsibility.
    In that process I created an FP with Action --> Builtin -->Create Record Group From Query
    Then in Property-->Object Type-->LOV and Target Object -->ORDER_TYPE Value-->Name of my Query Group
    I downloaded the Sales Order Form and modified the Query of the Group keeping the columns selected and the view used same and added in the Group I created.
    But it didn't work out.
    I tried out by changing my Target Object to SRV_ORDER_TYPE and its corresponding query from the Oracle Form.
    But still it didn't work.
    Please tell me where I'm going wrong.
    Am I not choosing the correct target record group LOV?

    Hi Robert,
    I have successfully accessed a matrix using Visual Basic .Net. It has been quite a challenge while I was at it.
    One important thing to understand is that (unless you access the datasource) in order to access a particular control in a matrix object, this control needs to be visible and enabled. It is like simulating a user accessing the matrix via GUI... if a control is not enabled, you cannot access it (as said via control). That might explain question 1.
    Short sample on matrix handling is here:
    http://www.itwiki.net/ow.asp?SboHowToReadFromAndWriteIntoMatrix
    <b>Q2 - Cell count:</b>
    I have personally never used the Cells count method. It should always return the number of rows. My only guess here is that you are using an old reference on the matrix object in which the rows are not there yet.
    Dim oMatrix As SAPbouiCOM.Matrix
    Dim oColumn As SAPbouiCOM.Column
    Dim oEditText as SAPbouiCOM.EditText
      oMatrix=YourSboForm.Items.Item(38).Specific
      oColumn=oMatrix.columns.item(strColumnname).specific
      oEditText=oColumn.items.Item(1).specific
      Msgbox(oEditText.String)
    The above code should get you the first cell of the first row of the given matrix.
    HTH Lutz Morrien
    P.S.: If you need any more sample code, check with the SAP matrix sample or send me a mail (adress see Http://www.itwiki.net)

  • How to view score of one track while recording another.

    I want to record audio on one track. I want to read the notes and chords from another track while recording. ( I want to use the previously recorded track only for providing me with the score ) I would very much prefer to have Logic chase the score so that I know where I am in the arrangement while recording.
    I am aware I can print out the score as a a pdf file and view that, and its not so bad, however I would prefer Logic to follow along the score and let the playhead indicate the location.
    I can do this when not recording. I can view the previous track just before I go into recording, but when I go into recording, the score switches to showing currently track being recorded ( which is empty)

    Hi there,
    Floating Windows all but disappeared with Logic 8 and many of us mourn their passing. Although some windows are, by default, floating (eg transport), the only one that you can choose to make float nowadays is the Environment, useful if you're setting up faders or some other real-time control.
    Pete

  • LOVs are popped up when populating the items

    Hi Everybody,
    I have one master-detail block. Whenever an item is selected in the master block, corresponding details are populated in the detail block.
    I have 5 text items in the detail block, out of which 4 are attached to LOVs.
    I have set "Validate from List" option to "YES" for all the 4 items.
    The problem is, whenever i am populating the detail block, before displaying each and every record, the LOVs of the first 2 items are getting popped up prompting to select an item.
    I want these LOVs to be suppressed, while having "Validate from List" option to "YES", which is mandatory.
    Can anyone help me in this regard..
    Thanks in advance,
    Suman

    Hi Hans,
    The items connected to LOVs are non-database items. Those values are arrived from POST-QUERY trigger.
    When the cursor is placed in new record.. it is validating.. thats fine..
    But, problem is all...while populating the records, when master item is selected!
    LOVs are being popped up for first 2 items when displaying each n every record.
    Suman

  • Duplicates should be eliminate in an LOV

    Hi,
    I have a requirement in that,i created a Multi-Record block in the form.In the Multi-record block,say for a field name "Plot No" i have attached a LOV to display the List of Plot Nos.My requirement is that,If you insert a Plot No in one record through Plot No LOV ,then if you try to insert the Plot No in the next record,the LOV should not display the previous Plot No.How can we implement this.
    I have implemented this code in when-validate-item of the particular column.But it does not work.Please help is any modifications has to do.In this code,the fields i mentioned are not primary keys.
    DECLARE
         cnt NUMBER;
         rg_name VARCHAR2(40) := 'PLOT_NO_CA';
         rg_col1 VARCHAR2(20) := 'DOC1_ID';
         rg_id RecordGroup;
         gc_id GroupColumn;
         rowcount NUMBER;
         row_value NUMBER;
    BEGIN
         SELECT count(*)INTO cnt FROM XX_CIS_CANE_ADVANCE_LINES3 WHERE doc1_id = :CUTTING_ADVANCE.DOC1_ID;
         IF cnt = 0 THEN
         -- create a record group dynamically
         rg_id := Find_Group(rg_name);
         IF Id_Null(rg_id) THEN
              rg_id := Create_Group(rg_name);
              gc_id := Add_Group_Column(rg_id,rg_col1,NUMBER_COLUMN);
         END IF;
         Add_Group_Row( rg_id, END_OF_GROUP );
         rowcount := get_group_row_count(rg_id);
         gc_id := Find_column('PLOT_NO_CA.DOC1_ID');
         set_group_number_cell(gc_id,rowcount,to_number(:system.cursor_value));
    FOR i IN 1 .. get_group_row_count(rg_id)-1
    LOOP
         row_value := get_group_number_cell(gc_id,i);
         IF row_value = :CUTTING_ADVANCE.DOC1_ID THEN
              fnd_message.set_string('already exists');
              fnd_message.show;
              DELETE_GROUP_ROW(rg_id,rowcount-i);
              RAISE form_trigger_failure;
         END IF;
    END LOOP;
    ELSE
    fnd_message.set_string('Data is already exists in DATABASE');
    fnd_message.show;
    Raise form_trigger_failure;
    END IF;
    END;
    Thanks&Regards
    Sudhakar J

    Hi Francois,
    If i cleared the Record,the Cleared record is not showing when once again invoke the LOV.How can i modify the code given by you for this scenario.
    Please help me.
    Thanks&Regards
    sudhakar

Maybe you are looking for

  • Selection Markers not appearing in QTPro 7.5.5??

    Some time after installing QTPro 7.5.5, I just noticed that my in/out selection markers are no longer appearing. And no, the "hide selectors.." option is not checked in prefs, although I tried toggling that on and off but nothing changed. I'm able to

  • Crashing when opening 'sequence settings'

    each time i try to open "sequence settings" from the "settings" tab, the application crashes. any ideas? thanks.

  • PAL NTSC importing issues

    I tried to import an qtime that I thought was PAL and it said "cannot import NTSC asset into PAL project". I checked my settings and they were in PAL so I switched to NTSC. Now the error just says "format incompatible." I wanted to make a PAL project

  • Two issues - Missing songs and retrieving music from another computer

    HELP! I used to have a PC that I used for managing my Itunes and photos. Well, a few days ago, that computer went to computer heaven and won't even turn on. So, my husband had a MAC laptop sitting around so I decided to re-import all of my CD's into

  • [svn] 1492: Merge of 1491 from branches/3.0.x

    Revision: 1492 Author: [email protected] Date: 2008-04-30 11:12:35 -0700 (Wed, 30 Apr 2008) Log Message: Merge of 1491 from branches/3.0.x Bugs: LCDS-238 MessagePerformanceInfo object should be serializable so that messages that include it in their h