Single and  Multiple Records On Same Data Block?

Hi all,
Im using forms 6i with db 9i.
Im having a nested table which contains a column of datatype TYPE(table of varchar2(100)).
Now i want to create a data block based on the nested table.
So, I want only one column should be multirecord in the block.
When i set the block level NO OF RECORDS PROPERTY to multiple, then all the items in the block getting changed as
multi records.
Is that possible to have multirecord for a particular field OR how to fix this issue?
Regards
Sankar MN
Edited by: SankarMCA on Oct 17, 2010 9:55 PM

Hi Baiq,
Thanks for your responses. I moved the multirecord item into a separate block(control block) and it worked.
But still im having a doubt regarding this.
How can we map a db column which has datatype of TYPE(Collection) to a particular item in forms?
Because when i try to create a new datablock based on that table im not able to move that collection column from
the available columns to database items in the datablock wizard. It seems like disabled and tree node structure and
im not able to select the same.
Next thing, Even though we assigned those column manually, How the commit_form save that multirecord column
with multiple values?
So kindly let me know how to solve this case if possible.
Regards
Sankar MN
Edited by: SankarMCA on Oct 18, 2010 7:14 AM

Similar Messages

  • Inserting multiple records in a data block

    Hi, how do i insert multiple rows from a record group into a data block. Thanks

    You do it manually. Copy the values and move to the next record in the record group and in the block.
    You might like the concept of basing a block on a stored procedure better. Check out the stored procedure based block sample that comes with the Oracle Forms demos.

  • Multiple Selection from a data block

    Hello,
    I have a data block returning the names and surnames of employees. Can I select multiple rows from that data block?
    Thank you

    You could put a checkbox on the row and if it is ticked then interpret this as a selected row.
    Sometimes it is useful to store this type of selection in some type of structure like a record group or index by table and process those rows rather than read the data block

  • Counting number of records in a data block

    hi folks,
    Simple question for you guys: How can I count number of records in a data block.
    In other words, say I have 10 detail records listed on a data block (one of my columns is a non-database item for entering a number). Now I just want to do somethin like:
    Select count(*) From <data_block> into lnRecCount
    Where <non-database column> <> 0 ;
    Can I do this in a button trigger? I can't get it to work?
    Thanks,
    bob

    You should make a routine that go through records of the block and count the records that agree with your condition.

  • Multiple records in Indesign Data merge

    When I select the option for multiple records in InDesign Date Merge, I still only get one record on a page in preview. When I ask it to create a merged document, each item from the excell file is put on a separate page.  Why is this happening, I want 4 items on a page.

    Message was edited by: p_lue
    I figured out the problem.  The margins would have to be smaller for the page to accomodate multiple  records. Thanks for offering to help.

  • Toggling between single and multiple selection in a table

    I am working on ADF faces. I need to switch between single and multiple selection in <af:table based on a button I select.
    I cannot use switcher or rendered property inside <af:table. Only the first one is rendering the second one is not rendering based on the switch
    <f:facet name="selection">
    <af:tableSelectMany autoSubmit="true"
    rendered="#{treeBean.multipleRows}"/>
    </f:facet>
    <f:facet name="selection">
    <af:tableSelectOne autoSubmit="true"
    rendered="#{treeBean.singleRows}"/>
    </f:facet>
    When I use inside the switcher, it doesn't like the parent.
    Any ideas would be greatly appreciated.
    Thanks,
    Vijay.

    I have probably misunderstood what your issue is. I do not know what your version of ADF faces is. Here is some sample code working with my version. Please check if your jdev has "rowSelection" attribute. If it has, please try my sampe code
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces">
    <jsp:directive.page contentType="text/html;charset=utf-8"/>
    <f:view>
    <af:document title="tableSelectMany Demo">
    <af:form>
    <af:panelGroup layout="vertical">
    <af:messages/>
    <af:selectOneChoice value="#{sessionScope.tableSelection}"
    autoSubmit="true"
    id="selType"
    label="Selection Type">
    <af:selectItem label="Single" value="#{null}"/>
    <af:selectItem label="Multiple" value="#{true}"/>
    </af:selectOneChoice>
    <af:table summary="Periodic table"
    binding="#{tableActions.table}"
    partialTriggers="selType"
    rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}"
    value="#{periodicTable.tableData}" var="row" rows="10">
    <af:column>
    <f:facet name="header">
    <af:outputText value="Name"/>
    </f:facet>
    <af:outputText value="#{row.name}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Symbol"/>
    </f:facet>
    <af:outputText value="#{row.symbol}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Action Column"/>
    </f:facet>
    <af:commandButton immediate="true" text="Action"
    action="#{row.action}"/>
    </af:column>
    </af:table>
    </af:panelGroup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Retrieving records from a Data Block same as retrieving records from cursor

    Dear Gurus,
    Is it possible to retrieve records from a datablock same as retrieving records from a cursor,
    Eg:
    I am having two data blocks in two different tabs, Say B1 in Tab1, B2 in Tab2
    B1 is filled with two records, now when I switch to Tab2,
    I want all records of B1 in B2, assuming that blocks are having the same structure.
    The code I wish to write is,
    Goto B1,
    Take all the records like a cursor,
    Goto B2,
    loop
    insert
    end loop;
    Is this possible???

    I need to show it before saving,
    I tried this and it is successful somehow, do not know about any further problems,
    I took the record count of both blocks
    if :B1.reccount <> :B2.reccount
                   then
                   go_block('B1');
                   first_record;
                   for i in 1..:B1.reccount
                   loop
                        go_block('B1');
                        go_record(i);
              assign values from B1 to variables.
              go_block('B2');
              assign values from variables to B2
              next_record;
                   end loop;
                   clear_record;
              end if;
    This is working, Now I just want to know, if my block is having numerous fields, say more than 100 (may not be a value for large databases)
    how can I replace these variables here.
    I mean is it possible to declare something like a cursor record type.
    For eg : r1 cursor%rowtype

  • Selecting single record from multiple record based on date

    Hi experts,
    I have a table which contains the multiple records for single ID No. Now i have to select single record which contains the latest date.
    here is the structure
    Name   Null Type        
    ID_P        NUMBER      
    NAME_P      VARCHAR2(12)
    DATE_P      TIMESTAMP(6)
    Records
    1 loosi     22-AUG-13 01.27.48.000000000 PM
    1 nammi  26-AUG-13 01.28.10.000000000 PM
    2 kk        22-AUG-13 01.28.26.000000000 PM
    2 thej      26-AUG-13 01.28.42.000000000 PM
    now i have to select below 2 rows how can write select qurie for this?
    1 loosi     26-AUG-13 01.27.48.000000000 PM
    2 thej      26-AUG-13 01.28.42.000000000 PM

    Hi,
    You can use the analytic ROW_NUMBER function.
    I don't have a copy of your table, so I'll use scott.emp to illustrate.  In scott.emp, there may be multiple rows for a single job.  To display just 1 row per job, the row with the most recent hiredate:
    WITH got_r_num AS
         SELECT  empno, job, deptno, hiredate -- Or whatever columns you want
         ,       ROW_NUMBER () OVER ( PARTITION BY  job
                                      ORDER BY      hiredate DESC
                                    )  AS r_num
        FROM    scott.emp
    --  WHERE ...   -- If you need any filtering put it here
    SELECT   *      -- Or list all columns except r_num
    FROM     got_r_num
    WHERE    r_num   = 1
    What results do you want in case of ties?  Depending on your requirements, you may want to add tie-breaking expressions to the analytic ORDER BY clause, and/or use RANK instead of ROW_NUMBER.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Point out where the query above is producing the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
    If you modify the query at all, post your modified version.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Merge Data Multiple records problem (repeats data)

    I'm tring to creat some cataloge pages with 4 images, codes, dicritons etc per page.
    i have a excel sheet which I've saved to a CSV file for a data source. i have a single page with the first record at the top and enogh room to repeat the record 4 times on the page. When I do the data merge I'v selected multiple records per page and put in all the settings and spacings I want.
    Everything looks fine when i click on the multiple reports prevew but when i do the actual merge most of the merges copy the same data with only a few records using different data. It's generating the correct number of records and pages with 4 records per page but repeatiing the same record,except for 2 records which were different before going back to the repeated record. Also the record it repeats is not the first record on the list, it's about the 6 of 16.
    I'm using CS5 version of Indesign.
    Any one have any sugestions to get it working corrctly or is this a fault wiyh CS5?

    Data SourceBefore MergeDuring mergeAfter Merge Page 1After merge Page 2After merge Page 3
    Thanks John seamed to help usiing PNG also made a difference shifting fiiles from our network drive onto personal desktop. As you can see attached are the screen shots.

  • Retrive Multiple Records Into A database Block

    hi, all
    i would like to know if there is any document or references wich illustrait the way of retriving Multi records from a procedure built on database side into a database block using form 6i ??
    My Problem is : i create a procedure in the database which retrive a multiple records and the variable from procedure (out) are the same value from Form side (in). but it always fetch the whole records at the same record position in the block as the cursor raised on . i found a way explian how to mintain a set or record using a record type and create a table of that record type , but still don't' know how deal calling the procedure from the form side .
    Any advice of this issue will be greatfull and if sample of code provided will be better
    Thanks in Advance
    Regards
    Omar

    You can try something like this:
    PROCEDURE POPULATE_BLOCK IS
    cursor c1 is
    SELECT <your column names>
    FROM <your table name>
    where <your where condition>
    BEGIN
    open c1;
    go_block('<your block name');
    first_record;
    loop
    fetch c1 into
    :<your block name>.<your column name 1>,
    :<your block name>.<your column name 2>,
    etc,etc
    exit when c1%NOTFOUND;
    next_record;
    end loop;
    close c1;
    first_record;
    END;
    so your code might actually look something like this:
    PROCEDURE POPULATE_BLOCK IS
    cursor c1 is
    SELECT distinct
         a.pog_dept
         ,a.pog_number
         ,a.pog_level
         ,a.pog_id
    ,a.start_date
         ,a.transmit_date
    ,a.deactivate_date
         ,b.pog_description
    FROM pog_stores_msi a, pog_master_msi b
    where a.pog_dept = :b_main.bi_dept
    and a.pog_number = :b_main.bi_pog_number
    and a.pog_level = :b_main.bi_pog_level
    AND A.POG_ID = :B_MAIN.I_POG_ID
    and a.pog_dept = b.pog_dept
    and a.pog_number = b.pog_number
    and a.pog_id = b.pog_id;
    BEGIN
    open c1;
    go_block('b_main');
    first_record;
    loop
    fetch c1 into
    :b_main.bi_dept
    ,:b_main.bi_pog_number
    ,:b_main.bi_pog_level
    ,:b_main.i_pog_id
    ,:b_main.i_start_date
    ,:b_main.i_transmit_date
    ,:b_main.i_deactivate_date
    ,:b_main.i_pog_desc;
    exit when c1%NOTFOUND;
    next_record;
    end loop;
    close c1;
    END;
    Hope this helps,
    NumbNutz

  • ME01 LSMW multiple record for same material issue.

    Hi Experts,
    I have an issue with multiple record for the same material and plant when I upload the data from the file.  Lets I have the records.
    Material        Plant              Start date      Enddate        Vendor          Porg.
    1     0010     20060101     99991231     2     0010
    1     0010     20060101     99991231     3     0010
    When I upload the above data there are 2 IDOCs created when I am using the method LSMW-IDOC method, but only last record is getting updated and the first one is not getting updated in ME01 souce list. But I am getting the success message for both IDOC in LSMW. So I am not sure how to fix this why only last record is updated and not other records??

    why do you have 2 idocs?
    wouldn't be 1 idoc with 2 items be more logical?
    1 record in structure E1EORDH
    and 2 records in structure E1EORDM
    I believe your 2 IDOCs get posted, but I think your 2nd Idoc overwrites the values entered from the first IDOC.

  • CAT2 for Time Entry (single and multiple)

    Hello all,
    We have been using CATW for time entry and CAT2 for multiple time entry and have security set up accordingly. We're thinking of moving to CAT2 for all time entry but need to make sure we can configure to allow single time entry for those reporting only their own time, and multiple time entry for those reporting their own as well as others. I think this may be doable between a combination of security and IMG/Data Entry profile work. Does anyone have any experience using CAT2 in this way?
    Thanks,
    Doug

    First create a  data entry profile/CVR through SPRO for a time sheet,
    Then assign this profile to a user through user parameter CVR (Cats Variant for Recording) in the table USR05.
    This CVR is used in CAT2 to access the time sheet corresponding to the profile assigned to the user.
    Thanks
    Mahi

  • Multiple Copies of Same Data in RTF - Looping using variable

    We have a requirement, where an Invoice batch job will run
    at night and pick up all the entire invoices, batch would contain invoices of
    different customers.
    Each customer will have DFF at site level informing number
    of copies required to be printed.
    Eg:
    Customer ABC Invoice ABC111 No. of Copies -4
    Customer PQR Invoice PQR222 No. of Copies -2
    Customer XYZ Invoice XYZ3333 No. of Copies -1
    I am trying to use following variable in the RTF, for the data to loop but it creates various problems
    Grouping and Variables:
    <?for-each@section:G_HEADER?>
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,DFF,1)?>  --- value coming in XML tag from DFF
    <?for-each:/?>
    The actual invoice tables and rtf
    <?end for-each?>
    Problems:
    If I remove <?for-each:/?> tag, I am
    getting the looping of data but the output file has no data from tags – only column
    labels / headers appear ---- But looping happens
    a.) With <?for-each:/?> tag,
    sometimes the RTF works and looping happens along with data and something the RTF crashes with below error
                  oracle.xdo.XDOException:java.lang.reflect.InvocationTargetException
    b.) When I try with a data containing just single invoice – looping and everything works as expected.
    However, if I load data which has multiple invoices each having different value in DFF for looping, entire file only contains first invoice ---- Looping happens still but does not proceed to next group
    Solutions:
    Can someone please guide me to the solution?
    Please recommend what would be the correct syntax, so that each invoice gets looped dynamically in the RTF.

    Here's the dataset I used and tried to replicate what you were trying to achieve:
    <ROWSET>
    <ROW>
    <ITEM>A</ITEM>
    <COUNT>3</COUNT>
    </ROW>
    <ROW>
    <ITEM>B</ITEM>
    <COUNT>5</COUNT>
    </ROW>
    </ROWSET>
    Here's the code:
    <?for-each@section:ROW?><?variable@incontext:G1;current()?>
      <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,COUNT,1)?>
      <?$G1/ITEM?>
    <?end for-each?>
    <?end for-each?>
    So based on the count, there are 3 pages where A (from ITEM field) is printed and 5 pages where B is printed.
    Hope this helps.
    Bipuser

  • How can i update multiple records at same time in psa

    Hi,
    i need to modify certain column's value in psa. for one of InfoObject  fix value i need to change to some other value, can i write some routine or any other way to do so quickly.
    thnx

    If you are in prod, its tough to write code to manipulate PSAs. First of all, you need to transport your Program. Also, if you make a mistake, you can potentially change other PSAs.
    If you insist, get the name of the PSA. Go to RSA1, PSA tab. THere, right click on your infosource and select Delete PSA. DON'T DELETE anything in this screen. Just copy the Table name (look around, you will find it there). Now, go to SE16 and lok at the table contennts. If you give Req, data pack, etc, you can access multiple records. Now, write the program "carefully"  to access and change records in this table.
    There is another way, but this will work-out for you.
    Uday-Ram Chamarthy

  • Updating record in a data block based on view in oracle forms

    hi all ,
    We have two data blocks in our custom oracle form.The first data block is for search criteria provided with buttons 'GO' and 'ADD ROW' and the second data block is based on a view that fetches record when user clicks on GO based on the the criteria specified in the above block. The Below block contains one SAVE button too.
    We have a requirement when GO button is pressed and corresponding records are shown in the below block, user should be able to edit the record. Want to know how to make it editable?
    Help appreciated....!!!

    Your view is based on how many tables and does it include all NOT NULL fields from all tables?

Maybe you are looking for

  • Can you have more than 1 id with 1 itunes account?

    I have 1 mac, 2 macbooks, and a lot of apple mobile devices, can i get separate apple id's for my kids so that when they text or use face time, i don't get copied on my devices?  TIA

  • TIFF images in PDF documents

    Just looking for a short answer, no technical details needed: Is it possible to store TIFF images in PDF documents without losing information? Thank you in advance, k.

  • IPod disk formated? How to install it back all the players/programs?

    I am using MacBook and iPod. Once I've wanted to take copy all my videos from my iPod, which I've put in manualy into a hardrive (without iTunes) using MacBook, just copy and paste. When I've conected my iPod to the PC (my friends computer), on My co

  • IMac 24" OS X 10.5.8 crashes after startup

    After startup, my iMac crashes after a short while (from 10 seconds up to 10 minutes). The screen freezes and the keyboard doesn't respond. I can't click, however, i can move the cursor around. This iMac was bought 2008 and I've never had any problem

  • Cannot log into Skype for a few days

    hi myself and a friend have been cut of no reason,i have not used there service in 4 months why ,have they done this ,they took my d d on 23rd this month,have they gone into liquidation,is there anothe supplier,you cannot get thru to them,my friend t