Multi Columns Report Switch replacement

Hi, I have a multiple columns report with 2 fix columns and 10 selectable ones.
I'm selecting the columns with a checklistbox an it works
The Header is easy just have to put "=Parameters!Columns.Label(0-10)" as an expression in each columns heading 
The hard part that I'm not getting is that I'm currently using a Switch statement in the fields values and I want to put it into Custom Code.
Why Custom Code is that I was ask to insert 15 other fields value in my selection list. I just don't want to be ask to add more fields x 10 columns.
Here's part of my Switch, I have 10 of them (0-10) for each columns. 
=Switch(Parameters!Columns.Value(0)="Phone"
,Fields!Phone.Value,
  Parameters!Columns.Value(0)="FirstTime"
,SSRS.Utility.TimeFromMilliSeconds(Fields!RingTime.Value),
  Parameters!Columns.Value(0)="ProcessTime"
,SSRS.Utility.TimeFromMilliSeconds(Fields!ProcessTime.Value),
  Parameters!Columns.Value(0)="TalkTime"
        ,SSRS.Utility.TimeFromMilliSeconds(Fields!TalkTime.Value),
  Parameters!Columns.Value(0)="Transferred"
,Fields!Transferred.Value)
Notes that some of the fields are FIELDS and others are call in function (assembly's) 
Here's one of my many variation of custom code
Public Shared Function FixColumns(Byref Colonne as String) As String
SELECT CASE Colonne
  CASE "Phone" 
    Return "Fields!Phone.Value"
  CASE "FirstTime" 
    Return "SSRS.Utility.TimeFromMilliSeconds(Fields!RingTime.Value)"
END SELECT
End Function
in the value columns fields
=CODE.Fixcolumns(Parameters!Columns.Label(0))
I would greatly appreciate any help 
Denis B.

Hi Denis B,
If I understand correctly, you want to use custom code replace Switch expression in your report. Please refer to the following custom code:
Public Shared Function FixColumns(Byref Colonne as String, A as String, B as String, …… , F AS String) as String
Select Case Colonne
Case "Phone"
Return A
Case "FirstTime"
Return B
Case Else
Return F
End Select
End Function
Then, we can use following expression to calculate the values:
=CODE.Fixcolumns(Parameters!Columns.Label(0), Fields!Phone.Value, SSRS.Utility.TimeFromMilliSeconds(Fields!RingTime.Value), …… , Fields!Transferred.Value)
As per my understanding, Return Statement in a Function, Get, or Operator must return a value, we cannot return an expression via custom code. So, we use this fields or assembly as a variable in the custom code.
Hope this helps.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support

Similar Messages

  • Multi Column Report - printing Across and then Down

    Is there any setup option for a multi column report to go across and then down instead of down & across as a default. The problem I am experiencing is that some where and some how the two columns are not horizontally aligned properly - neither in the
    report view nor in the exported PDF. 
    The added difficulty is the problems created by this misaligned labels while printing on a custom paper that is smaller in size. Though I can setup the custom dimensions and get the desired 4x2 labels on the screen the printing doesn't sit in proper places
    on a preformatted paper.
    Is there any solution(s). Thanks in advance.

    Hi Christal,
    Based on my understanding, you want to make multi columns go across then down in the report.
    For your requirement, on query level, we should add an additional field(DisplayColumn) in the dataset, the field indicates the column in which the corresponding records will display. When designing a report, we add a group in the report, then insert some
    tablixes into the detail row. Within the nested tablix, we specify filter expression based on the value of DisplayColumn field. So that we can decide which data should display on which column. When previewing the report, you can find the report displays like
    newsletter-style. Besides, if we design the report like this, the report can supports all renders. For detail information about how to design the report step by step, please refer to this article:
    Creating Multiple-Column Reports [SSRS] .
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Multi-columned report

    Helllo,
    I"m using Application Express 3.1.2.00.02
    I want to do a 3 columned report.
    I just saw this thread ( from 2005 - that's why I started a new)
    Multi-columned report
    When I applied the template to my report region, I got the following error:
         ERR-1025 Erreur lors du traitement de l'expression PL/SQL. mod(1,3)0
    Can someone tell me why?
    thanks,
    Roseline
    My Query - select ename from emp
    The template I created step by step:
    Create a report row template....
    Workspace>Builder-Application>Shared Components>Themes>Templates...Create
    Template Type: Report
    Creation Method: From Scratch
    Name: One Field - Three Column
    Theme: your choice
    Template Class: Standard
    Template Type: Named Column (row template)
    Edit the report Template you just created and modify the following:
    Row Template 1: <td width="150">#1#</td>
    Row Template Condition: Use Based on PL/SQL Expression
    Row Template 1 Expression: mod(#ROWNUM#,3)0
    Row Template 2: <td width="150">#1#</td></tr><tr>
    Row Template Condition: Use Based on PL/SQL Expression
    Row Template 2 Expression: mod(#ROWNUM#,3)=0
    Before Rows: <tr>
    After Rows: </tr>
    Create a query based report region. For my test I used "select ename from emp". Have the report use the row template.
    This is just a quick and dirty sample. For better look and feel you'll need to do your own formatting...

    Yes, that's it.
    However, that I SEE is only 4 name ( every 3 name of the list) on the same line:
    ENAME WARD  ENAME BLAKE  ENAME KING  ENAME JAMES
    1 - 14   But when I cut and paste from Internet Explorer to a text file,m=, even if I see all the result on the same line, when I past it, it's formated :
    ENAME WARD
    ENAME BLAKE
      ENAME KING
      ENAME JAMES
       1 - 14  
    I have 14 results in my database:
    In My SQL
    select * from emp
    EMPNO     ENAME     JOB     MGR     SAL     DEPTNO
    7369     SMITH     CLERK     7902     800     20
    7499     ALLEN     SALESMAN     7698     1600     30
    7521     WARD     SALESMAN     7698     1250     30
    7566     JONES     MANAGER     7839     2975     20
    7654     MARTIN     SALESMAN     7698     1250     30
    7698     BLAKE     MANAGER     7839     2850     30
    7782     CLARK     MANAGER     7839     2450     10
    7788     SCOTT     ANALYST     7566     3000     20
    7839     KING     PRESIDENT     -      5000     10
    7844     TURNER     SALESMAN     7698     1500     30
    7876     ADAMS     CLERK     7788     1100     20
    7900     JAMES     CLERK     7698     950     30
    7902     FORD     ANALYST     7566     3000     60
    7934     MILLER     CLERK     7782     1300     10
      What I would like, is having this display:
    SMITH     ALLEN     WARD
    JONES     MARTIN     BLAKE
    CLARK     SCOTT     KING
    TURNER     ADAMS     JAMES
    FORD     MILLER     
    How can I modify the template?
    thanks again Roseline

  • Multi-Column Report Issue

    I am using the Crystal Reports edition bundled with Visual Studio 2005. I have a problem with a multi-column report. It is a two column member directory with family members. It lists the member name, contact info, spouse, and children. I want each family group to stay together, and not break cross a column or a page. Each group may have from 3 to a dozen or so lines.
    The family groups will not break across a page (which is good), but they will break across a column (bad). I have tried many combinations of settings to make this work without success.
    So I wonder if anyone has seen and resolved this problem, or if perhaps it works better in the full version of Crystal.

    In some sub-sections, I have checked 'Suppress Blank Section' checked. In others, I have a suppression formula.
    Each section has only a single field.
    The record set that the report uses has a single row for each person. The sorting and grouping is arranged so that the first record in each family group is the 'main' member. The report displays this person's name, and also shows the sections which include address and phone number info. Subsequent records are for family members (spouse and/or children). For these records, I display the name, but suppress the address and phone sections.
    There is also a detail sub-section used as a group header. This group breaks when the first letter of the last name changes, so it an display a single letter heading ("A"). I had tried this as a regular group header too, but it didn't help.
    I have tried combining all the sections into a single one with each field on a separate line (which means the section can have some blank space), and also combined into a text box. No luck.
    I also have the group itself set to "Keep Together' in the group expert. Doesn't help/

  • Changing details layout for a multi column report

    I have a report that contains linked 2 subreports. The report has a details layout width of 2.5 inches which will create a 3 column report (Format groups with multiple columns is checked) . This works fine for my first subreport as it is small enough to fit that width. However that isn't enough room for my second sub report. Ii need to change the details layout width from 2.5 inches to 3.5 for a 2 column report then back again when that section is finished. Is this possible?

    i believe you can depends on where you place you subreports
    insert a 2nd group under the first, place 2nd report in the new details section
    in the section expert next to the details section check off underlay.
    this will lay them out next to each other but grow independetly

  • Groups and Multi Column Reports

    I'm using CR for .Net 2003.  I've been running into a problem with the grouping feature, where groups are spanning multiple columns and are not being kept together, but only when spanning b/w columns.  However, the groups aren't being broken between pages.  Anyone else running into this?  Here's my setup:
    Page Header
    Group Header
    Details
    Group Footer
    Page Footer
    The "Group Header", "Details" and "Group Footer" are all set to Keep Together in the Selection Expert.  The layout of the "Details" section has "Format Groups with multiple Columns" checked.  (I only have two columns)  And my group options has the option "Keep Group Together" selected. 
    I was under the impression that if I have "Keep Group Together" it would keep the group together regardless of an end of page, or an end of column...but, maybe I have something misconfigured.
    advTHANKSance for any help!

    Confirm version of Crystal Reports and version of .NET.
    Also, have you applied any Service Packs to your version of CR?
    Ludek

  • Multi-column report that repeats columns

    I don't know if this is possible:
    COL A | COL B | COL C | COL A | COL B | COL C
    1 | 2 | 3 | 4 | 5 | 6
    7 | 8 | 9 | 10 | 11 | 12
    So it would be a report being pulled from a single table, but the columns would be repeated across the page.
    Has anyone ever done something like that?

    Okay, firstly, the column titles can be defined any way you want except that they have to be unique names. This is called "aliasing" the columns.
    select colA as A1, colB as B1, colC as C1, colA as A2, colB as B2, colC as C2
      from my_table
    ...What I am struggling with is the fact that you seem to have 12 distinct values (ostensibly coming from 12 distinct columns), so why would you want to show the same column name repeatedly?
    If you are trying to combine information from several columns but place them in different rows, you can use a union and sort in this manner:
    select A1, B1, C1, A2, B2, C2
    from (
    select ID, 1 as SORT_BY, colA as A1, colB as B1, colC as C1, colD as A2, colE as B2, colF as C2
      from my_table
    union
    select ID, 2 as SORT_BY, colG as A1, colH as B1, colJ as C1, colK as A2, colM as B2, colN as C2
      from my_table
    order by ID, SORT_BYCan you give us an example of a record to go with the output?

  • Multi Column report

    Hi,
    I am newbie in Crystal report. I stuck into a design problem of crystal report. I would like to design a report as per the desired-report.png (attached).
    My dataset is like report2.xml and relationship specified in relationship-diagram.png (attached)
    The problem is crystal report make the Cartesian product of these two table which result in several rows. I am using .Net windows application to build this report.
    Could anyone please suggest how to design this type of report ?

    This is the desired report format
    Id
    StoneDescription
    Rate
    Weight
    Value
    Carat
    Id2
    Metal
    Rate3
    Weight4
    Value5
    1
    Diamond
    0.35
    0.07
    4375
    0.35
    1
    Loose Diamond
    0
    0
    0
    2
    Diamond
    1.15
    0.23
    15525
    1.15
    2
    Silver Utensils
    48
    20550
    976125
    3
    Diamond
    4.25
    0.85
    63750
    4.25
    3
    Gold 18K
    2250
    103.21
    232223
    4
    Diamond
    0.8
    0.16
    12800
    0.8
    4
    Gold 22K
    2750
    204.3
    561825
    5
    Diamond
    0.2
    0.04
    3300
    0.2
    5
    Sovereign
    2810
    88
    247280
    6
    Diamond
    1
    0.2
    17000
    1
    7
    Diamond
    9.43
    1.89
    165025
    9.43
    8
    Diamond
    0.5
    0.1
    9000
    0.5
    9
    Diamond
    1.7
    0.34
    127500
    1.7
    This is the Cartesian product what I am getting in report. For example every diamond row is multiplied to metal rows. As shown in example below-
    Id
    StoneDescription
    Rate
    Weight
    Value
    Carat
    Id2
    Metal
    Rate3
    Weight4
    Value5
    1
    Diamond
    0.35
    0.07
    4375
    0.35
    1
    Loose Diamond
    0
    0
    0
    2
    Diamond
    1.15
    0.23
    15525
    1.15
    1
    Loose Diamond
    0
    0
    0
    3
    Diamond
    4.25
    0.85
    63750
    4.25
    1
    Loose Diamond
    0
    0
    0
    4
    Diamond
    0.8
    0.16
    12800
    0.8
    1
    Loose Diamond
    0
    0
    0
    5
    Diamond
    0.2
    0.04
    3300
    0.2
    1
    Loose Diamond
    0
    0
    0
    6
    Diamond
    1
    0.2
    17000
    1
    1
    Loose Diamond
    0
    0
    0
    7
    Diamond
    9.43
    1.89
    165025
    9.43
    1
    Loose Diamond
    0
    0
    0
    8
    Diamond
    0.5
    0.1
    9000
    0.5
    1
    Loose Diamond
    0
    0
    0
    9
    Diamond
    1.7
    0.34
    127500
    1.7
    1
    Loose Diamond
    0
    0
    0
    1
    Diamond
    0.35
    0.07
    4375
    0.35
    2
    Silver Utensils
    48
    20550
    976125
    2
    Diamond
    1.15
    0.23
    15525
    1.15
    2
    Silver Utensils
    48
    20550
    976125
    3
    Diamond
    4.25
    0.85
    63750
    4.25
    2
    Silver Utensils
    48
    20550
    976125
    4
    Diamond
    0.8
    0.16
    12800
    0.8
    2
    Silver Utensils
    48
    20550
    976125
    5
    Diamond
    0.2
    0.04
    3300
    0.2
    2
    Silver Utensils
    48
    20550
    976125
    6
    Diamond
    1
    0.2
    17000
    1
    2
    Silver Utensils
    48
    20550
    976125
    7
    Diamond
    9.43
    1.89
    165025
    9.43
    2
    Silver Utensils
    48
    20550
    976125
    8
    Diamond
    0.5
    0.1
    9000
    0.5
    2
    Silver Utensils
    48
    20550
    976125
    9
    Diamond
    1.7
    0.34
    127500
    1.7
    2
    Silver Utensils
    48
    20550
    976125
    1
    Diamond
    0.35
    0.07
    4375
    0.35
    3
    Gold 18K
    2250
    103.21
    232223
    2
    Diamond
    1.15
    0.23
    15525
    1.15
    3
    Gold 18K
    2250
    103.21
    232223
    3
    Diamond
    4.25
    0.85
    63750
    4.25
    3
    Gold 18K
    2250
    103.21
    232223
    4
    Diamond
    0.8
    0.16
    12800
    0.8
    3
    Gold 18K
    2250
    103.21
    232223
    5
    Diamond
    0.2
    0.04
    3300
    0.2
    3
    Gold 18K
    2250
    103.21
    232223
    6
    Diamond
    1
    0.2
    17000
    1
    3
    Gold 18K
    2250
    103.21
    232223
    7
    Diamond
    9.43
    1.89
    165025
    9.43
    3
    Gold 18K
    2250
    103.21
    232223
    8
    Diamond
    0.5
    0.1
    9000
    0.5
    3
    Gold 18K
    2250
    103.21
    232223
    9
    Diamond
    1.7
    0.34
    127500
    1.7
    3
    Gold 18K
    2250
    103.21
    232223
    1
    Diamond
    0.35
    0.07
    4375
    0.35
    4
    Gold 22K
    2750
    204.3
    561825
    2
    Diamond
    1.15
    0.23
    15525
    1.15
    4
    Gold 22K
    2750
    204.3
    561825
    3
    Diamond
    4.25
    0.85
    63750
    4.25
    4
    Gold 22K
    2750
    204.3
    561825
    4
    Diamond
    0.8
    0.16
    12800
    0.8
    4
    Gold 22K
    2750
    204.3
    561825
    5
    Diamond
    0.2
    0.04
    3300
    0.2
    4
    Gold 22K
    2750
    204.3
    561825
    6
    Diamond
    1
    0.2
    17000
    1
    4
    Gold 22K
    2750
    204.3
    561825
    7
    Diamond
    9.43
    1.89
    165025
    9.43
    4
    Gold 22K
    2750
    204.3
    561825
    8
    Diamond
    0.5
    0.1
    9000
    0.5
    4
    Gold 22K
    2750
    204.3
    561825
    9
    Diamond
    1.7
    0.34
    127500
    1.7
    4
    Gold 22K
    2750
    204.3
    561825
    1
    Diamond
    0.35
    0.07
    4375
    0.35
    5
    Sovereign
    2810
    88
    247280
    2
    Diamond
    1.15
    0.23
    15525
    1.15
    5
    Sovereign

  • How to design crystal report multi column

    how to design crystal report multi column
    for example
    id              1001             id                 1002     
            id            1003
    name        dinesh          name            dk                 name       
    dkn
    address   kota             address       jaipur             address     delhi
    pin          3260356        pin              546332            pin       
    675942
    id              1004             id                 1005       
               id            1006
    name        dinesh1       name            dk1                     name       
    dkn
    address   kota1           address       jaipur1                 address     delhi
    pin          32606           pin                546345                pin       
    675942
    and so on....................

    DN
    I am afraid you have come to the wrong place.  MS does not support Crystal reports except for
    "Microsoft supports setup and installation for the Crystal Reports products shipped with the Professional and Enterprise Editions of Microsoft Visual Basic for Windows versions 3.0, 4.0, 5.0 and 6.0."
    For other support you need to contact
    For other Crystal Reports support, please do not contact Microsoft. Please contact Crystal Decisions (formerly Seagate Software), which now owns and supports Crystal Report Writer.
    http://support.microsoft.com/kb/100368
    Wanikiya and Dyami--Team Zigzag

  • How to create multi level reports?

    The report I have created contains 25 columns and is to wide. I would like to create a multi level report in the fashion of below:
    Col 1 Col 2 Col 3
    Row1 Row1 Row1
    Row2 Row2 Row2
    Col 5 Col 6 Col 7
    Row1 Row1 Row1
    Row2 Row2 Row2
    I am assuming this needs to be done by modifying html in a template.
    I have cut up a normal report to try and illistrate what I am thinking.
    http://i71.photobucket.com/albums/i124/breinhar/multirow.jpg
    I greatly appreciate the help. Thanks.

    Hi,
    OK - I've put together a horizontal scrolling report template for a Theme 12/Standard report: [http://apex.oracle.com/pls/otn/f?p=33642:198]
    To create this, you need to:
    1 - Through Shared Components, Templates - create a new Report Template based on a copy of the existing Standard report template.
    2 - When you have your new template, edit it.
    3 - In the template's "Before Rows" setting, replace what's there with the following:
    &lt;style type="text/css"&gt;
    #table1 th {white-space: nowrap}
    #table1 td {white-space: nowrap}
    #table2 th {white-space: nowrap}
    #table2 td {white-space: nowrap}
    &lt;/style&gt;
    &lt;table cellpadding="0" cellspacing="0" summary="" style="padding:0px; border-collapse:collapse;"&gt;#TOP_PAGINATION#
    &lt;tr&gt;&lt;td&gt;
      &lt;tr&gt;
        &lt;td style="vertical-align:top; background-color:#EFEFEF; padding:0px; border:1px solid darkgray;"&gt;
          &lt;div id="d1" style="background-color:white; margin:0px; border:0px; padding:0px;"&gt;
          &lt;/div&gt;
        &lt;/td&gt;
        &lt;td style="vertical-align:top; padding:0px; border:1px solid darkgray;"&gt;
          &lt;div id="d2" style="overflow-X:scroll; margin:0px; border:0px; padding:0px; border-right:1px solid darkgray;"&gt;
    &lt;table cellpadding="0" border="0" cellspacing="0" summary="" class="t12Standard" id="table2"&gt;4 - In the template's "After Rows" setting, replace what's there with the following:
          &lt;/div&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;&lt;div class="t12bottom"&gt;#EXTERNAL_LINK##CSV_LINK#&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;#PAGINATION#&lt;/table&gt;
    &lt;script type="text/javascript"&gt;
    var d1 = document.getElementById("d1");
    var t2 = document.getElementById("table2");
    var t1 = t2.cloneNode(false);
    t1.style.width = "100%";
    t1.id = "table1";
    d1.appendChild(t1);
    var t2Rows = t2.rows;
    var k;
    var r;
    var c;
    for (k = 0; k &lt; t2Rows.length; k++)
    r = document.createElement("TR");
    t1.appendChild(r);
    c = t2Rows[k].cells[0].cloneNode(true);
    r.appendChild(c);
    t2Rows[k].deleteCell(0);
    d1.innerHTML += "";
    &lt;/script&gt;5 - On your report's Report Attributes, change the template used for the report from "Standard" to your new one
    6 - Also on the report's Report Attributes, set "Enable Partial Page Refresh" to No - this is required as we need the javascript in the template to be run whenever pagination happens and Partial Page Refresh does not seem to allow us the means to trigger javascript
    7 - Finally, on the report region's Region Footer, add in:
    &lt;style type="text/css"&gt;
    #d1 {width:75px;}
    #d2 {width:500px;}
    &lt;/style&gt;#d1 refers to the width of the frozen column and #d2 is the width of the rest of the report - you can adjust these figures as required.
    The template contains two DIV tags - d1 and d2. Initially, d1 is empty and d2 contains the report. The javascript moves the first cell in each row from d2 to d1. The styles then add the scrolling functionality.
    Andy

  • Example Named Column Report Layout?

    Howdy,
    Using APEX 3.1.2, I've successfully setup and tested Apache FOP for a print server. I'm hoping to create a multi-line report layout to emulate the MS Access (of Evil) one this app is replacing, but I'm having trouble getting started.
    It seems that I need to create a Named Column report layout. I've been scouring this forum, the web, and even the new Pro APEX book to find an example of the contents of even the simplest of these XSL-FO files, but I can't find one anywhere. Granted, a little XSL-FO experience would help here, but I can't seem to glean enough from the web to put the pieces together, at least as it applies to APEX. It seems that the examples I do find contain static data, whereas it looks like I should be creating a template form for APEX to populate for passing onto the FOP engine.
    Does anyone have a simple two-column layout they'd be willing to share? Or a good weblink?
    TIA!
    Rich

    Hi Rich,
    This is an example we use in our training:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:fox="http://xml.apache.org/fop/extensions" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon" >
    <xsl:template match="DOCUMENT">
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
    <fo:simple-page-master master-name="pagemaster1" page-height="845.0pt" page-width="598.0pt" margin-top="10.0pt" margin-left="10.0pt" margin-bottom="10.0pt" margin-right="10.0pt">
    <fo:region-body margin-left="28.0pt" margin-top="28.0pt" margin-bottom="28.0pt" margin-right="28.0pt"/>
    <fo:region-before extent="28.0pt" precedence="true"/>
    <fo:region-after extent="28.0pt" precedence="true"/>
    <fo:region-start extent="28.0pt" precedence="false"/>
    <fo:region-end extent="28.0pt" precedence="false"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-name="pagemaster1" master-reference="pagemaster1">
    <xsl:attribute name="force-page-count">no-force</xsl:attribute>
    <fo:static-content flow-name="xsl-region-before">
    <fo:block-container position="absolute" top="3.0pt" left="357.0pt" height="25.0pt" width="216.0pt">
    <fo:block line-height="14.399999999999999pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" position="relative" top="3.0pt" left="357.0pt" height="25.0pt" width="216.0pt" color="#000000" font-family="Arial" font-size="12.0pt" font-style="italic">
    <fo:block text-align="left" white-space-collapse="false"  linefeed-treatment="preserve" >
    <fo:inline>
    <xsl:text>Report ran by: </xsl:text></fo:inline>
    <fo:inline>
    <xsl:value-of disable-output-escaping="no" select="USER_NAME"/>
    </fo:inline>
    </fo:block>
    </fo:block>
    </fo:block-container>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after"/>
    <fo:static-content flow-name="xsl-region-start"/>
    <fo:static-content flow-name="xsl-region-end"/>
    <fo:flow flow-name="xsl-region-body">
    <fo:block/>
    <fo:block-container position="absolute" top="4pt" left="2pt" height="752.0pt" width="536.0pt" border-width="1.0pt"> <fo:block span="none" white-space-collapse="false" font-family="Helvetica" font-size="12pt" text-align="start" position="relative" top="44pt" left="27pt" height="752.0pt" width="536.0pt"><fo:instream-foreign-object xmlns:xlink="http://www.w3.org/1999/xlink"></fo:instream-foreign-object></fo:block></fo:block-container><fo:block span="none"><!-- GENERATE TABLE START-->
    <fo:table table-layout="fixed">
    <fo:table-column column-width="80.0pt"/>
    <fo:table-column column-width="80.0pt"/>
    <fo:table-column column-width="80.0pt"/>
    <fo:table-column column-width="80.0pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell display-align="before" background-color="#cccccc">
    <fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
    <xsl:text>Ename</xsl:text></fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before" background-color="#cccccc">
    <fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
    <xsl:text>Hiredate</xsl:text></fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before" background-color="#cccccc">
    <fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
    <xsl:text>Job</xsl:text></fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before" background-color="#cccccc">
    <fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
    <xsl:text>Salary</xsl:text></fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
    <fo:table-cell display-align="before">
    <fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
    <xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/ENAME"/>
    </fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before">
    <fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
    <xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/HIREDATE"/>
    </fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before">
    <fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
    <xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/JOB"/>
    </fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before">
    <fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
    <xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/SAL"/>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
    <fo:table-cell/><fo:table-cell/><fo:table-cell/><fo:table-cell/></fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block></fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    </xsl:stylesheet>XSL-FO is not the easiest thing to learn ;-) but hopefully the above gives you a headstart.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • XML Publisher Multi tab Report: Help needed

    Hi,
    I have a requirement like below--
    Need to develop master detail XML Report in R12. O/P will be in excel.
    Excel output having two Work sheet.
    Some columns data must be non editable in excel output ,whereas some columns will be editable.
    User must not be able to add any line manually in the report.
    Can anyone pls help me out to find a way to build this?????????
    Thanks
    Titas

    Hi Titas,
    Any luck with this? Were you able to create a multi-tab report using XML Publisher? Any help on this will be greatly appreciated.
    Thanks.

  • Select_list_from_lov in multi row report: Help

    Oracle 10g, apex 3.2
    On windows XP client, Firefox 3.5.2
    I have a multi row editable report region, defined as below: I have a check box item for the row being selected and one of the columns in the row is a select_list_from_lov_xl. Once the user checks a particular row, using the check box, he/she will choose a particular value from that row's select list. How do I capture the value of the select_list returned value specific for that row? As you see from the highlighted code to render select_list,the value for the apex_item that I am assigning is 30. But when I look in the firebug->inspect element, the apex renders the name as 'f01'..??. What am I missing here??
    Also if user checks all rows, my code picks up the correct corresponding values picked for the select list. If user selects a row in the middle or any random row, the value selected is always the first item returned by the first orw's select_list (though this was not checked!!)
    I am confused and need help on capturing select list return values in a multi row reports.
    Thanks for all your time and expertise...
    Here's the simplified version of my query, that includes the culprits:
    SELECT APEX_ITEM.HIDDEN(10,TR.SEQ) || APEX_ITEM.CHECKBOX(20, tr.seq,'onchange="spCheckChange(this);"',:F500_REQUEST_LIST,':') "Is Requested?",
    +APEX_ITEM.SELECT_LIST_FROM_LOV_XL(30,TO_ROOM_SEQ, 'ROOMS_LOV') "To Room"*_+
    FROM TS_ASSETS TA, TS_REQS TR where <some condition>
    Here is part of my code that extracts the values picked
    -- this should pick only checked rows...
    for i in 1..apex_application.g_f20.count
    loop
    some_checked_value(i) := apex_item.g_f20(i);
    -- the below is coded thus, as thats the value that I see being set, when I inspect this element in firebug. Not sure how this came by, as I had set this item to 30 in my query...???
    some_select_list_val(i) := apex_item.g_f01(i);
    end loop;

    Why don't you try this
    SELECT    apex_item.hidden (10, tr.seq)
           || apex_item.checkbox (20,
                                  tr.seq,
                                  'onchange="spCheckChange(this);"',
                                  :f500_request_list,
                                  'f20_' || '#ROWNUM#'
                                 ) "Is Requested?",
           apex_item.select_list_from_lov_xl (30,
                                              to_room_seq,
                                              'ROOMS_LOV',
                                              'NO',
                                              NULL,
                                              NULL,
                                              'f30_' || '#ROWNUM#',
                                              NULL,
                                              'NO'
      FROM ts_assets ta, ts_reqs tr?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Bug 2679062 - Wrong results possible from multi-column INLIST - though stat

    Hi,
    The following test case is supplied in the metalink in bug no. 2871341, the base bug for this bug is 2679062.
    REPRODUCIBILITY:
    Reproduces constantly with simple test case below:
    TEST CASE:
    DROP TABLE A1
    CREATE TABLE A1 (X1 VARCHAR2(10), X2 VARCHAR2(10))
    REM *********** Create the second table: ***************
    DROP TABLE A2
    CREATE TABLE A2 (X1 VARCHAR2(10), X2 VARCHAR2(10))
    INSERT INTO A1 VALUES ('1','2');
    INSERT INTO A2 VALUES ('3','4');
    COMMIT;
    CREATE INDEX A1_X1 ON A1(X1 );
    CREATE INDEX A1_X2 ON A1(X2);
    CREATE INDEX A2_X1 ON A2(X1);
    CREATE INDEX A2_X2 ON A2(X2);
    CREATE OR REPLACE VIEW A_ALL AS SELECT * FROM A1 UNION ALL SELECT * FROM A2;
    ANALYZE TABLE A1 COMPUTE STATISTICS;
    ANALYZE TABLE A2 COMPUTE STATISTICS;
    SELECT * FROM A_ALL;
    SELECT * FROM A_ALL WHERE (X1='1' AND X2='2') ;
    SELECT * FROM A_ALL WHERE ((X1='1' AND X2='2') OR (X1='3' AND X2='4'));
    The 2nd query returns answer while the second is not !
    The following is published in the 9.2.0.4 fixed bug list:
    " 9204 - 2679062 - Wrong results possible from multi-column INLIST "
    I have installed 9.2.0.4 patch set on a win 2000 machine Oracle and saw that the above case is actually solved but our application which has a very similar case doesn't.
    After investigating I found the following test case that fails, it reproduces only when you have index on all columns (covering index):
    drop table t1_1;
    drop table t1_2;
    create table t1_1(c1 number, c2 number, c3 number);
    create table t1_2(c1 number, c2 number, c3 number);
    create index t1_1_ix on t1_1(c1, c2, c3);
    create index t1_2_ix on t1_2(c1, c2, c3);
    create or replace view t1 as select * from t1_1 union all select * from t1_2;
    insert into t1_1 values(1, 2, 100);
    insert into t1_2 values(1, 2, 200);
    commit;
    analyze table t1_1 compute statistics;
    analyze table t1_2 compute statistics;
    prompt
    prompt #######################################
    prompt try 1 - works fine
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    ( (c2=2) and (c3=100)
    prompt
    prompt #######################################
    prompt try 2 - works fine
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    (c2=2) and (c3=200)
    prompt
    prompt #######################################
    prompt try 3 - try 1 OR try 2 does not work !
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    ( ( (c2=2) and (c3=100) )
    or
    ( (c2=2) and (c3=200) )
    opened a TAR and wanted to share with you.
    Tal Olier ([email protected]).

    Hi,
    The following test case is supplied in the metalink in bug no. 2871341, the base bug for this bug is 2679062.
    REPRODUCIBILITY:
    Reproduces constantly with simple test case below:
    TEST CASE:
    DROP TABLE A1
    CREATE TABLE A1 (X1 VARCHAR2(10), X2 VARCHAR2(10))
    REM *********** Create the second table: ***************
    DROP TABLE A2
    CREATE TABLE A2 (X1 VARCHAR2(10), X2 VARCHAR2(10))
    INSERT INTO A1 VALUES ('1','2');
    INSERT INTO A2 VALUES ('3','4');
    COMMIT;
    CREATE INDEX A1_X1 ON A1(X1 );
    CREATE INDEX A1_X2 ON A1(X2);
    CREATE INDEX A2_X1 ON A2(X1);
    CREATE INDEX A2_X2 ON A2(X2);
    CREATE OR REPLACE VIEW A_ALL AS SELECT * FROM A1 UNION ALL SELECT * FROM A2;
    ANALYZE TABLE A1 COMPUTE STATISTICS;
    ANALYZE TABLE A2 COMPUTE STATISTICS;
    SELECT * FROM A_ALL;
    SELECT * FROM A_ALL WHERE (X1='1' AND X2='2') ;
    SELECT * FROM A_ALL WHERE ((X1='1' AND X2='2') OR (X1='3' AND X2='4'));
    The 2nd query returns answer while the second is not !
    The following is published in the 9.2.0.4 fixed bug list:
    " 9204 - 2679062 - Wrong results possible from multi-column INLIST "
    I have installed 9.2.0.4 patch set on a win 2000 machine Oracle and saw that the above case is actually solved but our application which has a very similar case doesn't.
    After investigating I found the following test case that fails, it reproduces only when you have index on all columns (covering index):
    drop table t1_1;
    drop table t1_2;
    create table t1_1(c1 number, c2 number, c3 number);
    create table t1_2(c1 number, c2 number, c3 number);
    create index t1_1_ix on t1_1(c1, c2, c3);
    create index t1_2_ix on t1_2(c1, c2, c3);
    create or replace view t1 as select * from t1_1 union all select * from t1_2;
    insert into t1_1 values(1, 2, 100);
    insert into t1_2 values(1, 2, 200);
    commit;
    analyze table t1_1 compute statistics;
    analyze table t1_2 compute statistics;
    prompt
    prompt #######################################
    prompt try 1 - works fine
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    ( (c2=2) and (c3=100)
    prompt
    prompt #######################################
    prompt try 2 - works fine
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    (c2=2) and (c3=200)
    prompt
    prompt #######################################
    prompt try 3 - try 1 OR try 2 does not work !
    prompt #######################################
    prompt
    select * from t1
    where
    (c1=1)
    and
    ( ( (c2=2) and (c3=100) )
    or
    ( (c2=2) and (c3=200) )
    opened a TAR and wanted to share with you.
    Tal Olier ([email protected]).

  • Multi Project Reports

    I am trying to create a multi-project report and am having an issue seeing it in PCM 14.
    Here are the steps I did:
    - Copied multi-project report for daily report
    - Changed name to M_Dai_03
    - I didnt really change anything in the report
    - Logged onto PCM 14 Admin and imported reports
    - Loggied onto PCM 14 and clicked print at the top
    - Selected daily reports
    - Only M_Dai_01 and M_Dai_02 show up
    Any ideas what is happening? or steps I missed?
    Thanks

    In the BIP application there are four steps to copying an existing form or report:
    1.     Save a copy of the data model of the source form or report under a new name
    a.     Navigate to the form or report being copied and then locate the corresponding data model. Each report or form is associated with a data model. The default naming convention for the data models for stock reports and forms has each data model named the same as the associated form or report, preceded by “DM_”. The data model for the M_DAI_02 report, for example, is “DM_ M_DAI_02”.
    b.     Click on the data model title, or on the edit link, to open the data model in edit mode.
    c.     In Data Model screen click on the ‘Save As’ icon in the upper right corner of the screen and save the data model under a new name.
    2.     Save a copy of the source form or report under a new name
    a.     Click on the Catalog link in the upper toolbar and then navigate to the form or report being copied.
    b.     Click on the form or report’s edit link.
    c.     Immediately click on the ‘Save As’ icon in the upper right corner, and save the form or report as a new name.
    3.     Associate the new form or report with the new data model
    a.     In the newly named form or report, the data model link in the upper left corner of the screen will still point to the ‘old’ data model.
    b.     Click on the search icon in the upper left corner to display a list of all the data models within this folder.
    c.     Select the data model created in step 1.
    4.     Replace the layout of the report with a layout named to match the report name.
    a.     Within each report there is a layout which is typically named the same as the report. After saving the report under a new name and associating the report with a new data model, it is recommended to save a new layout named to match the new report name.
    b.     Click on the ‘Edit’ link below the current layout
    c.     Immediately click on the ‘Save As’ icon in the layout edit screen and save the layout under a new name which matches the report name.
    d.     Click on the ‘Return’ button in the toolbar to display the old and new layouts.
    e.     Use the Delete link below the ‘old’ layout to clear this layout. The report name, the layout name and the associated data model will now all match.
    f.     Click the ‘Save’ icon to save this version of the report.
    Hope the above helps.

Maybe you are looking for

  • Xb4 and dv6t mute bug

    I have a dv6t laptop with an i7 processor, win 7 pro, and the factory tv-tuner.  I use windows media center to watch videos and tv.  The laptop is usually docked in the xb4 media docking station, I very rarely undock the notebook.  Often, I will brie

  • Importing Packages and Efficiency

    is it more efficient to import only the classes your program needs ( in a single package) or would it be the same as importing everything in that package? many thanks akz

  • Functional Area in Account Assignment Category

    Hi Gurus, What's the usage of Functional Area in Account Assignment Category? What's the impact if we just hide the field? Many thanks in advance

  • Drive not reading discs

    It seems that only some discs will read - I can hear the drive rev up then it slows down..this process repeats three times then it ejects the disc. It won't even read the install disc that came with the computer. Any ideas?

  • T500 BSOD at shutdown

    I get this stop error: 0x0000007E (0xC0000005, 0x87B1EA58, 0x901DDB88, 0x901DD884) ndis.sys - address 87B1EA58 base at 87AED000  Only seem to get it at shutdown or restarts.  I've googled this and the only passing references I get are in regards to e