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.

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

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

  • 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

  • Dynamic creation of record group

    Hi
    Can anyone suggest me with an example about how to create a dynamic record group and attach it to a lov ?
    Regards

    Hi,
    Thanks for your reply
    DECLARE
    rg_name VARCHAR2(40) := 'COMPANY_RANGE';
    rg_id RecordGroup;
    errcode NUMBER;
    lov_id LOV;
    BEGIN
    :System.Message_Level := 0;
    rg_id := Find_Group( rg_name );
    IF Id_Null(rg_id) THEN
    rg_id := Create_Group_From_Query( rg_name||'_TMP', 'select COMPANIES_ID from SYSMODULE.COMPANIES where 1=2');
    Set_LOV_Property(lov_id,GROUP_NAME,rg_name||'_TMP');
    rg_id := Create_Group_From_Query( rg_name, 'select COMPANIES_ID from SYSMODULE.COMPANIES');
    IF Id_Null(rg_id) THEN
    Message(' Create group failed');
    Message(' ',no_acknowledge);
    Raise Form_trigger_failure;
    End if;
    END IF;
    errcode := Populate_Group( rg_id );
    lov_id := Find_LOV('LOV7');
    Set_LOV_Property(lov_id,GROUP_NAME,rg_name);
    END;
    The above code, I have placed in when new form instance .. still the same error
    when new block instance --- same error
    in push button --- same error
    FRM-30048: Unable to find record group .
    LOV LOV7
    Form: DYNAMIC_LOV_CREATION
    FRM-30085: Unable to adjust form for output.
    Where i am going wrong ..
    Regards

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

  • Can we change [maximum number of records per page] property at run time

    can we change [maximum number of records per page] property at run time in report 6i

    Ravi,
    I hope you are already done with this. In the invoice there is a nice example you can use on the xml blogs.
    You limit the number of lines per page when you use the xsl commands like this in your template:
    <xsl:variable name="lpp" select="number(13)"/>
    <?for-each@section:LIST_G_INVOICE?>
    <xsl:variable xdofo:ctx="incontext" name="invLines" select=".//G_LINES[LINE_TYPE='LINE']"/>
    <?for-each:$invLines?> <?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    and then you have the table where you have the data
    <?for-each:$invLines?><?if:position()>=$start and position()<$start+$lpp?>
    and all your lines
    and then
    <?end if?><?end for-each?>

  • Excel not even open - "cannot complete this task with available resources" and then VBA run-time error randomly appear!

    Has anyone else seen the "Excel cannot complete this task with available resources" error message appear when Excel isn't even open? It keeps happening to me, and it's the strangest thing.
    It seems like interacting with Excel files sometimes prompts it - for example, I just turned on my computer this morning, checked my email, and then opened Google Chrome to upload some Excel files. Excel hasn't been opened at any point since the machine
    booted up, but this Excel error popped up while I was uploading the files.
    Checked the Task Manager because I was baffled (not that this is the first time it's happened), and there's no Excel application running, just that silly error message. Choose OK on that error and a VBA run-time error message appears (not even sure if it's
    Excel VBA or Word/Outlook but I assume it's Excel - it's the good old 1004, application-defined or object-defined error).
    Debug is greyed out, so it won't let me debug to see what the problem is. Choosing End brings the "Excel cannot complete this task with available resources" message back for one final performance.
    This happens on a not-infrequent basis: Excel isn't open, and I randomly get this set of Excel errors: 1) "cannot complete task", 2) VBA run-time, 3) "cannot complete task" again. Then it's done, until the next time it happens. Weird.
    I have 32-bit Windows 7 and Excel 2013/2010/2007/2003/2002 (I know!) but the issue only started after installing 2013. I also get the "cannot complete this task" message regularly when working in Excel (generally with Power Pivot or something legitimately
    memory-hungry though), and restarting the application does the trick. I don't mind a heads-up when I'm gobbling up too many resources, but when Excel's not even open, it's a bit ridiculous. It's like I have a zombie Excel! Does interacting with Excel files
    via upload/moving around Windows Explorer actually trigger some sort of Excel action in the background?
    Any ideas would be most appreciated!! Thank you :)

    Hi,
    As the memory error messages , it can be very generic and don't always identify the real cause of the issue. We may try to use the KB that Mr. KR mentioned above to troubleshoot it.
    On the other hand, if the file is xls format, we may convert to the new file format .XLSM and test.
    http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28339883.html
    Next, try to disable hardware graphics acceleration from File > Options > Advanced > Display section and disable Aero Themes (if you enabled) to check the results.
    For the hangs and crashes issues, we may use ADPlus.vbs to troubleshoot:
    http://support.microsoft.com/kb/286350/en-us
    http://www.networksteve.com/exchange/topic.php/Excel_cannot_complete_this_task_with_available_resources_error,/?TopicId=39411&Posts=1
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Hope it's helpful.
    George Zhao
    TechNet Community Support

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

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

  • How to populate LOV at run time in developer

    I want to populate my LOV with with say
    SELECT NAME FROM MY_TABLE
    Also I have text item in my developer form I want to display this item depending upon the result of my query i.e If have ten record this text item would show ten records and if have eleven records then it shows eleven text_items..
    i.e
    text_item1 shows first record
    text_item2 shows second record
    and so on.
    I have placed only on text item could its size increase at run time.
    Thanks.

    at the rendered property you could use something like
    rendered="#{bindings.comboBox.inputValue eq null? false : true }"So the first time you come on your page, the table won't be rendered.
    When you select a value from you combo box, the view criteria will do his work and the rendered property will be set to true.

  • Recording Video and Audio at Same time with simultaneous sync

    I want to record a keyboard performance into garageband and at the same time record the playing of that performance with my video camera. Then I want to create a movie using the music from garageband and the video from the camera. I was thinking that if I can sync the video and audio when I'm recording the session, then that part is taken care of. Or, maybe this is easier than I think it is?
    Is there a way to do this so that I can use the garageband record performance and have it synced to the video on the camera?
    I don't want to use the audio from the video camera because the performance that is captured in Garageband will be much better and I can do editing of the individual notes in GB.
    In the end, I just want to make a movie and/or podcast of the performance.
    I'm a newbie regarding this, but I did search the forums and couldn't find anything specific. Mostly it was about importing video into GB3 and then syncing new audio. I'll basically have audio and video from the same performance in two separate locations and I want to bring them together perfectly in Garageband.
    Thanks for any help you can provide.
    Powerbook G4 - DVI   Mac OS X (10.4.9)  

    Okay. I got the video and audio all together. I told you I'd link to it when it was up.
    http://www.youtube.com/watch?v=FxssYpUNJm8
    There's also a copy of it at http://www.myspace.com/bonjimmy/
    And as a quick side comment, even though I uploaded the same video to both YouTube and MySpace, the MySpace version is much better. YouTube must do something to the video after it's uploaded.
    What I learned doing this project:
    I recorded the video first (which gave me the sequencing of the piano performance) and then I dubbed the audio in later. However, there wasn't a good way to sync the video and the prerecorded piano, so there are some spots where the dubbed audio vocal isn't accurate to the video. I'm not sure what the pros do for this. I was hoping I'd remember how I sang for the video but when a couple weeks go by before re-doing the audio, it's about impossible. I tried, though.
    I remember working with an old 4-track and smpte to a sequencer a long time ago. With the way it is now, it's pretty cool that you can record digitally and mix and match and everything falls together perfectly as long as you have a place to match the video and the audio. It's pretty cool.
    What else???
    Does anyone have suggestions that would have made it better? Also, if you have suggestions on my performance or whatever, I'd love comments, but you can do that on the linked page.
    Thanks again for all your help. (The point of the video is because I'm thinking about getting back out there and doing some more playing... I'm looking for a band or something else interesting...)
    Powerbook G4 - DVI   Mac OS X (10.4.10)  

  • Planned order creation with sale order assingment at the run time of MRP

    some material item not planed with sale order stock in MRP run time. all setting in material master are corrected as i knowing.having some mistake in setting other configuration.

    Planning strategy is Make to order individual collective as individual but still come as make to stock plan orders
    Incase of Header material- Plan order is creating in MTS
    Check the sale order procurement tab, Is The requiremnt type is relevant to your Stratergy?, if not chnage it to correct requiremnt type and rerun MRP again
    Incase of component material- Plan order is creating in MTS
    Check for the component material MRP 4 View, individual/Coll.req- as 1. If not set as 1 and rerun the MRP again

  • How can I use undo and redo with run time menu?

    Hi..I try to built my own menu for graphic programming. How can I use undo and redo in labview with run time menu?

    filozof-
    During runtime, by default, LabVIEW has undo/redo data changes under the edit menu. This will undo/redo changes made to controls during runtime. If you want a more extensive undo/redo (custom for your application), you are going to have to do quite a few things
    1) Create a custom runtime menu (Edit>>RunTime Menu) and place your own undo/redo controls on it
    2) Keep an action history in your program
    3) Catch the Shortcut menu event for your custom undo/redo controls
    4) Reverse the last action in your histroy when you catch the event
    This method would allow you undo entire operations (like resize, move, or whatever kind of functionality you are building into your application) unstead of just undoing data changes.
    Xaq

  • Keeping .xdp docs to DB and convert them run-time to .pdfs? Is it possible?

    We need to keep the LiveCycle documents in .xdp format and to visualize them run time at client work space with Acrobat Reader.
    Is it enough to use only LiveCycle Designer Enterprise Suite for this goal or we have to use a combination of Adobe LiveCycle Designerand "Adobe InDesign CS3 SDK", "PDF Library SDK or any other component model? Or may be you can offer any other solution?

    Converting xdp to pdf at run time requires the Adobe LiveCycle ES Forms service.

Maybe you are looking for

  • Dynamic apperance of table in pdf form

    hi , i need that a table will appear in my pdf x times . (x = number of rows at another table) i also need that my form will include number of pages dynamiclly according to x . can anyone help  ? ami

  • Help building an e-commerce site using DreamWeaver MX 2004 and Oracle 10G

    I'm new to using Oracle 10G. After reviewing several rdms's I've picked Oracle 10G as my rdms. I'm trying to build an ecommerce site using DreamWeaver MX 2004 and Oracle 10G. The website will be selling hardware and software products. I have a choice

  • How to get the instance id of BPEL in OSB

    We have the process in OSB which will invoke the BPEL ansync process and returns success once the BPEL is invoked. Can we refer/get the BPEL instance id in OSB by anymeans?

  • Row-level Security Filters applied to Columns and Tables only? no Areas?

    Good day all, Just quick question (obiee 10.3.3.2) - Is there a way to edit row-level security using Whole subject areas (instead of bringing in the individual Fact tables and applying filters by copying/pasting them). Follow up question - if I have

  • GNOME 3.2.1 login promt from the lock screen is ugly.

    The lock screen doesn't look nice... have i miss configured something? What i mean is that i don't get something like the nice login screen from GDM ... but i get a password promt similar to the old style GDM.... Any ideas? is that the expected behav