PrintDataGrid: Last line per record disappears

Hi,
printing in Flex seems to be some kind of rocket science!
Unfortunately, I haven't found any solution to this specfic
problem:
I have a printdatagrid with variable row height. It spans
over multiple pages, and I'm using the documentation's code to
print. That's all fine, however, if the text in a row contains more
than one line, then the last line disappears in that row. This not
only happens at the last row of a page, but in every row!
Has anyone experienced this and found a solution for this
problem?
Thanks a lot,
Roland

Oh, just in case somebody has the same problem: It was
actually a lot easier to solve than I first thought.
All you have to do is use a function that adds two newline
characters, for example:
// in mx:Script - block:
private function formatDescription(item:Object,
column:DataGridColumn):String
return item.text + "\n\n";
<mx:PrintDataGrid id="dg1" width="90%"
dataProvider="{_rules}" variableRowHeight="true" fontSize="6"
wordWrap="true" sizeToPage="true" >
<mx:columns>
<mx:DataGridColumn headerText="Rule" dataField="rule"
width="90"/>
<mx:DataGridColumn headerText="Description"
dataField="text" labelFunction="formatDescription"/>
</mx:columns>
</mx:PrintDataGrid>
That works quite well for me.
Roland

Similar Messages

  • Tabular report, how to split row into two lines per record

    Hi, I have a tabular report based on a collection. The collection has 15 fields and appears horizontally across the screen. I would like to have a break after the 5th column so that each row is on two lines instead of one. Is this possible...any information would be helpful.
    a shortened query is: and I would like the break to be between c028 and c029.
    thanks
    Karen
    Select apex_item.select_list_from_lov_xl
    (28,
    c028,
    'GEARS',
    'style="width:200px;background-color:#FBEC5D; "'
    || 'onchange="f_set_casc_gear(this,f29_'
    || LPAD (seq_id, 4, '0')
    || ')"',
    'YES',
    '0',
    '- Select Gear -',
    'f28_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO'
    ) gear_code,
    apex_item.select_list_from_query(29,
    c029,
    'select lma_desc e, lma_code r
    from lobster_mgmt_area
    where 1 in (select 1 from gears where gear_code = '
    ||nvl(c028,0)
    ||' AND (type_code in (''005'') and category_code in (''160'')) OR ('
    ||nvl(c028,0)
    ||' in (''130'')) ) order by lma_code ',
    'style="width:75px"',
    'YES',
    '0',
    '- Select -',
    'f29_' || LPAD (seq_id, 4, '0'),
    NULL,
    'NO') lma_code,
    apex_item.text
    (30,
    c030,
    6,
    NULL,
    'style="width:50px;background-color:#FBEC5D;"'
    ) gear_quantity
    from collections where collection_name = 'EFFORT_C'

    Hello Karen,
    >> and each field needs to be updateble ( concatenating two fields does not allow for that).
    Did you notice the ‘&lt;br />’ component, as part of the columns concatenations?
    The following example is using the same principle – every two updatable column, from the employees table, are sharing the same tabular form row - http://htmldb.oracle.com/pls/otn/f?p=22710:420 . The report query is:
    select apex_item.text(10,first_name)||'<br />'||apex_item.text(11,last_name) col01,
    apex_item.text(12,phone_number)||'<br />'||apex_item.text(13,email) col02,
    apex_item.text(14,salary)||'<br />'||apex_item.text(15,commission) col03
    from employeesThe same principle is being used to define custom headings.
    Hope this time it will be more clear.
    Regards,
    Arie.

  • How to upload CSV file w/o ,, for the last line

    Hi Experts,
    As part of one interface uploading the csv file (4coulmns) manually using the TCODE: CSCA_FILE_COPY.
    After uploading when i see in the AL11 as it is csv file it is filling the , in each space.
    But my issue while running the interface (because of logic in it) checking for the hash total in the last line where (record count, hash total) only 2 items should come but because of manual upload adding the (record count, hash total, , ,) another two spaces.
    Where program not moving further becasue the it is alway comparing the amounts (1000.00 not matching with 1000.00, , ) it is not processing. In production files directly load in to unix server so no issues and i can't ask to change the program code...because iam not following the process. As part of testing i've to do manually only.
    Please suggest the workaround for this.
    Is it possible to change the contents directly in AL11 directly....then HOW ?
    or
    How to create a csv file w/o , , in the last line (may be it is not possible) ?
    Thanks for your replies in advance.
    Regards
    VVR

    I don't think you can edit from AL11, nor creating a CSV without those commas at the end because are created to state fields with empty value.
    You have 6 columns filled with values but for the last line you only fill the first four. It is expected to appear , , for the last 2 columns on the last line.
    I can only suggest keep doing it manually before uploading the CSV file... or... you are saying you can't change the program.
    How about upload all CSV files... then writing another program to get those files from AL11 and delete the spare commas at the end line?
    Cheers,
    Andres.

  • Reading Last line(record) from a txt file ina java

    Hi,
    I want to retrive the last line from a txt file.Can anybody help me??
    Thanx in advance

    In order to read the last line you must read all the lines before it. To read lines you can use the BufferedReader and LineNumberReader classes.
    Here's an example of how to read lines of text from a file:
    http://javaalmanac.com/egs/java.io/ReadLinesFromFile.html

  • Augmented records disappear

    I am trying to integrate Lion Server Open Directory with Active Directory.
    I can create augmented records in /LDAPv3/127.0.0.1/Augments, either directly using dscl or through Server.app's function to import users from another directory.
    However, after I reboot the server, all augmented records disappear.
    I've been going after this simple goal for many hours, without success. I've gone so far as to do a clean reinstall of Lion Server. But nothing I have been able to do will change the fact that augment records do not persist through reboots.
    I wonder if this is a bug in my procedure, or in Lion Server. Can anyone confirm that persistent augmented records can be created in Lion Server?

    I too have experienced disappearing augments, with 10.7.2. On my last attempt however, I made a brand new NetInstall of 10.7.2 (as outlined here) and the augments seemed to persist.
    However, augments, although still supported by Apple, seem to work very differently in Lion.
    The scenario we have is that we need to log in with AD credentials, and if you're on a Mac, the home folder is mounted from a Lion Server via AFP (we leave the original AD home folder in their profile in Windows untouched, so they can happily go back to Windows) Essentially two home folders.
    This was all fine under 10.6 but the "merge" that used to happen on Snow Leopard (i.e. seeing your augments from a dscl search on a boound client) doesn't work as intended, at least not yet.
    From Apple's official documentation you can create an augment on a server and connect to that server with credentials on the "master" server. This has to be done now in order to become a member server in an AD domain. Simple example would be... I have a Windows AD user called "bobjones" if I try to access an AFP share on a Lion server using bobjones, it doesn't work, even if the server is bound to AD. You have to create the augment first, then you can access the AFP share.
    What I was expecting from augments is a way to "bolt on" various attributes, which would allow me to access my Lion server with AD credentials, this is essentially what Apple say in the on-line guides. First thing I want to do is "bolt on" a Mac home folder, like we did in 10.6 server... that worked great.
    Anyway sorry to hijack your thread slightly, but I seemed to have solved the disappearing augments problem by doing a clean install, but I wish to expand upon this to create proper augments which would be great when integrating your Macs into large Windows systems...

  • How to get the last time a record was modified or created ?

    Is there a way (hidden system fields for example, system view, other ?) to get the last time a record of a table was modified or the date it was created.
    Thanks for any help.
    Stiphane CAMPION

    blarman74 wrote:
    I know I could do this with a trigger, but I was wondering if there is a data dictionary view I can query to find the date/time a table was last updated. What I have is a table that is constantly getting hammered with new data being uploaded from a third party. We need to keep close tabs to verify that this datafeed is constantly running and bringing in new data. Because the data that comes in comes from multiple timezones and there are hundreds of lines, our attempts at monitoring by just looking at the data leave something to be desired.
    Any ideas?refer this links
    How to find Last modified/updated time of a particular table
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1590655700346557237
    Thanks

  • How to select LAST line from a SAP table?

    Hi developers,
    I need to select the last line from a SAP table, NOT from an internal table.
    Something like
    SELECT SINGLE LAST FROM pa00169..
    any help is more than welcome.

    Javier,
    Based on this statement from you:
    "i created a Z table, its a config table that stores some bussines rules, and an id counter, so in order to update that counter i need the last line of the ztable."
    I have one additional solution which is the "text box" approach IF the 'id counter' mentioned above is a numeric data type.
    If so, use an SQL function to get the highest value of ID_COUNTER.
    Then simply add one to it to produce a new, unique, higher-order primary key.
    See below:
    data: l_id_counter like ztable-id_counter.
    data: new_id_counter like ztable-id_counter.
    select max( ID_COUNTER ) from ztable into l_id_counter.
    new_id_counter = l_i_counter + 1.
    Now new_id_counter will be the unique, primary key IF this is the only field in ZTABLE's primary key.
    This will also GUARANTEE that your new record is built correctly.

  • How can I search the last line in an internal table?

    How can I search the last line in an internal table?
    With a describe?? If it is , how can I do that?
    Thanks!!

    Hi shilpa,
    it seems to be you are NEW to SDN. welcome. if you want to get solutions to your Questions, you have to post a NEW thread.dont use the existing thread to post your question.
    any way i am giving you the solution for your question
    LOOP AT ITAB WHERE F1 = <SOME VALUE>
                       F2 = <SOME VALUE>.
    ENDLOOP.
    IF SY-SUBRC = 0.
      ITAB WILL HAVE THE LAST RECORD which satisfying the given criteria in WHERE clause of LOOP.
      write itab <--this ITAB will have the last record.
    ENDIF.
    regards,
    Srikanth.
    Message was edited by: Srikanth Kidambi

  • How to only read the last line in the text file by using BufferedReader ?

    Dear all,
    Hello, I am new to Java. Do anybody know how to read the last line (this is the last record) in the text file.The method I am now using is reading from the first line until I reach the last line in the text file. Thank you!!
    BufferedReader br = new BufferedReader(new FileReader("c:\\sdk1.4.1\\bin\\dbExport.txt"));
    DataInputStream in = new DataInputStream(new FileInputStream("c:\\sdk1.4.1\\bin\\dbExport.txt"));
    String input;
    String firstinput;
    String secondinput;
    int count=90;
    int year=1955;
    while ((input = br.readLine()) != null) {
    firstinput = input.substring(0, 10);
    secondinput = input.substring(10);
    String insertStore1 = ("INSERT INTO AUTHORS " +
    "VALUES ('" + count + "', '" + firstinput + "', '" + secondinput + "', 1955)");
    System.out.println(insertStore1);
    int result = stmt.executeUpdate(insertStore1);

    I suppose you could use a java.io.RandomAccessFile.

  • Databse of 1888 Byte Per Record with 259 Fixed Fields Stumped CR?!?

    My Database of  15 million records/rows at 1888 Byte Per Record with 259 Fixed Fields STUMPED CR?!
    Executive Summary :
    I have lots of data. There are 15 million of records in some of my database files. But I need to drill into the data and get counts for each field.
    I need to know how many times each data field (row) is populated in a database file. For example,  how many of my records have last name? how many have first name? date of birth? etc.  I need a simple report made using SAP "Crystal Reports 2011" Workstation type edition that SUMS each data  row into a single column output like csv.
    My database sizes can range from 1,000 to 18 million records that are in fixed field asci format with 1888 bytes and 256 rows per record!  The report  needs to SUM each data field or, in the case of a data field with a minimum of twelve tables, SUM each value of a table.
    My contracted CR programmer is an expert although she was new to data files this humongous. Can anyone here help us get CR to work on my data? Here was her conclusion, Crystal Reports Fail:
    My file is 14.1 gb  as well. However, when run through Crystal Reports, it
    only returns 2,274,876 records. Therefore, I am going to assume that there
    is a Record Limit for Text files of this. I searched through all the
    registry settings and there is nothing that appears to be limiting it. I
    went online for a while to see if there was any information on it, and just
    like when I used to work there, there was nothing concrete. Business Objects
    does not physically test this large of data retrieval, therefore they don't
    know the exact record limits.
    I'm not sure what to suggest, but I don't think Crystal Reports is going to
    work for you and I wouldn't have known that from the beginning without
    testing your data. I'm 99% sure there is a refund policy on the software, so
    you shouldn't have any issues returning it.
    Since I only specialize in Crystal Reports, I'm not sure what other software
    can handle this amount of data. Possibly Cognos, but you may want to find
    out from them or do some research.
    If your data were in a database that can run stored procedures (like SQL
    Server or Oracle) then you could write SQL to only return the counts. Then
    when Crystal connected to the stored procedure, it should work, but I can't
    say for sure without testing it. And I don't have SQL Server or Oracle
    installed on my machine. I believe MYSQL (the free version) has a limit to
    the number of records it can hold and I'm sure 8 million would be over the
    limit. Also, I'm not sure if it supports stored procedures. I have used it
    once before and found it extremely cumbersome and limited. I think SQL
    Server and Oracle are quite pricey, so I don't think that this will even be
    an option for you.

    Hi Shawn,
    I actually contacted the same person you did also. Summer was a Report Designer Resource here and knows her stuff and the Report Designer as much as our Developer who wrote it do.
    As I suggested in my first reply is to get all that data into a real database, one that can run Stored Procedures to do all the crunching unfortunately is the only way I can see this ever working.
    Windows 7 and 8 CPU's doesn't help, 64 bit may but the problem is CR Designer is a 32 bit application so it can't take advantage of the 64 bit memory addressing space.
    What you could so is post your question to the forum:
    [Business Decision Making with BI|Marketing Library;
    This is a forum for managers or anyone who wants to have a non-technical discussion about making informed decisions with analytics tools. Ask questions and share your experiences on how to effectively utilize data to address real business problems. Experts from inside and outside SAP will be monitoring these conversations and offering their knowledge along with the broader community.
    Someone in there may have another SAP product that might be able to load your flat file into a data tool that CR can report off of.
    I still think a copy of MS SQL 2008 Express is your best and likely cheapest solution and then you can simply import the data into it which it has an Import Wizard that makes it relatively easy to do... Although you may have to break your file into pieces for it to be able to process also.
    You need to be flexible on that data source, I doubt you'll find anything that can report off of that huge of text file.
    Good luck
    Don

  • In the report getiing two lines per each service order

    Hi Experts,
    when I drill down callouts on back reporting level by Component code, Reason code, and action code. I see two lines per service order. I have two records in MP for the same service order. Is there any possibility that I get only one record in report without changing the data at multi provider level?
    Example:
    Report Output
    S. no     Equipment     Calender date  Order type       Service order        Action code             Order count
    1     30000074     18.02.2009              ysm1           62704142            004/#                      1
                                           004/#                      0
    2     30000275     03.08.2009              ysm3      9AHK40218030         004/#                      0
                                          004/20                      1
    3     30042305     02.07.2009              ysm4      9AAU70443928        002/70                     0
                                           002/80                     1
    Could you please see the below scenarios and suggest.
    Scenario 1
    For the S. no-1) for the action code 004/#  and the order count 1 should displayed in the report and action code 004/#  and order count 0 should not be displayed in the report.
    Scenario 2
    For the S. no-2) for the action code 004/20  and the order count 1 should displayed in the report and action code 004/#  and order count 0 should not be displayed in the report.
    Scenario 3
    For the S. no-3) for the action code 002/70  and the order count 0 should displayed in the report and action code 004/80  and order count 1 also should be displayed in the report.
    Regards,
    Sita

    Hello,
    THis can be achieved with foll two ammendments:
    1) Restrict Action Code in the filter to exclude # values.
    2) Create condition on Order Count to display where it is GT 0.
    Regards,
    Shashank

  • B1 and SQL Server 2005 performance with 3.000.000 invoice-lines per year

    I would like to know if SAP Business One with SQL Server 2005 could work with the following information:
    - 40.000 Business Partners
    - 40.000 Invoices per month
    - Aprox. 3.000.000 invoice-lines per year
    Of course it will be necessary to change some forms in B1.
    What do you think?
    Do you know any B1 customer working with that amout of data?

    > Hi,
    >
    > I think a good SQL2005 tuning (done by a good DBA)
    > will improve performance. Number of records like that
    > shouldn't hurt that kind of DB engine...
    Hi,
    I'm sure that MSSQL2005 can handle the amount of records & transactions in question. Even MSSQL 2000 can do it. However, any DB engine can be put on its knees with the combination of 2-tier application architecture and badly designed queries. B1 is a case in point. I wouldn't go into such a project without decent preliminary load testing and explicit commitment for support from SAP B1 dev team.
    I have heard from implementation projects where B1 simply couldn't handle the amount of data. I've also participated in some presales cases for B1 where we decided not to take a project because we saw that B1 couldn't handle the amount of data (while the other features of B1 would have been more than enough for the customer). The one you're currently looking at seems like one of those.
    Henry

  • Select last line item from VBAP

    Dear SAP experts,
    This might sound very silly question but I am new to SAP world.
    is there a simple select statement to select only higest line item.
    Say for example in VBAP, I have 9 line items.
    then my select statement should find the last line item. ie. 9th item.
    Actually, I have a situation where a custom table has 2 key fields and I want to select the only 1 line with higest number in 2nr column. Thank you.
    Anitha.

    Hi,
    types: BEGIN OF ls_vbap,
             vbeln TYPE vbap-vbeln,
             posnr TYPE vbap-posnr,
           END OF ls_vbap.
    DATA : t_vbap TYPE STANDARD TABLE OF vbap WITH HEADER LINE,
           wa_vbap type ls_vbap.
    data: lv_line type int4.
    SELECT vbeln posnr FROM kna1 INTO TABLE t_vbap.
    *****If you just need the last record then write the code  as shown below:
    DESCRIBE TABLE t_vbap LINES lv_line.
    READ TABLE t_vbap INTO wa_vbap INDEX lv_line.
    if sy-subrc = 0.
    write:/ wa_vbap-vbeln.
    endif.
    If you the need the last record after sorting then use the below code:
    SORT t_vbap by vbeln posnr DESCENDING.
    READ TABLE t_vbap into wa_vbap index 1.
    if sy-subrc = 0.
    write:/ wa_vbap-vbeln.
    endif.

  • How to avoid last line(ie repeating last line)

    I wrote a procedure for writing DB table to flat file.
    but the last line is repeating ie printing twice.
         OPEN curr_v FOR str_all_cols_sel;          
    LOOP FETCH curr_v INTO l_columnValue;
              utl_file.put_line(l_output,l_columnValue);
    EXIT WHEN curr_v%NOTFOUND;
    END LOOP; -- curr_v
    Any help?

    If you reached the last record, it gets printed. Then it fetches once more, but no data is found. However you first print and then exit. That's why the last line gets printed twice.
    The code should be:
    OPEN curr_v FOR str_all_cols_sel;
    LOOP
    FETCH curr_v INTO l_columnValue;
    EXIT WHEN curr_v%NOTFOUND;
    utl_file.put_line(l_output,l_columnValue);
    END LOOP; -- curr_v
    Regards,
    Rob.

  • Creating email attachment with 255 char per record

    Hi,
    We want to generate an email with excel attachment through ABAP program. To do the same, we are trying to use FM 'SO_DOCUMENT_SEND_API1'.
    It looks like it only allows 255 characters per record however we want include upto 700 chracters per record. Does anyone know a way out to overcome this problem?
    Note - We do not want to wrap the text to next line.
    Thank you

    Hi:
    I would advice to make the copy of this function module SO_DOCUMENT_SEND_API1 and change the  packing_list-doc_size = '700'..
    Hopefully it would be helpful to solve the problem.
    Regards
    Shashi

Maybe you are looking for

  • How to implement the spell check in oracle forms 10g or 6i...

    How to implement the spell check in oracle forms. Is there any different method is there. Please help me.... Praveen.K

  • HT1535 I have a problem syncing my song into my ipad mini.

    Hi, I am facing a problem to sync my song into my ipad. after i click the sync button it process but doesn't copy my song into my ipad. i did the same on my ipod touch ,it's work. i wondering why it's failed on my ipad.

  • Comunication between SAP and SWIFTNET

    Hi, I need to implement an communication architecture between SAP and swiftnet. I have some doubts about this integration: It is possible to implement the SAP Integration Package for SWIFT without BCM? The process thought is generate SWIFT files in S

  • PI upgrade questionnaire required

    Hi all, we are moving from XI 3.0 to PI 7.1. I need a questionnaire to ask the client.for example 1. How many interfaces are inpresent 2.What are the legacy systems involved etc... anyone assist me plz... Edited by: PSRK on Feb 15, 2009 4:00 PM

  • How do I put photos in the cloud?

    I was wondering how to upload my photos to the cloud