Is it possible to populate list item in TAB CANVAS

Hi,
I have two datablock first is master and second is detail (master detail block) I want to populate second datablock fields on the basis of first data block selection (second block is displayed on Tabuler or Grid like canvas) I made list item type data fields on second or Tabuler canvas(detail block) and want to populate this list at run time on WHEN-NEW-BLOCK-INSTANCE trigger, is it possible, if yes what's wrong I am doing because this list population works fine on master block
(master block with canvas type of FORM).
Thanks and Regards.
Khawar
Message was edited by:
skhawar03

Hi,
Fifty percent of my problem is solved second canvas list item values now populated successfully, but another problem is that it populates when I click second time on a required button, the button and queried items are in same datablock
the code behind the WHEN-BUTTON-PRESSED trigger button is:
declare
     exist_chk number:= 0;
begin
     select count(*) into exist_chk
     from incident
     where ref_no = :incident.ref_no
     and inc_type_code = :incident.inc_type_code;
     IF exist_chk <> 0
          THEN
SET_RECORD_PROPERTY(:system.cursor_record,'INCIDENT',status,new_status);
Set_Block_Property('INTERP_DETAIL', ONETIME_WHERE, ' WHERE ref_no ='||:incident.ref_no||' and inc_type_code='||''''||:incident.inc_type_code||'''');
execute_query;
else
display_message('msgbox_stop','No Master Data','First Enter Master Record ');
     end if;
end;

Similar Messages

  • How to show SharePoint list items in tab view?

    Hi All,
    I would like to show list items in tab or metro tiles like:
    How to achieve this?
    Thanks in advance!

    Hi Sam,
    you can either use third party controls or create your own using JQuery / Javascript-
    my preference is JQuery UI.
    here are some references-
    http://summit7systems.com/tabbed-web-parts-in-sharepoint-2013-office-365/
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-2010-at-Work-SharePoint-2010-Tab-Page-Peter-Allen.aspx
    http://sympmarc.com/2011/11/09/adding-a-tabbed-view-to-a-web-part-page-using-jqueryui/
    http://kyleschaeffer.com/sharepoint/wp-tabify/
    Metro Style -http://dellakin-smith.com/sharepoint-2010-a-simple-metro-style-dashboard/
    http://www.metaengine.com/2012/03/SharePoint-menu-web-part-with-Metro-style-using-a-DVWP
    Third party - http://www.amrein.com/apps/page.asp?Q=5806 
    note: i dont work for amrein or endorse their product, this product was suggested since it gets has functionalities that you are looking for.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Populate list Item with a recordgroup?

    Hi Friend
    I want to populate a list Item with a "Recordgroup". Does it possible without using the add_eliment function?
    I did it through the Loop to read the item from record group. If the database changes the record does not change in my list item. because the list containing the added items which was delivered in the load time. But like Pressing F9, we can easily see the last changed data of the database.
    If possible please send me the detail code to me. Here I delivered the detail procedure which i did for that purpose.
    Farhad
    ==========================================================
    PROCEDURE Populate_Item_In_List (     List_name VARCHAR2,
                                                                                         QUERY_Text VARCHAR2,
                                                                                         rg_Level_Col_name VARCHAR2,
                                                                                         rg_Value_Col_name VARCHAR2) IS
         HERE THE PROCEDURE POPULATE THE LIST WITH THE REQUIRED DATA UNDER A CORRCET SQL (SELECT) COMMAND
         List_name                     THE LIST ITEM WHICH HAS TO BE LOADED BY THIS PROCEDURE
         QUERY_Text                     THIS CONTAINS THE QUERY TEXT BY WHICH THE LIST ITEM WILL LOAD
         rg_Level_Col_name THIS IS THE LEVEL OF THE REQUIRED ITEM THAT OBVIUSLY A CHAR DATA TO BE RETRIVE
         rg_Value_Col_name THIS IS THE VALUE OF THE REQUIRED ITEM THAT OBVIUSLY A NUMBER DATA TO BE RETRIVE
                   R_Group          RecordGroup;
                   Rowcount      NUMBER;
                   rg_name      VARCHAR2(40) := 'DefaultRG';
                   rg_id      RecordGroup;
                   errcode      NUMBER;
                   Lid                    Item;
    BEGIN
         --+++++++++++++++++++++THIS IS USED TO POPULATE THE RECORD GROUP+++++++++++++++++++++++++++++++++
                   rg_id := Find_Group(rg_name);                                             Find the record group                                                   +
                                                      --+
                   IF Id_Null(rg_id) THEN                                                                                                                                                                          --+
                             rg_id := Create_Group_From_Query(rg_name,Query_Text);                                                                                     --+
                             errcode := Populate_Group(rg_id);                                                                                                                                       --+
                   else                                                                                                                                                                                                                       --+
                             errcode := Populate_Group_With_Query(rg_id,Query_Text);                                                                            --+
                   END IF;                                                                                                                                                                                                                  --+
         --+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     
              If errcode = 1403 then
                   Message('There is no data to be retrive......');
              else
         --+++++++++++++++++++++THIS IS USED FOR LOADING DATA TO THE LIST ITEM++++++++++++++++++++++++++++
                   Rowcount      :=      Get_Group_Row_Count(rg_id);                              Counting the total rows in RGroup          +
                   Lid                    :=     Find_Item(List_name);                                                                                                                                            --+
                   Clear_list(Lid);                                                                                          Clear the list which is loaded now     +
                   FOR J IN 1..Rowcount LOOP                                                                                                                                                                     --+
         Add_List_Element(List_name,                                                            the name of the list item                              +
                                                      J,                                                                                index of the list                                                  +
                                                      Get_Group_Char_Cell('DefaultRG.'||rg_Level_Col_name,j),     Level of item+
                                                      Get_Group_Number_Cell('DefaultRG.'||rg_Value_Col_name,j) value of item+
                                                      );                                                                                                                                                                               --+
                   END LOOP;                                                                                                                                                                                                             --+
         --+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
              end if;
    END;
    ===============================================================

    Hi Farhad,
    You can make use of Populate_List built-in.
    Populate_List(list_id, 'RECGRP');
    You can find more information in online documentation of forms.
    Cheers
    Zakiy

  • Unable to populate list items with criteria

    Hi
    I want to populate some values based on condition in a text field.
    I tried the code wihtout condition in new form instance and its working fine but when i tried with an condition on when mouse click on list item and its working for first action.If list having more than 1 values in list its became blank and not working
    DECLARE
    group_name varchar2(40) :='LSTCUR';
    group_id RecordGroup;
    list_id item := Find_item('TB.LSTCUR');
    status NUMBER;
    begin
    IF Id_null(group_id) THEN
    group_id := Create_Group_From_Query('LSTCUR','select distinct curr,curr from REC_CURR_V where br =:TB.PSRCH');
    END IF;
    Clear_list(list_id);
    status := Populate_Group('LSTCUR');
    Populate_list(list_id,group_id);
    end;
    rgds
    soumya

    soumya,
    Try this code.
    DECLARE
         RG_Group_ID RECORDGROUP;
         Num_Status NUMBER;
    BEGIN
         RG_Group_ID := FIND_GROUP('LSTCUR');
      IF NOT Id_Null(RG_Group_ID) THEN
              DELETE_GROUP(RG_Group_ID);
      END IF;
         RG_Group_ID := CREATE_GROUP_FROM_QUERY('LSTCUR', 'SELECT DISTINCT CURR, CURR FROM REC_CURR_V WHERE BR = ''' || :TB.PSRCH || '''');
         CLEAR_LIST('TB.LSTCUR');
         Num_Status := POPULATE_GROUP('LSTCUR');
         POPULATE_LIST('TB.LSTCUR', RG_Group_ID);
    END;Regards,
    Manu.
    If my response or the response of another was helpful, please mark it accordingly

  • How to populate List Item from the table in a form builder

    I want to know how to populate the List Item (pop up menu and combo box) from a table.
    Supposing I have a table Customer(cust_id,cust_name)
    and now I want to populate it in such a manner that I can update the data back to the database and also access the list on the form.

    This is the method i am using to populate a list.
    1- First of all you need to create a non-database list item for customer_name.
    2-create this procedure
    PROCEDURE populate_list_with_query
    --Populates the given list item with the specified query.
    (p_list_item in VARCHAR2
    ,p_query in VARCHAR2)
    IS
    /* Name the record group after the list item (no
    block prefix). */
    cst_rg_name constant VARCHAR2(30) :=
    GET_ITEM_PROPERTY(p_list_item,item_name);
    v_rg_id RECORDGROUP;
    BEGIN
    v_rg_id := FIND_GROUP(cst_rg_name);
    IF ID_NULL(v_rg_id) THEN
    v_rg_id := CREATE_GROUP_FROM_QUERY(cst_rg_name,p_query);
    END IF;
    IF POPULATE_GROUP(v_rg_id) = 0 THEN
    POPULATE_LIST(p_list_item,v_rg_id);
    /* Force display of first list element label
    in the list item. */
    COPY(GET_LIST_ELEMENT_VALUE(p_list_item,1),p_list_item);
    END IF;
    END populate_list_with_query;
    3- Create When-Create-Record on the block level and write this code
    BEGIN
    POPULATE_LIST_WITH_QUERY('bk1.customer_name',
    'SELECT customer_name, to_char(customer_id) FROM customer');
    END;
    In this example, the customer name is the (visible) list label and the customer ID is the (actual) list value
    i hope this will solve your problem ...

  • Populate list item dynamically

    Hi all.
    I have a problem. I must populate a list item with a select, using the add_list_element statement inside a loop, using a cursor. My problem is that I must parametrize the select of the cursor: I pass a parameter in the procedure which is a field of the select of the cursor, but I have no result. The statement is the follow
    cursor c1 is
    select distinct("name of the parameter")
    from table
    order by 1;
    When I execute this statement I have no result. Is there anyone to help me???
    Thank you all for your collaboration.

    Hi dear,
    as for as i understood your problem, you want to populate the element list with a select query and your are using cursor and add_elements for this purpose which is complex and lenghtly,
    why dont you use populate_group and populate_group_with_query built-ins instead of add_elements built in, by above mentioned two builts ins, you can populate the element list with a query and even you can refresh your element list at any time during runtime by populate_group_by_query. here is an example, you can also take benefit from forms builder help;
    in new_form_instance trigger write following code to populate a list with select query;
    DECLARE
    rg_id RecordGroup;
    errcode NUMBER;
    BEGIN
    rg_id := Create_Group_From_Query( 'LIST1_GRP','select code_name, code_no from any_table where code_name = ''0107''',FORM_SCOPE,200);
    errcode := Populate_Group( rg_id );
    Clear_List('CNOTE_TYPE');
    Populate_List('CNOTE_TYPE','ACCNO_GRP');
    end;
    user populat_group_by_query to refresh list elements after the forms is already load and elements list is already populated.
    any further question, feel free.

  • How to populate list item depending another

    hello all,
    Am newbie to using Oracle forms 6i i have 3 list items namely CITY_NAME, STATE_NAME ,COUNTRY_NAME and i want to display city_name depending on state_name and display state_name depending on country_name... help me

    Hi
    Pls Study , try & Test the following...
    http://andreas.weiden.orcl.over-blog.de/article-28957008.html
    Hope this helps...
    Regards,
    Abdetu...

  • Dynamic populate list item

    Hello All,
    I have a list item for status. I need to dynamic build the item for list item depend on the status on the database.
    Status is 0, 1, and 2.
    If status 0 : list item contains status (1,2)
    if status 1 : list item contains status (2)
    if status 2 : list item contain status (1)
    Please give me the step how to do it.
    Any help from you is appreciated
    Jenny

    Hello All,
    Thank you very much for all your help.
    Instead of using the list item, my manager wants to use the text item with specific LOV based on the status code existed on the table.
    My question are
    1. Do I need to build multiple LOVs and call the specific LOV depend on the value of status code?
    LOV1 for status 1
    LOV2 for status 2
    2. Do I need to dynamic build the record group based on the value of the status code and call by 1 LOV?
    LOV
    Record group (where statement for status 1) and (where statement for status 2)
    If you do not understand my post, please let me know.
    Please give me your suggestion and any sample code.
    Any help from you is appreciated.
    Jenny

  • Creating items on Tab canvas

    I am creating text items on a Tab canvas.It allows me to put the items upto certain area only.If I put any item beyond while generating .fmx ,gives me error
    FRM-30041 Position of item places it off of canvas.
    However my canvas size is enough to accomadate.I am encountering this problem only with Tab canvas.With content canvas it is perfectly alright.
    what is the problem and solution?
    Appreciate help.Thanx.
    null

    Thanks randall.It worked.

  • List Item problem in oracle forms

    Hi,
    I am using list item in oracle forms 6i and facing one problem. I am populating list using following built-in.
    Clear_list()
    Create_Group_From_Query( )
    Populate_list()
    The problem I am facing is when list gets populate it keep the cursor at last element of list with null value. I want cursor to go at first item in the list. Is this thing is possible. The list item I am using is pop-list. In combo its showing list perfectly but I have to use pop-list only. Please help to come out of this problem.
    Thanks in advance
    Shweta.

    Hi Shweta,
    Please post your query in Oracle Forms discussion forum.
    Thanks,
    Wilson.

  • List item problem - couldn't pick a value

    Dear professionals,
    i used Andreas's code to dynamically populate list item (http://andreas.weiden.orcl.over-blog.de/article-28957008.html) and it works fine (nice work Andreas)!
    My problem is that i couldn't pick any value from list - I see many values, but there is now way to choose any of them. (video and picture are here: http://imageshack.us/g/3/property.jpg/)
    Also, i spotted that it's not possible to use Combo-box property along with encapsulating procedure - the form is just not opened...
    I'm using JRE 1.6, 10gR2 (10.1.2) F&R...
    Does anyone know why is that ?
    Thanks in advance,
    Adnan
    Edited by: adnanBIH on Jul 5, 2011 8:33 AM

    Andreas Weiden wrote:
    You didn't show us the query you use to populate the list. I would guess that all entries have the same value for the VALUE-column of the select, so that they are all "identical" from the value.Andreas bravo ! :))
    Yes, you're right - my select statement looks like this:
    select a value, "Word" label
    from emp;I'll fix it tomorrow - thx once again, generic procedure is excellent !
    Adnan

  • List items problems in oracle forms 6i

    Hello friends,
    I am using list item in oracle forms 6i and facing one problem. I am populating list using following built-in.
    Clear_list()
    Create_Group_From_Query( )
    Populate_list()
    The problem I am facing is when list gets populate it keep the cursor at last element of list with null value. I want cursor to go at first item in the list. Is this thing is possible. The list item I am using is pop-list. In combo its showing list perfectly but I have to use pop-list only. Please help to come out of this problem.
    Thanks in advance
    Shweta.

    I have a question related to this post...what if you want the first item on the list to be the null record - but have it at the top of the list - like all other drop downs I've seen? I'm running on forms 9i
    Edited by: saburo on Mar 2, 2010 7:58 AM

  • List Item in Oracle forms

    Hello, I am using oracle weblogic 10.3.5 with oracle forms 11g at windows 7 platform.I have an oracle form with a list item(database item). Now I have attached a record group from another database table to populate list item.My list item is by default set at null value but I want  to show a particular value in list item as when new instance  of list item is occurred:
    |                 ABC                                    |             
    |__________________________________|
    it is a list item.It has 4 values as
    Name          Value
    ' '                    NULL
    A                    1
    B                    2
    ABC                3
    D                    4
    and when list item instance is loaded then I want to show the ABC (able name) and  3 (value) in list item.
    thank You
    regards aaditya

    Block Level Trigger: When new record instance
    :list_item:=3;

  • Problem with List Item in oracle forms

    Hello Experts,        
                         I am new in oracle forms and i am using oracle forms 11g with weblogic 10.3.5 at windows 7.
    I have 3 database tables say(tbl_city,tbl_state,tbl_address).
    tbl_city
    C_ID
    C_name
    S_ID
    0
    None
    0
    1
    XYZ
    1
    2
    AS
    2
    3
    AXD
    2
      tbl_state
    ID
    s_ID
    S_Name
    0
    None
    1
    XY
    2
    ASD
    tbl_address
    A_ID
    A_Street
    S_ID
    C_ID
    1
    ABC
    1
    1
    Now I have made an oracle form having data block tbl_address with base table name tbl_address. In the form there are two list: one(list_state) for State_Name & State_ID and another(list_city) for City Name & C_ID display.
    Here I want when I set State_name to ASD then List item list_city should be populated with the values having State_NAME=ASD not of State_Name=XY or None.I have tried it to make but not succeeded.I have made a procedure to populate list_city list item as:
    -- here item_nm-->List item Name,  sel_val & sel_val2 for selecting C_ID and C_NAME,   tablNm---->tbl_CITY,  whr for where condition,   mtch--->selected value of list_State(list item in form)
    PROCEDURE list_item(block_nm varchar2,item_nm varchar2,sel_val varchar2,sel_val2 varchar2,tablNm varchar2,whr varchar2,mtch varchar2) IS
    group_id RecordGroup;
    group_name varchar2(10) :='abc';
    status NUMBER;
    query1 varchar2(350);
    item_name varchar2(20);
    match varchar2(50);
    BEGIN
        match:=mtch;
        item_name:=block_nm||'.'||item_nm;
      group_id := find_group(group_name);
    if not id_null(group_id) then
    delete_group(group_id);
    end if;
    --if whr='' then
    --    match:='0';
    --    end if;
    query1:='select '|| sel_val || ',TO_CHAR('|| sel_val2 || ') from '|| tablNm ||' where '||whr||' = '||mtch;
    message(query1);
    group_id := Create_Group_From_Query(group_name,query1);
    /* Select statement must have two column*/
    status := Populate_Group(group_id);
    Populate_List(item_name,group_id);
    exception
        when others then
        message('error');
    END;
    I am not  able to guess what trigger  in oracle forms should be used to populate list item(list_city). Please help by giving useful suggestion.
    Thank You
    regards
    aaditya

    979801 wrote:
    If I use LOV in place of List Item,Then I have to populate a LOV at run time.How could I maintain a record group n attach to LOV at run time?
    On my previous post I have mentioned record group as follows:
    select * from tbl_state where s_id=:tbl_address.s_id;
    If :tbl_adress.s_id chaned during the time of run, then output values of list_city (LOV) is also changed.

  • Inserting ordered/unordered list items breakes the document design

    Hi,
    I use JEditorPane to edit HTML document. When I insert ordered/unordered list items, it breakes the design of the document. For example, I have next peace of the document:
    <center>
    This text is centered.
    One more line...
    </center>
    after inserting list item between text lines, document looks like :
    <center>
    This text is centered.
    </center>
    <ol>
    <li>
    </li>
    </ol>
    <center>
    One more line...
    </center>
    Note, that center tag is closed before list item and opened after it.
    Is it possible that inserted list items will save the original design of text around ?
    Thanks.
    .Vlad.

    Change the Leading in the Character Pallet to a smaller number, and increase the Space After in the Paragraph Pallet.
    The space between lines in the same paragraph is the leading, the space between paragraphs is not leading, and trying to achieve it with the leading field always creates more problems than it solves.

Maybe you are looking for

  • Help with Applescript

    Hi there, thanks in advance for any help on this ... I have an excel spreadsheet export from our back-office that exports product information from our shop. I want this to be reformatted slightly using AppleScript An example of our workbook is as fol

  • Message = QM109 and FM = QM04_CHECK_NOTIFIC_CATEGORY

    Hello, Collegues! I have got one problem. I try integrate DMS and CS. I have service notification with the 3-d category (service notification, QMTYP). I made Object Link for doc type (for example SMQMEL) for linking DMS doc with service notification,

  • BUG: background image under Linux

    Hi, This is actually two bugs... 1) When you select a background image under Linux (I'm using CentOS, 100% comatable with Red Hed), and set it to Stretch, the image gets mangled. Probably a byte allaignment problem. 2) When you change the background

  • QT Pro, worth it?

    I am having trouble with iMovie&my digital camera. My camera imports videos as .avi files. I have tried changing this but I can't anywhere. iMovie doesn't accept .avi files (however on certain occasions it works no problem, strange). Anyway, I have h

  • Restore iMac from external dvd drive

    I'm giving my iMac to a friend. But my superdrive is is failing to read the restore disks, but not after wiping the HD. Now my G4 iMac wont do a thing. I had assumed that my external DVD drive would do, but it stops on the small mac icon and goes no