Single item - multiple records

Hello.
Is there a way to fill one item in form with more than just one record?
Thanks

Though it is perfect, you may use text item with setting property multiple lines=yes and enabled=no, then use code like below:
DECLARE
N NUMBER := the_number_of_records_for_diaplay;
CURSOR C IS select RPAD(id,4,' ')||RPAD(name,15,' ')||username T
from your_table
where rownum<=N;
BEGIN
:yourblock.item := NULL;
IF N = 2 THEN
SET_ITEM_PROPERTY(yourblock.item',HEIGHT,50);
ELSIF N=3 THEN
SET_ITEM_PROPERTY('yourblock.item',HEIGHT,70);
END IF;     
FOR V IN C LOOP
:yourblock.item:=:yourblock.item||CHR(10)||V.T||CHR(10);
END LOOP;     
END;     

Similar Messages

  • 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

  • How to map single to multiple record in Biztalk Map

    Hi,
    I have a flat file Input as below
    For understandability I am making it as XML:
    <Input>
    <Name>vignesh</Name>
    <Country>India</Country>
    <orderNumber>123<orderNumber>
    </Input>
    I am having a look up table to retrieve multiple LineItem per Name
    Output expected 
    I need to repeat the record based on the table as
    <Output>
    <Detail>
    <Name>vignesh</Name>
    <LineItems>38</LineItems>
    </Detail>
    <Detail>
    <Name>vignesh</Name>
    <LineItems>45</LineItems>
    </Detail>
    <Detail>
    <Name>vignesh</Name>
    <LineItems>88</LineItems>
    </Detail>
    <Detail>
    <Name>vignesh</Name>
    <LineItems>99</LineItems>
    </Detail>
    <Detail>
    <Name>vignesh</Name>
    <LineItems>85</LineItems>
    </Detail>
    </Output>
    I have created an external assembly to pull the data from database and concatenating the lineitems in a string as (38,45,88,99,85). Now either I need to use map functoids/inline xslt's.
    Please help to move further with some samples.
    Regards, Vignesh S

    Hi Vignesh,
    Add a scripting functiod as shown here in the image, in the scripting functiod call "Inline XSLT Call Template". This scripting functiod would have two parameters.
    1- Name link from the soruce schema. 2- Output something like "38,45,88,99,85" (without quotes). This could be link from the functiod which pulls the data from db. In my case, I just used a string fuctiod which would output
    38,45,88,99,85 to the scripting functiod.
    In the scripting fuctiod, use the below XSLT template. I have commented the XSLT to detail how it works:
    <xsl:template name="ConstructDetailNodeTemplate">
    <xsl:param name="name" />
    <xsl:param name="value" />
    <xsl:variable name="NameFromSoruce" select="$name"></xsl:variable>
    <!-- call splitter template which accepts the "," separated string -->
    <xsl:call-template name="StringSplit">
    <xsl:with-param name="nam" select="$NameFromSoruce" />
    <xsl:with-param name="val" select="$value" />
    </xsl:call-template>
    </xsl:template>
    <xsl:template name="StringSplit">
    <xsl:param name="nam" />
    <xsl:param name="val" />
    <!-- do a check to see if the input string (still) has a "," in it -->
    <xsl:choose>
    <xsl:when test="contains($val, ',')">
    <Detail>
    <Name>
    <xsl:value-of select="$nam"/>
    </Name>
    <!-- pull out the value of the string before the "," delimiter -->
    <LineItems><xsl:value-of select="substring-before($val, ',')" /></LineItems>
    </Detail>
    <!-- recursively call this template and pass in
    value AFTER the "," delimiter -->
    <xsl:call-template name="StringSplit">
    <xsl:with-param name="nam" select="$nam" />
    <xsl:with-param name="val" select="substring-after($val, ',')" />
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <!-- if there is no more delimiter values, print out
    the whole string -->
    <Detail>
    <Name>
    <xsl:value-of select="$nam" />
    </Name>
    <LineItems>
    <xsl:value-of select="$val" />
    </LineItems>
    </Detail>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    The output would look like this as you wanted for the above your input:
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

  • Single items Multiple Transaction

    Hi,
    My Senarios
    Material Number : 100001
    Material Description : Sony 21" LCD TV
    Senarios:
    1 : I am going to buy this material as a Stock
    2:  This Material going to issue FREE OF COST to Custtomer against sales Order
    3:  Same Sony I am going to buy fopr ASSet .
    Please help  me how i will configure Automatic Account Determination for above senario ...

    Hi,
    >  1 : I am going to buy this material as a Stock
    >>> Of course you can buy as stock, create a material code for it & make PO accordingly.
    > 2:  This Material going to issue FREE OF COST to Custtomer against sales Order
    >>>  Make Sales order with free item tick & deliver accordingly.
    > 3:  Same Sony I am going to buy fopr ASSet .
    >>>  Make 1 asset code for Sony & buy with PO with Account assignment "A", similarly also maintain the depreciation accordingly for these Asset.

  • Multiple Price with Single Item

    Dear All,
    I work for Logistics company and they have implemented AR,AP,GL,OM,Purchasing...running smoothly.
    Now,they want to create multiple prices for single item,pls find below scenario ,
    A)     Business Process:
    Generally, customer goods will be split and sent in different trains. Then, for same destination & quantity we will get different amount.
    Note: Calculation done by Railways based on variable factors (like penalty charges for over weight or under weight).
    So everyday, every bill have different amount for same quantity and destination will be computed and given by railways.
    B) Current Process in Oracle:
    End user will select item and enter manually.
    C) Client Requirement:
    Needs to create single item with multiple prices
    Note: Item code and price list should be constant due to business requirement.
    I just wondering,how financial company manage price fluactutations...
    Kindly help me out to sort this issue pls.
    Regards,
    Kumar

    Hi Anil/Amit,
    O.K. accept that VK11 is for sales. But when I enter multiple records in VK11 it is getting saved. But same thing is not happening for MEK1. Is there any configuration need to change for the MEk1?
    Please let me know is there any other way or tcode to save the condition with multiple values for single line items.
    Regards,
    Praveen,

  • Insert multiple records into a table(Oracle 9i) from a single PHP statement

    How can I insert multiple records into a table(Oracle 9i) from a single PHP statement?
    From what all I've found, the statement below would work if I were using MySQL:
         insert into scen
         (indx,share,expire,pitch,curve,surface,call)
         values
         (81202, 28, 171, .27, 0, 0, 'C' ),
         (81204, 28, 501, .25, 0, 0, 'C' ),
         (81203, 17, 35, .222, 0, 0, 'C' ),
         (81202, 28, 171, .27, 2, 0, 'C' ),
         (81204, 28, 501, .20, 0, 1, 'C' ),
         (81203, 28, 135, .22, 1, 0, 'C' )
    The amount of records varies into the multiple-dozens. My aim is to utilize the power of Oracle while avoiding the i/o of dozens of single-record inserts.
    Thank you,
    Will

    You could look at the INSERT ALL statement found in the documentation here:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_913a.htm#2133161
    My personal opinion is that you probably won't see any benefit because under the hood I think Oracle will still be doing single row inserts. I could be wrong though.
    The only way to confirm was if you did a test of multiple inserts vs an INSERT ALL, that is if the INSERT ALL met your requirements.
    HTH.

  • Multiple records for a single transaction - Issue in LSMW

    Hi,
    i'm facing a issue in LSMW
    i have the data coming up in the flat file. the data which constitutes the single transaction consists of  data from multiple records from the flat file..
    suppose we have 10 records in the flat file... and all the 10 records related to ony  2 transactions i.e say 6 records to first transaction and next 4 records to next transaction.
    we have a direct input method to handle this data like field1 for first record, field2 for 2nd record and so on...
    while uploading, we will get all the records one by one into our source structure. My question is can we handle this scenario in lsmw? if yes, pls suggest
    Thanks in advance
    Shekhar

    Hi Kris,
    this is regarding the asset creation via AS01..
    we are getting the flat file in that way. Lets assume like this:
    suppose for one transaction we may need to fill 5 depreciation keys and for another option only 3 dep. keys we need to fill.
    then in the flat file, we can get like 5 records for first transaction i.e asset and 3 records for 2nd transaction
    Can we handle this via lsmw
    Regards
    shekhar

  • Concatenate multiple records into one single record

    Hello everyone,
    Can anyone guide me how to merge multiple records into one single record
    like......... I am getting the data in the file like
    aaaaa/bbbbbbb/ccccccccccc/dddddddddddd/eee
    ffffff/gggg/hhhhhhhhhhhhhh
    /123/4567/55555/99999999/kaoabfa/eee
    fffff/kkkkkkkk/llllllllllllllllllllllll
    when i use gui_upload I am getting the data into the internal table in the above format.
    My main intension is to split the record at / to multiple lines and dowload it into another file.
    What i am planning to do is... if the line does not start with / then i want to concatenate the multiple lines into single line and then split it into multiple records. Can anyone guide me how to achieve this.

    Yes, it should work.
    In my example
    Loop at itab.
    concatenate i_text itab into i_text.
    endloop.
    You change that loop for the loop of your internal table with the file records
    So if you have this three records
    'aaaa/bbb/ccc'
    '/dddd/efg'
    'hijk/lmn'
    i_text will look like this at the end
    'aaaa/bbb/ccc/dddd/efghijk/lmn'
    then in this part of the code
    split i_text at '/' into table itab2.
    itab2 will have the records looking like this
    aaaa
    bbb
    ccc
    dddd
    efghijk
    lmn'

  • Mapping is inserting multiple records from a single source to Dimension.

    Hi All,
    I am very new to OWB. Please help me out. I've created Dimension with the help of the wizard and then a mapping which consist of single source and single dimension. The mapping is populating nearly 500 times of the actual records. Following are some details to give you a better understanding of mapping: I created a dimension with four levels and two hierarchy. Levels are L1, L2, L3 and L4 and hierarchies are H1-> L1, L2 and L4
    and H2-> L3 and L4. L4 is lowest level of hierarchy. L1 and L3 are parent levels in the respective hierarchies. I assigned an attribute of each level as Business identifier that means business identifier attribute is different in each level. In mapping I mapped the parent natural key(Key for parent Level in a hierarchy) as the value which has been mapped for parent level. The result is coming 500 times of the record that exist in source table. I've tried even single common business identifier for each level but again the result is 5 times of the records. Please let me know the solution.
    Thanks is advance.
    Amit

    Hi ,
    You may not be having multiple records in your dimension.
    To understand better the records insertion, try a snow flake version of the dimension and see how the records are inserted as per the levels in the respective tables.
    Thanks

  • MessageTransformBean - SimplePlain2XML - Multiple records on a single line

    Hi,
    I am trying to convert multiple record from a single line to multipe rows in an XML message with the MessageTransformBean.
    If the record look like this it's working:
    RECORD1textETC
    RECORD2textETC
    But the incoming message are all on a single line:
    RECORD1textETCRECORD2textETC
    Is there a way to add a linefeed to my incoming message after X characters, or to tell the adapter to split by length instead of spliting on the end of line?
    Thanks,
    Martin

    I had to code a custom Module Adapter to do it.
    Here's the main part of the module adapter EOLConvertBean...
    Message msg = (Message) inputModuleData.getPrincipalData();
    XMLPayload xmlpayload = msg.getDocument();
    byte[] content = xmlpayload.getContent();
    byte crlf = 0x0A; // end of line char
    int current = 0;  // current bytes read     
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    int lines = content.length / recordLen; // record len = insert EOL after X recordLen
    // TODO change for do while for 1x line record
    for (int i = 0; i <= lines; i++) {
         baos.write(content, current, recordLen);
         baos.write(crlf);
         current += recordLen;
    xmlpayload.setContent(baos.toByteArray());
    inputModuleData.setPrincipalData(msg);
    Edited by: Martin Lavoie Rousseau on Oct 6, 2010 9:08 PM

  • Get MUTLIPLE output files for SINGLE input file with multiple records

    Hi ,
    I have source xml file  which has multiple records in it and  I want to get multiple seperate  flat files for it.
    this is my source structure
    <root>
    <Header1 fld1=1234 fld2="name1" fld3='SAP1"
    fld4='000" fld5=0 fld6="sdn1"></header>...............no line items here
    <Header2 fld1=123 fld2="name" fld3='SAP"
    fld4='00" fld5=0 fld6="sdn" ><line fld7=value1 fld8=value2 fld9=value3 /line><line fld7=value4 fld8=value5 fld9=value6 /line></header>.....two line items here
    <Header3 fld1=123 fld2="name" fld3='SAP"
    fld4='00" fld5=0 fld6="sdn" ><line fld7=value7 fld8=value8 fld9=value9 /line></header>......one line item here
    Header4 fld1=12345 fld2="name2" fld3='SAP2"
    fld4='0006" fld5=01 fld6="sdn2"</header>.......no line items here
    </root>
    I am trying to get flat files as many time the <b>header</b> values occur that many target files should appear in the target.
    like
    file1:
    1234name1SAP10000~sdn1
    file2:
    123nameSAp000~sdn
    value1value2valu3
    valu4value5value6
    file3:
    123namesap000~sdn
    value7valu8value9
    file4:
    12345name2SAP2000601~SDN2
    here I have 4 headers so i need to get 4 output files ,similarly for 'n' headers I need to get 'n'  output flat files. the above mentioned source xml file is just one file,like that I might get somany sourc xml files which has similar structure in it.
    and also it is important to get the line items,if exists to the header, for the corresponding headers.
    how can I achieve this?do I need to use BPM or any mappings other than Graphical? 
    please suggest me.
    thank you.
    Babu
    sorry,output file structure changed
            Babu

    Babu,
    See the Mapping and the logic.
    Make sure your target message occurrence:http://www.flickr.com/photo_zoom.gne?id=1412748793&size=o
    Check out for source and target structure
    http://www.flickr.com/photo_zoom.gne?id=1412748803&size=o
    http://www.flickr.com/photo_zoom.gne?id=1412748809&size=o
    http://www.flickr.com/photo_zoom.gne?id=1412748815&size=o
    http://www.flickr.com/photo_zoom.gne?id=1412748825&size=o
    Results:http://www.flickr.com/photo_zoom.gne?id=1412748799&size=o
    Note:
    While creating Interface determination choose it as Enhanced/Extended
    The Receiver Content conversion - For field separator and line separator give 'nl' , coz we concatenated all of them using ~ in mapping.
    If you find any discrepancy in the above logic , please let me know.
    raj.

  • Delete single item form multiple populated list

    Hi,
    please help me to find a solution!!
    I have 2 listboxes. listbox Description is populated by XML.
    When user selects multiple items at the same time from the Description listbox, they are populated in the listbox and are removed from Description listbox. that works fine.
    But the issue is if the user accidently selects one of the multiple selected items at the same time wrong and want to delete a single items, this doesnt work anymore.
    I can not even click on each single item.
    I try to find a way how to enable user to populate multiple items at the same time and be able to delete each single item, which then should return back to the Description listbox.
    I would really appreciate if you could help me on this!!!
    This is my sample: https://acrobat.com/#d=l0mujTOFduSJFele5R5i3g
    Thanks,
    Diana

    Would you not just reverse your code ..instead of populating listbox from the selections in description and deleting the items out of description, remove the items from listbox and update description then remove the items from listbox.
    Or am I missing something?
    Paul

  • Single item shipment using multiple trucks

    Hi Friends,
    I have a typical requirement where my client want to ship one of their product ( A Huge item, which they dismantle it for shipment) using multiple trucks. How we can handle this situation using SAP LES module? They can hire multiple trucks to ship this item by road to the destination using multiple service providers. So the service cost also need to be settled for all these service providers.  Will SAP allow to split a single item through multiple shipments? I really appreciate a solution for this.
    Thanks

    There are a couple of recommended methods for using more than one iPod on a single computer. Method one is to have individual Mac or Windows user accounts which by definition would give you completely separate libraries. Each account has it's own iTunes folder, Library and iTunes Music folder and you load it with CDs etc just as you did with your original one. Each iPod can be set to update however the owner chooses, sync all, manual or sync specific playlists.
    Method two is to set your preferences so that either one or all iPods get updated with only certain playlists within one library. Have a look at this article and see what you think and go for whichever you feel suits your needs best: How To Use Multiple iPods with One Computer
    Another option when using a single library is to set the iPods to manual update: Managing content manually on iPod
    Choosing the update option "automatically update selected playlists only" (called Sync Music - Selected playlists in iTunes 7) allows you to create a playlist specifically for each iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used by the other iPods. Make your playlist a Smart playlist and limit the size to just below the advertised capacity of your iPod ( for example, around 3700MB for a 4GB or 1800MB for a 2GB Mini or Nano). You can read more about playlists at these links:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes

  • How to display multiple records in a block text items

    Can fetching be done to dispplay multiple records in the text items base on the query.

    put the code in post-query trigger

  • How to insert multiple records in a single query

    Dear all,
    Can you please tell
    how to insert multiple records in a single query ??

    INSERT INTO table_name (column_1, column_2) VALUES ('value_A', 'value_B')OR
    INSERT INTO table_name
    (column_1, column_2)
    SELECT 'value_A', 'value_B' FROM DUAL
    UNION ALL
    SELECT 'value_C', 'value_D' FROM DUAL
    ;Edited by: Benton on Nov 9, 2010 1:59 PM

Maybe you are looking for

  • Is this a fare assessment of JSF (RI 1.1)?

    After playing with JSF for a week, I need to tell my manager what I think of JSF. If anyone takes issue with anything I've written below, I'd be interested to hear from you. David JSF generates HTML its own way. The commonly adopted process of produc

  • T400 does not turn on after bios update.

    Hi there people, Sorry if this has been posted before, Basically done a bios update and now the laptop does not turn on, there is just a blank screen. Can hear fan/processor running but nothing else. Any help will be appreciated. Thank you.

  • Updated to OS4; podcasts UI now has a problem

    After updating my 3GS to OS4 certain podcasts (e.g., those from NPR like CarTalk) exhibit a UI bug. While playing (or fast forwarding) the time display doesn't change - fixed at 0:00, and the scrub bar is totally disabled - can't select and shuttle b

  • Trying to dynamically add TextInput into HGroup, need some help

    Hey all, I am trying to add a TextInput instance into an HGroup instance all in actionscript, but I am getting an error (implicit coersion, unrelated type to IVisualElement). Doesn't the TextInput class implement the IVisualElement Interface?? Here i

  • How can I edit original e-mails from friends?

    I've been able to do this w/Firefox 3.6.2 on my previous computer & present one ever since my first install. I would open e-mail, click on it & was able to delete or add text. Two days ago I was using backspace to remove text & decided to highlight a