How do I select more records using data blocks, set_block_property

Hi, I am new in oracle forms builder. I want to fetch more then one records using set_block_property and data block. please help me. How do I select more then one data? I don't have any Idea about Oracle
Please Help its urgent

What is your Forms version?  Is your form in "Form" (single record) or "Tabular" (multi-record) layout?  You can't use the SET_BLOCK_PROPERTY() built-in to change the number of records that are displayed - this must be done during design through the Forms Builder.
What exactly are you needing to do?
Craig...

Similar Messages

  • How can i select more than one record in a LOV

    I want to select more than one record in a LOV and put them together before to display them in an item.

    This is not possible with a default LOV, so you'll need to create your own. There are a number of ways to select multiple records:
    a) you can use a tree and set Multi-Selection to Yes
    2) you can use a normal block with a checkbox on each row for the user to select records
    three) with the [SYSTEM.MOUSE_BUTTON_MODIFIERS|http://www.oracle.com/webapps/online-help/forms/10g/topics/designing_forms/mouse/at0604.html?tp=true] variable you can allow users to ctrl+click to select many records in a block. set the background colour to indicate a record has been selected
    iv) there is a pjc in the [demo code section|http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip] which lets you select many rows in a poplist

  • How to Save Multiple Records In Data Block

    Hi All,
    I Have Two Blocks --> Control Block,Database Block
    Please Any Idea How to Save Multiple Records In Data Block when User changed Data in Control Block.
    Thanks For Your Help
    Sa

    Now i have to use each record of control block(ctl_blk) as where condition in data base block(dat_blk)and display 10 records from database table.>
    Do you want this coordination to be automatic/synchronized or only when the user clicks a button or something else to signal the coordination? Your answer here will dicate which trigger to put your code in.
    As to the coordination part, as the user selects a record in the Control Block (CB), you will need to take the Key information and modify the Data Block's (DB) "DEFAULT_WHER E" block property. The logical place to put this code is the CB When-New-Record-Instance (WNRI) trigger. You code will look something like the following:
    /* Sample WNRI trigger */
    /* This sample assumes you do not have a default value in the BLOCK WHER E property */
    DECLARE
       v_tmp_dw    VARCHAR2(250);
    BEGIN
       v_tmp_dw := ' DB_Key_Column1 = '||:CONTROL.Key_Column1||' AND DB_Key_Column2 = '||:CONTROL.Key_Column_2;
       Set_Block_Property('DATA_BLOCK', DEFAULT_WHER E, v_tmp_df);
       /* If you want auto coordination to occur, do the following */
       Go_Block('DATA_BLOCK');
       Execute_Query;
       /* Now, return to the Control Block */
       Go_Block('CONTROL_BLOCK');
    END;
    The Control block items are assigned with values in Form level (Key_exeqry).If your CD is populated from a single table, it would be better to create a Master - Detail relationship (as Abdetu) describes.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How do I select more than one frame? (editing a movie in PS)

    Fisrt time ive tried this.
    I want to do a quick selecton on a movie clip but can only seem to select 1 fram at a time. How can I select more than one frame?
    cheers
    jamie

    If you used Sequence to Layers, Shift and Control key in the layers palette work just as they would when selecting files in Explorer... If it's a video layer, then you should only see one layer and will have to use the Timeline to navigate.
    Mylenium

  • How to get pivot table by using dates

    Hi,
    How to get pivot table by using dates in column.
    Below is the sample table and its value is given.
    create table sample1
    Order_DATE       DATE,
    order_CODE       NUMBER,
    Order_COUNT   NUMBER
    Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('30-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),1,232);
    Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('30-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),2,935);
    Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('30-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),3,43);
    Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('30-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),4,5713);
    Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('30-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),5,11346);
    Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('29-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),1,368);
    Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('29-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),2,1380);
    Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('29-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),3,133);
    Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('29-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),4,7109);
    Insert into sample1 (Order_DATE,order_CODE,Order_COUNT) values (to_timestamp('29-SEP-12','DD-MON-RR HH.MI.SSXFF AM'),5,14336);
    select * from sample1;So how to get the data like below.
              order_date
    order_code 30-sep-12 29-sep-12
    1 232 368
    2 935 1380
    3 43 133
    4 5713 7109
    5 11345 14336

    Using the extra data I inserted in my previous reply:select ORDER_CODE,
    SUM(DECODE(extract (month from ORDER_DATE),1,ORDER_COUNT,0)) JAN,
    SUM(DECODE(extract (month from ORDER_DATE),2,ORDER_COUNT,0)) FEB,
    SUM(DECODE(extract (month from ORDER_DATE),3,ORDER_COUNT,0)) MAR,
    SUM(DECODE(extract (month from ORDER_DATE),4,ORDER_COUNT,0)) APR,
    SUM(DECODE(extract (month from ORDER_DATE),5,ORDER_COUNT,0)) MAY,
    SUM(DECODE(extract (month from ORDER_DATE),6,ORDER_COUNT,0)) JUN,
    SUM(DECODE(extract (month from ORDER_DATE),7,ORDER_COUNT,0)) JUL,
    SUM(DECODE(extract (month from ORDER_DATE),8,ORDER_COUNT,0)) AUG,
    SUM(DECODE(extract (month from ORDER_DATE),9,ORDER_COUNT,0)) SEP,
    SUM(DECODE(extract (month from ORDER_DATE),10,ORDER_COUNT,0)) OCT,
    SUM(DECODE(extract (month from ORDER_DATE),11,ORDER_COUNT,0)) NOV,
    SUM(DECODE(extract (month from ORDER_DATE),12,ORDER_COUNT,0)) DEC
    from SAMPLE1
    where trunc(order_date, 'YY') = trunc(sysdate, 'YY')
    group by order_code
    order by order_code;
    ORDER_CODE JAN FEB MAR APR MAY JUN JUL AUG   SEP   OCT NOV DEC
             1   0   0   0   0   0   0   0   0   600   600   0   0
             2   0   0   0   0   0   0   0   0  2315  2315   0   0
             3   0   0   0   0   0   0   0   0   176   176   0   0
             4   0   0   0   0   0   0   0   0 12822 12822   0   0
             5   0   0   0   0   0   0   0   0 25682 25682   0   0Now a bit of explanation.
    1) Whenever you pivot rows to columns, no matter what version of Oracle and no matter what method you use, you have to decide in advance how many columns you are going to have and what the names of the columns are. This is a requirement of the SQL standard.
    2) I use the WHERE clause to get just the data for this year
    3) With EXTRACT, I get just the month without the year.
    4) Using DECODE, I put every month's data into the correct column
    5) Once I do all that, I can just GROUP BY order_code while SUMming all the data for each month.

  • How we can select two records in alv report

    how we can select two records in alv report

    Hello,
    You can use the method <b>get_selected_rows</b>.
         CALL METHOD gv_alv->get_selected_rows
            IMPORTING
          ET_INDEX_ROWS =
            et_row_no     = lt_selected_rows.
    READ TABLE lt_selected_rows INTO ls_selected_row INDEX 1 .
    The table <b>lt_selected_rows</b> will contain all the selected rows.
    Regards,
    Beejal
    **reward if this helps

  • When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page.

    When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page. I don't want to have to check off an additional 5 or 6 attributes each time I print out contact information. Is there a way to change the default setting for printing lists, so it is not just "phone," "photo," and "job title?"

    I have a user who wants to do this same thing. I did not find any way either to default the attributes to anything other than what you see the first time. Seems like such a trivial thing, hard to believe they do not allow it. I did find a program for this called iDress but I can't seem to download it from any links on the Internet. Not sure if it is free or not, but it was recommended by a link on the Mac support site.

  • How can I select more than one song from the search results?

    I want to create playlists based on certain words in the song title. For example, I may want to create a playlist of all my songs with LOVE in the title.
    Doing the search is easy, but I can't select more than one song at a time. Is there any way in iTunes 12 for Windows to do this? I found an answer in iTunes for Mac, and it basically says to "un-check "Search Entire Library." " but I don't see that option in iTunes for Windows.
    Here is the link to that question: how can i select more than one song from drop down search bar
    I hope some Windows user can help me out.

    Found the "Search Entire Library" option - click on the small (VERY small for my eyesight) down arrow next to the magnifying glass. Also need to select "Filter by: Songs", and then the songs in the main window show the results.
    I'm going to leave this up on the board because 1) in case someone else has this question, and 2) I don't know how to delete it anyway.

  • How do I select more than one message at a time for archiving

    I want to archive multiple messages into one archive folder. How do I select more than one message at a time?

    Really appreciate the help. Many thanks

  • TS4436 How do I select more than one picture and send them all to Facebook on my iPhone 4s with iso7?

    How do I select more than one picture and send them all to Facebook on my iPhone 4s with iso7?

    Hi, I want to thank you for all your information regarding my questions about sending more than one photo to Facebook. I did have to stop in at Verizon (where I bought my iPhone) to find out why I did not have a choice to choose Facebook with the export icon. The tech had to go into my setting and enable Facebook to recognize my iPhone. When I upgraded to iso7 somehow it could not recognize Facebook. Once he did this for me I was able to follow your advice and your answer solved my question. Thank you

  • Select  More than one Data Source in UM Configuration

    hi,
    We configure our portal EP 6.0 with the CRM Dev system, such that the users created in CRM Dev system reflect in portal as well.
    now the problem is in CRM Test system. when we create users, users are going to create in CRM test system.but our portal is configured with CRM Dev system.
    is there any way to configure portal with both CRM Dev system users and CRM test system users.
    thanks

    See Select More than one Data Source in UM Configuration

  • How to select more than one data packet?

    Hi,
    I have uploaded data using 3 different data packets. However, for each of these packets there are some errors.
    Using Monitor > PSA Maintenance, I want to display error data records for all three different data packets in one screen. These erratic data will be send to our users for their rectification. However, I can only select and disply erratic data records packet by packet. So this has to be done three time instead of once.
    Can u advise on how to display all erratic data records in one screen.

    Hello Fulham FC,
    How r u ?
    I feel it is possible to select all 2 or more requests at once. Provide
    ...No. of Records ---> count the total no of records in the packages u select.
    ...From Record -
    > 2147483647
    Then try CONTINUE. In our system its throwing Dump !!!
    I believe dude, in PSA Maintenence there is a button  SELECT ALL & even in the data package also it is allowing to select two or more. There should be some way to do this.
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • How to to display entire records using PL/SQL(anoyomous block)

    Hi All,
    I have created a region of type PL/SQL by using rownum, and it wil display few records due to rownum.
    But the end user is asking to display the rest of records also using some pagination concept or any other way.
    How can we achieve this?
    In mean time i have tried to execute the by removing the rownum, then it is throwing the below Query
    Error- ORA-06502: PL/SQL: numeric or value error: character string buffer too small.
    Thanks,
    Ano.
    Edited by: Anoo on Mar 19, 2012 12:18 AM

    Hi,
    Here is the query we are using to dsipaly the records, but the limit we are dsiplaying is only 300.
    So the concern is how we can display all records.
    DECLARE
    list_arr2 htmldb_application_global.vc_arr2;
    p VARCHAR2(4000);
    v_default_start_date DATE;
    j NUMBER :=0;
    occurrencies NUMBER(10);
    CODESELECT VARCHAR2(7);
    BEGIN
    IF :P2_SYMBOL_CODE_HIDDEN IS NOT NULL THEN
    CODESELECT:=:P2_SYMBOL_CODE_HIDDEN;
    ELSE
    CODESELECT:='';
    END IF;
    Select TO_char(SYSDATE-1,'MM/DD/YYYY') into v_default_start_date from Dual;
    :P2_START_DATE := v_default_start_date; */
    list_arr2 := htmldb_util.string_to_table (:P2_SYMBOL_NAME, ',');
    p := 'SELECT SYMB_SARUS_DESCRIPTION,SYMB_CODE FROM ( '
    || 'SELECT '''' SYMB_SARUS_DESCRIPTION,''NA'' SYMB_CODE FROM DUAL ';
    p := p
    || ' UNION all SELECT sym.SYMB_SARUS_DESCRIPTION || ''- '' '
    || ' || sym.SYMB_CODE SYMB_SARUS_DESCRIPTION , sym.SYMB_CODE '
    || ' from T_SYM sym ';
    IF :P2_ACTIVESYMBOL='ACTIVE ONLY' THEN
    p := p || ', ( SELECT distinct DSPS_SYMB_CODE FROM t_dispatch_symbol ' ||
    ' WHERE dsps_dsp_code IN ( SELECT adsp_dsp_code ' ||
    ' FROM t_aut ' ||
    ' WHERE adsp_vend_code=''FTP'' ' ||
    ')) act_symb ' ||
    ' WHERE sym.SYMB_CODE=act_symb.DSPS_SYMB_CODE AND ';
    ELSIF :P2_ACTIVESYMBOL='INACTIVE' THEN
    p := p || ', ( SELECT distinct DSPS_SYMB_CODE FROM t_dis ' ||
    ' WHERE dsps_dsp_code NOT IN ( SELECT adsp_dsp_code ' ||
    ' FROM t_aut ' ||
    ' WHERE adsp_vend_code=''FTP'' ' ||
    ')) act_symb ' ||
    ' WHERE sym.SYMB_CODE=act_symb.DSPS_SYMB_CODE AND ';
    ELSE
    p := p || ' WHERE ';
    END IF;
    p := p || 'UPPER(sym.SYMB_SARUS_DESCRIPTION) LIKE ';
    FOR i IN 1 .. list_arr2.COUNT
    LOOP
    IF i = 1
    THEN
    p := p || ' UPPER(''%' || TRIM(list_arr2 (i)) || '%'') ';
    ELSE
    p :=
    p
    || ' AND UPPER(SYMB_SARUS_DESCRIPTION) LIKE '
    || ' UPPER(''%'
    || TRIM(list_arr2 (i))
    || '%'') ';
    END IF;
    END LOOP;
    p := p || ' order by 1 ) where rownum < 310 ';
    p := REPLACE(p, '''||''', '||');
    IF LENGTH(:P2_SYMBOL_NAME) > 2 AND :P2_HIDD = 'cdf' THEN
    htp.p('<table>');
    htp.p('<tr bgcolor=white><td width=20% align="left">');
    htp.p('<font color="#094991" size="1">     Search By Name</font>');
    htp.p('</td>');
    htp.p('<td align="left">');
    htp.p(APEX_ITEM.SELECT_LIST_FROM_QUERY(3,CODESELECT,p,'onChange="setSymbolCode(this.value);" size=10','NO','','','P2_SEARCHNAME','','Select'));
    htp.p('</td>');
    htp.p('</tr>');
    htp.p('</table>');
    END IF;
    IF LENGTH(p)<=0 THEN
    :P2_SYMBOL_CODE_HIDDEN:='';
    END IF;
    END;
    Thanks,
    Anoo.
    Edited by: Anoo on Mar 19, 2012 1:10 AM

  • How can i select more than one song from drop down search bar

    sometimes to make a playlist i will search my music library for a word & then add all the songs with that word in the title
    the drop down search bar will not allow me to select more than one song
    or
    will it?  & i just can't suss out how... maybe you know?
    if so, please tell me~!!!
    thank you

    hey i tried that before i posted this question... i tried all of the normal ways one would use to select more than one item...
    any click of any kind at all takes you out of the search drop down & into the main itunes window... where you are deposited back into the songs alphabetically... no longer are you seeing the results of the search...
    sigh
    at the risk of sounding like one of those people, the "old" itunes did not have this problem...
    grrrr... it seems to be that pesky drop down menu~ if only you could see the search results in the main list as opposed to only in the drop down thing

  • How do I skip footer records in Data file through control file of sql*loade

    hi,
    I am using sql*loader to load data from data file and i have written control file for it. How do i skip last '5' records of data file or the footer records to be skiped to read.
    For first '5' records to be skiped we can use "skip" to achieve it but how do i acheive for last '5' records.
    2)
    Can I mention two data files in one control file if so what is the syntax(like we give INFILE Where we mention the path of data file can i mention two data file in same control file)
    3)
    If i have datafile with variable length (ie 1st record with 200 charcter, 2nd with 150 character and 3rd with 180 character) then how do i load data into table, i mean what will be the syntax for it in control file.
    4)if i want to insert sysdate into table through control file how do i do it.
    5) If i have variable length records in data file and i have first name then white space between then and then last name, how do i insert this value which includes first name and last name into single column of the table.( i mean how do you handle the white space in between first name and last name in data file)
    Thanks in advance
    ram

    You should read the documentation about SQL*Loader.

Maybe you are looking for