Cfdocument w/columns

I have a requirement to generate pdfs that have two columns.
I have done so using both div tags (good html) and tables (bad
html) and both of the options have the same problem. Both times i
have simply generated a page, i'm not currently forcing pagebreaks,
it seemed to me like it oughtn't be necessary. Yet.
Sometimes when you reach the bottom of the page and the
cfdocument has to break the page, it chooses to do so in the middle
of a line in one column or another. (the lines are not currently
alingned in the two columns as i've no clue how i'd do that.
Is there a trick or a setting or an element that forces
cfdocument to look very closely at where it's breaking or do i need
to find some way to align the text in the columns or force
pagebreaks?
Thanks for any help.
If you need to see a sample, just email me and ill send you
one.

Hi miki,
The code below should give you an example of how to align data within a
column. The code below creates an area 600px wide with two columns
set at 50% each and column content aligned to the left side.
<div style="clear: both; padding: 15px 0px 0px 0px; width: 600px">
    <!--- Left Column  --->
    <div style="clear: both; float: left; width: 50%" align="left">
        Left content here
    </div>
    <!--- Right Column --->
    <div style="float: left; width: 50%" align="left">
        Right content here
    </div>
</div>
As for the page break / content splitting, take a look at the post below.
Perhaps that will address the situation you are having with the splitting
up of data.
http://forums.adobe.com/thread/506421?tstart=0
Leonard B

Similar Messages

  • Cfdocument and page column heading

    I am trying to repeat table column headings after the page
    heading for each page of a tablular "report". I am using CF8
    cfdocument type=pdf and cfdocumentitem tags without any success.
    Everything is fine with the first page, but I have not been able to
    figure a way to get column headings on subsequent pages.
    Does anyone have an idea?

    Hi Westside
    I was having issues with page breaks too. The solution I came
    up with
    was the following:
    <cfif #query.recordcount# gte ??>
    <cfdocumentitem type="pagebreak" />
    <table width="0" border="0" cellpadding="0"
    cellspacing="0">
    <tbody>
    <cfoutput query="query" startrow="??" maxrows="??">
    <tr>
    <td>#info_here#</td>
    <td>#info_here#</td>
    </tr>
    </cfoutput>
    </tbody>
    </table>
    </cfif>
    For me this handled my situation, since I have a pretty good
    idea of how
    many records will be generated for the reports and how many
    will fit nicely
    on a given page. So I simply add the above code for how many
    pages I
    believe will handle the report, adjust the startrow, maxrows
    and cfif
    recordcount to the desire figures and the report displays as
    I intend it to.
    Now if you do not know the actual record count, guess that
    could make it
    difficult on how many of these to setup for a given report.
    Hope this gives you an insight on how to address your
    situation.
    Leonard B

  • Does anyone have a report using cfdocument that produces a ledger type report with column headings?

    I need to see some sample source code of a report with column headings and detail data.  I can't get my column titles in the header to line up with the detail no matter what I do.  Can anyone spare me a good sample?
    I have tried to use tables to specify both col headings and detail, but no chance to get them to line up.  There has to be a way.  I can't use the report builder because I need more control of when page breaks print, what data is on each line, etc.  Hopefully some kind soul out there has a good sample.
    Thanks!
    Dave

    Your MBP is actually a mid-2010, not a 2008. That's what the 6,2 model indicates.There's an issue with the graphics module on that machine. There was a program in place to replace the motherboard within 3 years of purchase, but you're probably outside of that. Some folks have supposedly gotten theirs changed outside of that period, so you can try.
    http://support.apple.com/kb/TS4088?viewlocale=en_US&locale=en_US
    What you can do to use it is download gfxstatus from http:gfx.io and force the graphics to Intel. That would affect your work with Final Cut, but at least you might be able to use the machine.

  • Problem with cfdocument and background colors with table borders

    i am having a great deal of difficulty with cfdocument
    rendering my tables with cells that have background colors. the
    background colors seem to bleed through the table border. a picture
    at 100% magnification can be seen at
    http://www.vitad.com/cfdoc.jpg
    and at 1600% magnification at:
    http://www.vitad.com/cfdoc2.jpg.
    i am attaching sample code of the what generated the pdf in the
    pictures. btw, i am running cfmx 7 with hot fix 2.

    Hi fresher4flex,
    Since you are using the item Renderer for the DataGrid Column try to apply the styles dynamically to the background of your itemRenderer by making using of the rollOver and rollOut events.
    Thanks,
    Bhasker

  • Header columns alignment in PDF using CFDOCUMENTITEM

    Hi All,
    I'm creating a PDF with CFDOCUMENT tags and using CFSAVECONTENT tags. I will do the formatting everything inside the CFSAVECONTENT Variable and create the PDF using the save content variable.
    <cfdocument format="PDF" orientation="landscape">
          <cfoutput>#strContent#</cfoutput>
    </cfdocument>
    The generated pdf will have 5 or 6 pages which will have a table kind of structure.
    My client needs the header columns on each page of the PDF. As of now, I'm having the header column in the first page alone.
    I tried using CFDOCUMENTITEM TYPE="Header"; I'm seeing the columns as some text with no alignment as a row.
    How to align that so that it looks as a header?
    I tried the one below;
    <cfdocument format="PDF" orientation="landscape">
         <cfdocumentitem type="header">
        <html>
         <tr style="font-weight: bold; font-size: 8pt; text-align:left">
                  <td width="10%">Test<br>Number</td>
                <td width="11%">Test B</td>
                <td width="18%" align="Center">Test<br>Factor</td>
                <td width="18%" align="left">Test c</td>
                <td width="4%" align="left">Test Qty</td>
                <td width="4%">%<br>Impact</td>
                <td width="10%"align="center">Test Owner</td>
                <td width="6%">Date</td>
                <td width="17%" align="left">Comments</td>
            </tr>
            </html>
          <cfoutput>#strContent#</cfoutput>
    </cfdocument>
    Thanks in advance for your help!

    Got this header formatting working by using CFSAVECONTENT before the CFDOCUMENT tag.
    Not sure why my style sheets not working inside the CFDOCUMENT tag.

  • cfdocument CFPDF Bug?

    Running CF 8 with the hotfix, the following code does not
    work, although the documentation seems to imply that it should.

    h3echo wrote:
    ... adding a page header.
    The page header i want to add is pretty much a column header
    on each new page the table spans.
    You could do it like this. Ensure that the header table and
    the data table align, by using the same value for
    width. You would also use CSS later for finer positioning
    and styling.
    <cfdocument format="PDF">
    <cfdocumentitem type="header">
    <table width="80%">
    <tr>
    <th>ColHeader01</th>
    <th>ColHeader02</th>
    <th>ColHeader03</th>
    <th>ColHeader04</th>
    </tr>
    </table>
    </cfdocumentitem>
    <table width="80%">
    <cfloop from="1" to="100" index="i">
    <tr>
    <td>data1</td>
    <td>data2</td>
    <td>data3</td>
    <td>data4</td>
    </tr>
    </cfloop>
    </table>
    </cfdocument>

  • Cfdocument repeat header issue

    Using cfdocument, we are trying to have a dynamic title bar
    repeat on each page with rows of data underneath.
    It is currently a row in a table which displays once at the
    very top of the first document. When put in the header however, the
    column shrinks to the size of the title, not the size of the
    largest record in the info below because the two tables are now
    separate.
    We tried padding the title with   based on the
    len(of the largest record). This sort of worked but seems we can't
    find a consistent font that will pad it evenly. Does anyone know of
    either a font that would work despite case etc..or have another
    (maybe more clever) idea of how to get the title to size for the
    largest record in each column?
    As always, thank you for your help!
    Va.

    I just ran into this issue and I think this is the edge of
    this capability and time to use the ReportBuilder again. I've used
    the ReportBuilder successfully many times, I've just learned to use
    cfdocument when I can. I thought about using the "len(of the
    largest record). " approach, but it seems like such a kluge. Anyone
    find a good solution? Would be nice if there was an elegant way to
    do this with cfdocument.

  • CFDocument anoying issue

    Hi all,
    On a project I'm working, we've got troubles with the PDF
    files generated by the CFDocument tag. The problem is that the
    generated PDF is not properly sized, and part of the last column is
    printed alone on the next page. This is quite annoying, and most of
    the reports (generated on the fly) have this problem. In the past
    we've used an empty gif with custom tuned width to add additional
    column in the header, which after some experiments with different
    values for the width fixed the PDF. The problem is that this trick
    is hard to maintain, and because the reports are generated on the
    fly, sometimes the trick just don't work. I'm attaching a code that
    we use to generate the reports, with some hard coded html inside,
    just to demonstrate the issue.
    The data in this code is fictional, and I didn't find way to
    attach a cfm file, so I'm using the Attach Code function. (Sorry
    for the long post)
    (edit , I can't attach the code for now, it gives me a 404
    when the code is inside)

    thats funny mine did that when i first got it , but when i received my new memory and video card everything was normal...so i dont remember if it was the memory or the VC..i just totally forgot about it..funny though i thought it was only me

  • Re: Column is not getting displayed in the BI report

    Hello Gurus,
    I have developed a BI report with more number of parameters.
    Case 1:
    When i run my report , I am able to see data for particular condition but one column doesn't show any thing. All the rows in the column are blank.
    Case 2
    I tried to put the blank column as parameter, The Program works with out displaying that column data.
    I am not sure where it is going wrong. I tried running the code in toad and i am able to see the data.
    I have checked the code, Parameter description, length, Template and data definition.
    Please help.
    Thanks,
    Sreekanth

    Hi ,
    For that column did u changed any alias name in the query...
    check ur template once by loading the xml data...
    check that column form field that matches with the xml tag or not..
    Thanks,
    Ananth

  • Query help: query to return column that represents multiple rows

    I have a table with a name and location column. The same name can occur multiple times with any arbitrary location, i.e. duplicates are allowed.
    I need a query to find all names that occur in both of two separate locations.
    For example,
    bob usa
    bob mexico
    dot mexico
    dot europe
    hal usa
    hal europe
    sal usa
    sal mexico
    The query in question, if given the locations usa and mexico, would return bob and sal.
    Thanks for any help or advice,
    -=beeky

    How about this?
    SELECT  NAME
    FROM    <LOCATIONS_TABLE>
    WHERE   LOCATION IN ('usa','mexico')
    GROUP BY NAME
    HAVING COUNT(DISTINCT LOCATION) >= 2Results:
    SQL> WITH person_locations AS
      2  (
      3          SELECT 'bob' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
      4          SELECT 'bob' AS NAME, 'Mexico' AS LOCATION FROM DUAL UNION ALL
      5          SELECT 'dot' AS NAME, 'Mexico' AS LOCATION FROM DUAL UNION ALL
      6          SELECT 'dot' AS NAME, 'Europe' AS LOCATION FROM DUAL UNION ALL
      7          SELECT 'hal' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
      8          SELECT 'hal' AS NAME, 'Europe' AS LOCATION FROM DUAL UNION ALL
      9          SELECT 'sal' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
    10          SELECT 'sal' AS NAME, 'Mexico' AS LOCATION FROM DUAL
    11  )
    12  SELECT  NAME
    13  FROM    person_locations
    14  WHERE   LOCATION IN ('USA','Mexico')
    15  GROUP BY NAME
    16  HAVING COUNT(DISTINCT LOCATION) >= 2
    17  /
    NAM
    bob
    salHTH!
    Edited by: Centinul on Oct 15, 2009 2:25 PM
    Added sample results.

  • Unable to capture the adf table column sort icons using open script tool

    Hi All,
    I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
    1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
    2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • Implementing BADI MD_ADD_COL_EZPS for MD04 custom column

    Hi there,
    I'm using BADI MD_ADD_COL_EZPS to display 3 new buttons and three new columns in MD04.
    For each line item that is displayed, the custom column is filled, after the button is hit -This works fine.
    My Question is:
    Is there any way to limit the value that is filled into the new column so that it only appears on the FIRST line item/row?
    (At the moment it is repeated all the way down the page - the new value is a material characteristic, so doesn't change, will always be the same for each line)
    I've looked at all the available structures/tables in the FILL_ADD_COLUMNS method of the BADI, and none seem suitable
    to determine the "first" row. (ie. something like the way SY-TABIX or SY-INDEX might be used)
    Any help appreciated.
    Thanks,
    David.

    Hi Shubhendu,
    in the method 'ACTIVATE_ADD_COLUMNS', you can set the flag EZ1_MODE to '1' to make the first column visible always. (it's been a while, but I think setting it to '2' makes it visible when the button is pressed.)
    Same applies to EZ2_MODE for second column, EZ3_MODE for third.
    look at the flags/parameters in this method, and also in FILL_ADD_COLUMNS, to fill the data.
    here you need to fill structure EMDEZX_USEX1 (for column 1) etc.
    The code is hit for each record displayed in MD04
    Hopefully this helps you.
    Regards,
    David

  • APEX-The manullay created column is not getting updated in the database

    Dear all
    I have a form on page, which is created along with a report using Form on a Table with Report option. From the form I have deleted one field and recreated manullay as set the property as database column. When I am calling from the report page (using defualt edit option) the value is showing there, but if I am 'Apply Changes' , the column value in database is get updated with null.
    Please help
    DJ.

    This is the SQL and PL/SQL forum.
    Please re-post this on the APEX forum.
    Oracle Application Express (APEX)

  • Not null and enable or disable  column in tabular form

    Hi,
    Using apex version 4.1 and working on tabular form.
    ACT_COA_SEGMENT_MAS is Master table
    and
    ACT_SEGMENT_VALUES_MAS is detail table
    I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
    How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
    I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
    Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 9, 2013 9:12 PM

    Vedant,
    You need to create you own manual tabular form and not use the wizard.
    Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
    select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
    Hope that help.
    Vivek

  • Converting null and blank to NA in a column of a database table

    Hi
    This is a simple thing but is giving me a hard time. I need to change the values coming as null or blank to NA . The values comes in a flat file as a source and I need to laod it convertign to NA in database. I wrote the expression as
    ISNULL([NPS Rating]) ? "NA" : [NPS Rating] in a derived column  and checked the box " retain null values from source as null values in data flow:
    However it is not working instead giving the error as : Truncation may occur due to inserting data from dataflow column from  column name" with a length of ...........
    Can any help me to sort out this problem. Am I writing the correct expression?
    Thank you so much for your help in advance.
    Kind regards
    Rama

    In your conditional result force it to the same length and type and make sure it is long enough, e.g.
    ISNULL([NPS Rating])==TRUE ? (DT_WSTR,256)"NA" : (DT_WSTR, 256)[NPS
    Rating]
    and if the data comes from a flat file, the test will most likely need to test for zero length string too, or trim spaces and then test for zero length.
    LEN(TRIM([NPS Rating])) == 0 || ISNULL...
    Jan D'Hondt - SQL server BI development

Maybe you are looking for