Static record group and lov problem

hi all,
1)I created a form module
2)created a basic datablock based on empno and ename from emp table.
3) created a static record group ,where i specified the column name as col1,provided the values as 1 ,2,3,4,5 etc
4) created an LOV and assigned the above record group to the LOV
5) then assigned the lov to the emp.empno item in the datablock emp....
when i run the form .....i get the list of values message on the console (bottom end of the window) ....
but I am not able to see the LOV when i press the cntrl L or see it from the edit menu command ?
what must be the problem ?
ta
s

Dear,
May be you don't set LOV's "Column Mapping Properties". After setting the properties correctly you will be able to display LOV.
Thanks.

Similar Messages

  • (urgent) Dynamic record groups and LOV

    I have to create a record group and then add 2 rows to it manually.Following is the code.There are no values displayed in the lov.Please help.
    PROCEDURE create_record_group IS
    BEGIN
    DECLARE
    rg varchar2(40) := 'test_fips';
    rg_id RECORDGROUP;
    lov_id Lov;
    err NUMBER;
    gc_id1 GROUPCOLUMN;
    gc_id2 GROUPCOLUMN;
    counter number;
    BEGIN
    rg_id := FIND_GROUP(rg);
    lov_id := FIND_LOV('LOV_FIPS');
    IF NOT ID_NULL(rg_id) THEN
    DELETE_GROUP(rg_id);
    END IF;
    IF ID_NULL(rg_id) THEN
    rg_id := CREATE_GROUP(rg);
    gc_id1 := add_group_column (rg_id,'col1',number_column);
    gc_id2 := add_group_column(rg_id,'col2',char_column,40);
    END IF;
    /* adding static content to LOV */
    ADD_GROUP_ROW( rg_id,1);
    SET_GROUP_NUMBER_CELL(gc_id1,1,997);
    SET_GROUP_CHAR_CELL(gc_id2,1,'MLAB');
    counter := get_group_row_count(rg_id);
    /* adding dynamic content */
    FOR rec in (SELECT FIPS_CD COL1, LOCNAME COL2 FROM FIPS) LOOP
    counter := counter +1 ;
    ADD_GROUP_ROW( rg_id, counter);
    SET_GROUP_NUMBER_CELL(gc_id1,counter,rec.col1);
    SET_GROUP_CHAR_CELL(gc_id2,counter,rec.col2);
    END LOOP;
    SET_LOV_PROPERTY('LOV_FIPS',GROUP_NAME, rg);
    END;
    END;

    I tried creating the group the way you suggested but it does not seem to work because of 'UNION' in the query.It says unable to create rcord group.Did you anytime use the 'UNION' option while creating record group.
    While creating record group at design time also you cannot use UNION with dual.
    This how I modified :
    PROCEDURE create_record_group IS
    BEGIN
    DECLARE
    V_RG_ID RECORDGROUP;
    RG_NAME VARCHAR2(20) := 'TEST_FIPS';
    V_ERRCODE NUMBER;
    BEGIN
    V_RG_ID := FIND_GROUP('TEST_FIPS');
    IF ID_NULL(V_RG_ID) THEN
    V_RG_ID := CREATE_GROUP_FROM_QUERY('TEST_FIPS', 'SELECT FIPS_CD, LOCNAME FROM FIPS
    UNION SELECT 997,'MLAB' FROM DUAL');
    END IF;
    V_ERRCODE := POPULATE_GROUP(V_RG_ID);
    MESSAGE('CREATED '|| V_ERRCODE);
    SET_LOV_PROPERTY('LOV_FIPS',GROUP_NAME, RG_NAME);
    END;
    END;
    Notice here 'MLAB' is char and I get compilation error if I use these quotes with MLAB.But is I remove the quotes the it compiles.
    Thanks

  • Creation of Record Group and LOV at run time

    Hello All,
    I have been stuck by this...I have two text items on which LOVs have been placed.Selection of one depends on selection of other.I can dynamically create a record group but how to create a LOV dynamically to populate it with the dynamic record group been created.
    For more visualization consider that filtering of data takes place in one lOV based on the other LOV been provided.
    Revert ASAP...
    Thanks and Regards,
    Kapil Uppal

    I don't think you can create a LOV dynamically, but you can repopulate a pre-existing one, which should allow you to achieve the same goal.

  • Record groups and LOV

    HI
    I have a question regarding LOV's.
    I have 2 fields dept_code which is a checkbox and field2 which is an LOV displaying the employee names based on the dept_code selected.
    My record group has a query like this -
    SELECT empname FROM emp WHERE dept_code IN(:parameter.P_dept_code). p_dept_code is char.
    If the user enters multiple department codes then my p_dept_code should contain commas and single quotes for each department like this ('m10','m20')
    In which trigger do I do this coding and how do I do it?
    Thanks.

    Hi
    Thanks for your response.
    The key-listval does'nt seem to firing.
    When I run the form the lov comes up but displays the value 2 which is from the default record group(select 1 "dno", 2 "ename" from dual).
    This is the code in my key-listval -
    DECLARE
    rg_name VARCHAR2(40) := 'name_rg';
    rg_id RecordGroup;
    gc_id GroupColumn;
    errcode NUMBER;
    BEGIN
    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, 'dno',
    CHAR_COLUMN,10);
    gc_id := Add_Group_Column(rg_id, 'empno',
    CHAR_COLUMN,100);
    END IF;
         :parameter.p_dno := ''''||replace(:parameter.p_dno,',',''',''')||'''';
    errcode := Populate_Group_With_Query( rg_id,
    'select dno dno, ename ename from emp1 where dno in ('|| :parameter.p_dno|| ')' );
    set_lov_property('name_lov', GROUP_NAME, rg_name);
    list_values;
    message(errcode);
    END;
    Please let me know what I'm doing wrong
    TIA

  • Form Builder Static Record Group

    Hi Folks,
    I am a part of a development team where we do parallel development where a team in India is working on certain forms and we work on other forms.
    We faced a peculiar problem, both the teams use Oracle Forms 6i, but we lose values in the static record group attached to Static LOV.
    Have any one of you faced this problem before, please let me know.
    With Regards,
    Srikanth

    Hi all
    Should I install patches for correcting this problem ?
    Thanks and Regards,
    Srikanth

  • Record Group and From-Clause Datasource

    I need to do several complex queries (read-only) for my form. Original I used From-Clause datasource but, as the requirement changed, there are some limitations. I would rather no do anything dynamically if as all possible because there are over 20 such queries which makes the code difficult to maintain. I wanted to be able to reference block items in the query.
    I'm thinking about using Record Group query instead. What are the differences in capability between Record Groups and From-Clause Datasource?
    Thanks.
    Clayton.

    Thanks.
    That's exactly the problem I have. I don't want to use LOVs so I've been thinking about how to visualize the record group data using data blocks. Perhaps I'll just go with dynamically building the From-Clause.
    I've looked into stored procedure based blocks a bit; it was confusing for me. Are the stored procedures stored in the database or are they defined in the form?

  • How to create Static Record group in Oracle Forms??

    Dear All,
    I have the following values V1,V2 to be placed in my list item field during DML operations.
    I have an example to create the record group based on the table; whereas i have never tried for static value creation.
    Could you please guide me how can i acheive this.?
    Thanks ....
    Regards,
    Sunil.G

    Thanks dhivya for your reply.
    Actually what happens is; when i use the same methodology as you mentioned, it is asking me to set the Initial value.
    Whereas in my applications; user has to manually select any of the values i.e eithe V1 or V2 for the first time.
    Moreover i have found the query:-
    I have created a static record group RG_VERSIONS i.e creating a new record group with the static values mentioning the "Column names " as "Version_label" which i have given the column values as "V1" and "V2" and then another column name as "Version_value" with the column values as "V1" and "V2".
    Then i used the below query in the WHEN-NEW-FORM-INSTANCE trigger:-
    PROCEDURE p_when_new_form_instance
    IS
    l_rg_id recordgroup;
    l_item_id item;
    BEGIN
    --Populating value for  Version Type based on static record group
    l_rg_id := FIND_GROUP ('RG_VERSION');
    IF NOT ID_NULL (l_rg_id)
    THEN
    l_item_id := FIND_ITEM ('BLOCKNAME.COLUMN_NAME');
    POPULATE_LIST (l_item_id, l_rg_id);
    END IF;
    END p_when_new_form_instance;
    Then it was working fine.
    Thanks for your time.
    Regards,
    Sunil.G
    Edited by: Sunil G on Jun 27, 2010 6:00 AM

  • Which two statements define a Static Record Group?

    Hi all
    I read this question and I do not know the answer
    the question is
    Which two statements define a Static Record Group? (Choose two)
    A. The Record Group can be created only at run time.
    B. The Record Group is not associated with a query.
    C. The Record Group can be created and modified only at design time.
    D. The Record Group can be created and modified at design time or at run time.
    E. You can modify the structure of this Record Group by adding columns and rows at run time.
    F. You can modify the structure of this Record Group by associating it with a query at run time.

    Types of record group, either Static or Query:
    Static     Specifies that the record group is constructed of explicitly defined column names and column values.
    The values of a static record group are specified at design time and cannot be changed at runtime.
    Query     Specifies that the record group is associated with a SELECT statement, and thus can be populated dynamically at runtime.
    When you select this option, enter the SELECT statement in the multi-line field provided, then choose Apply.
    So answers B and C
    From Forms Help

  • Recording, grouping and playing an action...I am stumped!

    First I will start by mentioning  I am working with CS6. Recently I have  been recording a few actions that I like to run on a lot of my photos. Before I am done recording these actions I like to group them. Here is where the problem comes into play however...First time I play the action it shows up perfectly in the layer  panel. The 2nd,3rd attempt an  so on, the action that  is grouped (the same action or another grouped action) will show up all jumbled in the layers panel. Sometimes the adjustment layers show up outside of the group while others the group appears to have "eaten" the first group of actions I ran. Am I missing something why cant  I stack the actions I have written?

    glissonamanda wrote:
    Before I am done recording these actions I like to group them.
    Why are you trying to record steps like moving actions to group them and such.  You should stop recording the actions.  Then move, group and organize them the way you want. After that you should save all the action set you messed with so you don't loose the new actions you recorded and have save them organized and grouped the way you want.  If you record steps the move and copy actions mess with actions when you play the action these steps are recorded in the action will more then likely mess up actions and the grouping you did.
    Post a screen capture of the action steps of the action your having a problem with. Have you looked at waht is recorded in the action?

  • Post query and lov problem

    I wonder if anyone can help me with this problem. I have a non database text item which holds a school name dependent on the school id. I have a post-query trigger to populate the school_name field so that the school_name is shown immediately. I also have a LOV on this field in case the school has to be updated.
    The problem I have is that when I query the data block the list of values pops up automatically and won't let me out of the screen until I have selected a school. I only want this LOV to appear when the user requests it.
    Can anyone advise me on how to get around this problem, maybe I'm using the wrong type of trigger?
    thanks,
    Ian

    In the LOV properties, set Automatic Display to false

  • User groups and permissions problem

    Hello everyone,
    I've been running Arch Linux for about a month now and I have noticed a few things related to permissions associated with user groups that annoy me. My user is part of the storage, wheel and network groups, amongst others. I can see this when I run the `groups` command. From what I could read on the Wiki, the storage group should allow me to mount/umount drives such as my USB key and my iPod when they are plugged in and access the files from my user account without using sudo. The network group should let me manage the network connection via ifconfig, iwconfig, etc. once again without using sudo.
    However, when I run iwconfig as my normal user, I get incomplete and inaccurate information. I get about 2 lines telling me essentially that I am not associated with any Access Point, which I clearly am. When I run it with sudo, I get the full information, including my Access Point's ESSID. iwconfig does not get the same data when run with and without sudo. Same goes with ifconfig. Also, I can not run dhcpcd or wpa_supplicant at all as a normal user.
    I get a similar problem with the storage group. I can not mount or umount drives without sudo and I can not write to mounted drives that I've mounted with sudo. This is particularly annoying when I try to manage my iPod.
    Does anyone have a clue what could be causing this?
    Thanks a lot

    I have searched Google and the Arch Wiki, have tried a lot of the suggestions from the forums, such as the 'how I beat policykit and hal' forum post.  Nothing seems to let me mount my drives.  I can see them in Nautilus, I click them but they don't mount.  I can do it as root.  It's really frustrating because I can't figure it out.  I haven't filed a bug report because I thought it was a problem that I was having.
    I haven't tried the iwconfig or network yet.
    This is pretty much the only thing holding me back from everything working.

  • ASA 5505 + ASA 5540 static VPN, ssh and rdp problems

    Greetings!
    I've recentely set up a VPN between Cisco ASA 5540(8.4) ana 5505(8.3).
    Everything works fine, but there is a small problem that is really annoying me.
    From the inside network behind ASA 5505 I connect via rdp or ssh to a host inside ASA 5540.
    Then I minimize ssh and rdp windows and don't use it for ten minutes. But I still use VPN for downloading some files.
    Then I open ssh window - the session is inactive, open rdp window - I see a black screen (for 10-15 seconds, and then it shows RDP)
    There are no timeouts on ssh or rdp hosts configured, via GRE tunnel it works perfectly without any hangs.
    What can I do to get rid of this problem?
    Thanks in advance.

    Dear Fedor,
    You could try adding the following commands to your configuration (on both ASAs) in order to increase the timeout values of the specific TCP sessions:
    access-l rdp_ssh permit tcp 1.1.1.0 255.255.255.0 2.2.2.0 255.255.255.0 eq 22
    access-l rdp_ssh permit tcp 1.1.1.0 255.255.255.0 2.2.2.0 255.255.255.0 eq 3389
    class-map TCP_TIMEOUT
          match access-list rdp_ssh
    policy-map global_policy
         class TCP_TIMEOUT
              set connection timeout idle 0:30:00
              set connection timeout half 0:30:00
    * Please make sure you define the specific RDP and SSH ports in the ACL and avoid the use of "permit ip any any".
    Let me know.
    Portu.
    Please rate any post you find useful.

  • Grouping and ungrouping problem

    I have a number of text boxes and graphic boxes that overlap each other for a catalog I do. I have them on separate layers so that they are easier to work with and I don't accidentally move something I didn't mean to. The group function is useful to me except that when I ungroup all the elements are on one layer!!! How do I ungroup so that each element goes back to its correct layer?
    Thanks

    > Let me ask this then; Is there a way when pasting from layers to get all the selected elements to snap to a guide? If I have an element or 5 elements selected, as long as they are on the same layer i can get them to snap to a guide. If I have 5 elements selected across say 3 layers I can no longer get them to snap to a guide.....
    I don't understand what you are saying here. Snapping behavior for objects on multiple layers is exactly the same, as far as I can tell, as it is if they were on a single layer. What isn't working?
    Peter

  • Urgent: please help with LOV problem

    Hi,
    I created a record group and LOV (LOV1), also a text item set list of value property to LOV1. When I ran form, it showed the list, but when I selected one from the list, neither double click or click OK put anything into the text item. Could someone tell me what went wrong? Thanks a lot.
    Sa

    Did you set the "column mapping properties" so the LOV can know which value(s) to return to which form item(s)?

  • Lov & record group problem

    Hi
    I have to achieve this task.
    I have "company_list" record group and "company_list" lov
    I am form layout style. I am in Enter-query. Then give some value to any field. Then Click execute-query. Its retreiving some records.
    Now if I click the LOV can I show only those records currently I have retreived.
    I have following trigger on button pressed.
    It is giving 1)error Populating group.2)cannot create group company_list 3) error_populating group.
    Anybody pl help me.
    Christy.
    DECLARE
    cur_blk VARCHAR2(40) := :System.Cursor_Block;
    last_qry varchar2(2000);
    bk_id Block;
    rg_name VARCHAR2(40) := 'COMPANY_LIST';
    rg_id RecordGroup;
    errcode number;
    BEGIN
    bk_id := Find_Block(cur_blk);
    last_qry := Get_Block_Property( bk_id, LAST_QUERY);
    rg_id := Find_Group('COMPANY_LIST');
    IF NOT Id_Null(rg_id) THEN
    DELETE_GROUP(rg_id);
    END IF;
    rg_id := Create_Group(rg_name);
    errcode:=Populate_Group_With_Query(rg_id,last_qry);
    end;

    I think that you have to use Create_Group_From_Query() instead of Create_Group():
    rg_id := Create_Group_From_Query(rg_name);
    Helena
    null

Maybe you are looking for

  • Error in JDBC receiver CC

    hi , iam implementing RFC to JDBC scenario. i have performed E2E testing and iam geeting succesful msgs in moni,but when i look at my CC in RWB it shows an error with receiver CC as "Configuration error: com.sap.aii.af.service.util.configuration.Mand

  • IDOC not receiving in XI

    Hi - Using PI 7.0 and checked all the configurations and read all the related blogs but i don't see the IDOC coming into XI. Checked the SM58 on R3 and does not show any errors. I checked the WE02 on XI system and shows a status of 60 and 56. Status

  • My 2007 Intel Macbook Pro had Tiger 10.4. Can I boot into that drive,now an external, with my 2011 Macbook Pro?

    I have software that is no longer compatible with my 2011 MacBook Pro that I would like to continue to use. When I upgraded my old 2007 MBP from Tiger to Leopard, I did a clean install on a new drive, and put the original internal in an external case

  • On Demand AJAX No Response?

    Have a weird issue. We switched a web server (Oracle 10G App Server) over from our sandbox Apex area to our new development database which runs 3.2.0.00.27. I imported a few test applications from the sandbox which worked without issues because we us

  • MacBook Pro Running Slow after Cold Weather

    I left my macbook in the car overnight while attending a wedding this weekend when it was colder and the computer is now running dreadfully slow (It took me four minutes just to type the title of the discussion).  I have to constantly wait for the co