Summary Column in af:table

Hi,
I have created a footer facet at table and column level.
I have couple of issues
1. Label associated with Table footer is not shown in the summary column.
2. I have 6 columns in the table and I have defined footer to 3 of its columns
I'm not able to align the summary column value to right.
It always shows readonly. I tried creating the footer with InputText and OutputText it always shows as OutputText
Any help on aligning the summary columns to right is helpful.
Below is the code snippet.
<af:table value="#{bindings.SellersWIPVO1.collectionModel}"
                                                          var="row"
                                                          rows="#{bindings.SellersWIPVO1.rangeSize}"
                                                          emptyText="#{bindings.SellersWIPVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                          fetchSize="#{bindings.SellersWIPVO1.rangeSize}"
                                                          rowBandingInterval="0"
                                                          id="EditWIPTbl"
                                                          columnStretching="column:c35"
                                                          rowSelection="single"
                                                          autoHeightRows="8"
                                                          contentDelivery="immediate">
                                                  <af:column sortProperty="SellingRegionName"
                                                             sortable="false"
                                                             headerText="#{revuiBundle.OWNER_SELLER}"
                                                             id="c36"
                                                             rowHeader="true"
                                                             align="center">
                                                    <af:outputFormatted value="#{row.bindings.SellingRegionName.inputValue}"
                                                                        id="of6"
                                                                        inlineStyle="text-align:right;"/>
                                                  </af:column>
                                                  <af:column sortable="false"
                                                             headerText="#{revuiBundle.CLEAR_WIP}"
                                                             id="ClearWIPCol"
                                                             align="center"
                                                             width="30">
                                                    <af:commandImageLink id="ClearWIPCLI"
                                                                         icon="/clear.png"
                                                                         partialSubmit="true"
                                                                         actionListener="#{ProjectSelection.clearWIPRow}"
                                                                         disabled="#{bindings.ProjectBillClassificationCurrVal.inputValue == 'D'}"/>
                                                  </af:column>
                                                  <af:column sortProperty="Elm"
                                                             sortable="false"
                                                             headerText="#{revuiBundle.ELM}"
                                                             id="c35"
                                                             align="right">
                                                    <af:outputFormatted value="#{row.bindings.Elm.inputValue}"
                                                                        id="of5"
                                                                        inlineStyle="text-align:right;">
                                                      <af:convertNumber groupingUsed="false"
                                                                        pattern="#{bindings.SellersWIPVO1.hints.Elm.format}"
                                                                        minFractionDigits="4"
                                                                        maxFractionDigits="4"/>
                                                    </af:outputFormatted>
                                                  </af:column>
                                                  <af:column sortProperty="Revenue"
                                                             sortable="false"
                                                             headerText="#{bindings.SellersWIPVO1.hints.Revenue.label}"
                                                             id="c39"
                                                             align="right">
                                                    <af:outputFormatted value="#{row.bindings.Revenue.inputValue}"
                                                                        id="of7"
                                                                        inlineStyle="text-align:right;">
                                                      <af:convertNumber groupingUsed="true"
                                                                        pattern="#{bindings.SellersWIPVO1.hints.Revenue.format}"
                                                                        minFractionDigits="0"
                                                                        maxFractionDigits="0"
                                                                        integerOnly="true"/>
                                                    </af:outputFormatted>
                                                  </af:column>
                                                  <af:column sortProperty="Labor"
                                                             sortable="false"
                                                             headerText="#{bindings.SellersWIPVO1.hints.Labor.label}"
                                                             id="c38"
                                                             showRequired="true"
                                                             align="right">
                                                    <af:inputText value="#{row.bindings.Labor.inputValue}"
                                                                  label="#{bindings.SellersWIPVO1.hints.Labor.label}"
                                                                  columns="#{bindings.SellersWIPVO1.hints.Labor.displayWidth}"
                                                                  maximumLength="#{bindings.SellersWIPVO1.hints.Labor.precision}"
                                                                  shortDesc="#{bindings.SellersWIPVO1.hints.Labor.tooltip}"
                                                                  id="it28"
                                                                  contentStyle="text-align:right;"
                                                                  binding="#{ProjectSelection.rowLaborIT}"
                                                                  partialTriggers="ClearWIPCLI"
                                                                  required="true"
                                                                  readOnly="#{bindings.ProjectBillClassificationCurrVal.inputValue == 'D'}"
                                                                  autoSubmit="true">
                                                      <f:validator binding="#{row.bindings.Labor.validator}"/>
                                                      <af:convertNumber pattern="#{bindings.SellersWIPVO1.hints.Labor.format}"
                                                                        integerOnly="true"
                                                                        minFractionDigits="0"
                                                                        maxFractionDigits="0"/>
                                                    </af:inputText>
                                                    <f:facet name="footer">
                                                      <af:inputText value="#{ProjectSelection.sumLabor}"
                                                                    id="of9"
                                                                    partialTriggers="it28"
                                                                    contentStyle="text-align:right;">
                                                        <af:convertNumber pattern="#{bindings.SellersWIPVO1.hints.Labor.format}"
                                                                          integerOnly="true"
                                                                          minFractionDigits="0"
                                                                          maxFractionDigits="0"/>
                                                      </af:inputText>
                                                    </f:facet>
                                                  </af:column>
                                                  <af:column sortProperty="Odc"
                                                             sortable="false"
                                                             headerText="#{revuiBundle.OTHER_DIRECT_COSTS}"
                                                             id="c37"
                                                             align="right"
                                                             showRequired="true">
                                                    <af:inputText value="#{row.bindings.Odc.inputValue}"
                                                                  label="#{bindings.SellersWIPVO1.hints.Odc.label}"
                                                                  columns="#{bindings.SellersWIPVO1.hints.Odc.displayWidth}"
                                                                  maximumLength="#{bindings.SellersWIPVO1.hints.Odc.precision}"
                                                                  shortDesc="#{bindings.SellersWIPVO1.hints.Odc.tooltip}"
                                                                  id="it30"
                                                                  contentStyle="text-align:right;"
                                                                  binding="#{ProjectSelection.rowODCsIT}"
                                                                  partialTriggers="ClearWIPCLI"
                                                                  required="true"
                                                                  readOnly="#{bindings.ProjectBillClassificationCurrVal.inputValue == 'D'}"
                                                                  autoSubmit="true">
                                                      <f:validator binding="#{row.bindings.Odc.validator}"/>
                                                      <af:convertNumber pattern="#{bindings.SellersWIPVO1.hints.Odc.format}"
                                                                        integerOnly="true"
                                                                        minFractionDigits="0"
                                                                        maxFractionDigits="0"/>
                                                    </af:inputText>
                                                    <f:facet name="footer">
                                                      <af:inputText value="#{ProjectSelection.sumODC}"
                                                                    id="of8"
                                                                    partialTriggers="it30"
                                                                    contentStyle="text-align:right;">
                                                        <af:convertNumber pattern="#{bindings.SellersWIPVO1.hints.Odc.format}"
                                                                          integerOnly="true"
                                                                          minFractionDigits="0"
                                                                          maxFractionDigits="0"/>
                                                      </af:inputText>
                                                    </f:facet>
                                                  </af:column>
                                                  <af:column sortProperty="Ops"
                                                             sortable="false"
                                                             headerText="#{revuiBundle.OUTSIDE_PROFESSIONALS}"
                                                             id="c40"
                                                             align="right"
                                                             showRequired="true">
                                                    <af:inputText value="#{row.bindings.Ops.inputValue}"
                                                                  label="#{bindings.SellersWIPVO1.hints.Ops.label}"
                                                                  columns="#{bindings.SellersWIPVO1.hints.Ops.displayWidth}"
                                                                  maximumLength="#{bindings.SellersWIPVO1.hints.Ops.precision}"
                                                                  shortDesc="#{bindings.SellersWIPVO1.hints.Ops.tooltip}"
                                                                  id="it18"
                                                                  contentStyle="text-align:right;"
                                                                  binding="#{ProjectSelection.rowOPsIT}"
                                                                  partialTriggers="ClearWIPCLI"
                                                                  required="true"
                                                                  readOnly="#{bindings.ProjectBillClassificationCurrVal.inputValue == 'D'}"
                                                                  autoSubmit="true">
                                                      <f:validator binding="#{row.bindings.Ops.validator}"/>
                                                      <af:convertNumber pattern="#{bindings.SellersWIPVO1.hints.Ops.format}"
                                                                        integerOnly="true"
                                                                        minFractionDigits="0"
                                                                        maxFractionDigits="0"/>
                                                    </af:inputText>
                                                    <f:facet name="footer">
                                                      <af:inputText value="#{ProjectSelection.sumOPS}"
                                                                    id="of10"
                                                                    partialTriggers="it18"
                                                                    contentStyle="text-align:right;"
                                                                    inlineStyle="text-align:right;">
                                                        <af:convertNumber pattern="#{bindings.SellersWIPVO1.hints.Ops.format}"
                                                                          integerOnly="true"
                                                                          minFractionDigits="0"
                                                                          maxFractionDigits="0"/>
                                                      </af:inputText>
                                                    </f:facet>
                                                  </af:column>
                                                  <f:facet name="footer">
                                                    <af:outputFormatted value="Summary"
                                                                        id="of11"/>
                                                  </f:facet>
                                                </af:table>Thanks,
Satya

Thee are few guides and after i checked them i finished with that.
In the MatSpravkaDebViewImpl:
private Number sumSuma = null;
private void recalculateSumSuma() {
    sumSuma = null;
public Number getSumSuma() {
    if (sumSuma == null) {
      sumSuma = new Number(0);
      RowSetIterator rsi = createRowSetIterator(null);
      while (rsi.hasNext()) {
        Row r = rsi.next();
        Number curSal = (Number)r.getAttribute("Suma");
        if (curSal != null) {
          sumSuma = sumSuma.add(curSal);
      rsi.closeRowSetIterator();
    return sumSuma;
  }This is also in the MatSpravkaDebViewImpl, it is supposed to force recalculate of the SumSuma column. I am not sure about that part becasue the view i am currently using is readonly and i can not test it.
You may try adding dependancy also.
  protected void executeQueryForCollection(Object qc, Object[] params,
                                           int noUserParams) {
    // TODO:  Override this oracle.jbo.server.ViewObjectImpl method
    super.executeQueryForCollection(qc, params, noUserParams);
    recalculateSumSuma();
  protected void notifyRowDeleted(ViewRowSetImpl vrs, Row viewRow,
                                  int rowIndex) {
    // TODO:  Override this oracle.jbo.server.ViewObjectImpl method
    super.notifyRowDeleted(vrs, viewRow, rowIndex);
    recalculateSumSuma();
  }Then you create a transient field for the
Then in the ViewObjectRowImpl I changed the getter
  public Number getSumSuma() {
    return ((MatSpravkaDebViewImpl)getViewObject()).getSumSuma();
    // return (Number) getAttributeInternal(SUMSUMA);
  }I hope that helps. Tell me if it does not work when you add/delete/update rows, i am still clearing that scenario.
Edited by: Valhery on 2010-4-12 23:48

Similar Messages

  • Adding a summary column in a table which contains the start and end dates in the week

    Hi,
    I've got a DIMENSION DATE table and want to add in another column which shows the start and end date of the week.
    See below, the new column is WEEKOFYEARTEXT.
    Does anybody know how i may generate this column using SQL and using the existing columns?
    Umar Javed

    See:  http://www.sqlusa.com/bestpractices/datetimeconversion/
    DECLARE @Year INT = '2015';
    WITH cteDays AS (SELECT DayOfYear=Dateadd(dd, number,
    CONVERT(DATE, CONVERT(char(4),@Year)+'0101'))
    FROM master.dbo.spt_values WHERE type='P'),
    CTE AS (SELECT DayOfYear, WeekOfYear=DATEPART(week,DayOfYear)
    FROM cteDays WHERE YEAR(DayOfYear)= @YEAR)
    SELECT WeekOfYear, StartOfWeek=MIN(DayOfYear), EndOfWeek=MAX(DayOfYear)
    FROM CTE GROUP BY WeekOfYear ORDER BY WeekOfYear;
    WeekOfYear StartOfWeek EndOfWeek
    1 2015-01-01 2015-01-03
    2 2015-01-04 2015-01-10
    3 2015-01-11 2015-01-17
    4 2015-01-18 2015-01-24
    5 2015-01-25 2015-01-31
    6 2015-02-01 2015-02-07
    7 2015-02-08 2015-02-14
    8 2015-02-15 2015-02-21
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Summary column with where clause

    Hi all,
    I'm using Oracle Report Builder 10GR2. I have the following issue: In one of the query i have the following result :
    Suppliers     0
    Suppliers     1408
    Total in  BGN     1408
    Customers      6024
    Customers      11779.32
    Customers      
    Total in  BGN     11779.32
    Taxes      0
    Taxes      0
    Total in  BGN     0
    Cash      1363.85
    Cash      691
    Cash      991.23
    Cash      688
    Total in  BGN     2355.08I want to make a sum for these columns where corresponds to description " Total in BGN" . Maybe it is a simple task... Do i have a chance to select from a query in a Report Builder?
    If yes, pls specify? Or maybe there is a chance to add a where clause for summary column. But keep in mind that this is one of the queries in the report builder and i have to add summary with this conditions. I cannot change the existing query but probably add a new one.
    Any ideas?
    DB Version: 11g
    Thanks in advance,
    Bahchevanov.
    Edited by: bahchevanov on Sep 29, 2012 2:21 AM

    Hello,
    You should use parameter file.Another question i can see you are using 11g.Why don't you use data pump?.
    Data Pump is faster and have more features and enhancement than regular imp and exp.
    You can do the following:
    sqlplus / as sysdba
    Create directory DPUMP_DIR3  for 'Type here your os path that you want to export to';then touch a file:
    touch par.txt
    In this file type the following the following :
    tables=schema.table_name
    dumpfile=yourdump.dmp
    DIRECTORY=DPUMP_DIR3
    logfile=Your_logfile.log
    QUERY =abs.texp:"where hiredate>'01-JAN-13' "then do the following
    expdp username/password parfile='par.txt'
    If you will import from Oracle 11g to version 10g then you have to addthe parameter "version=10" to the parameter file above
    BR
    Mohamed ELAzab
    http://mohamedelazab.blogspot.com/

  • How to change/remove Details column in a table?

    Hi,
    I need to build an interface where the user would be able to review summary information on some records and edit them one in detail mode.
    This all works very nice through detailDisclosure but it also automatically includes a Details column which I do not seem to be able to manipulate in any way.
    Ideally I would like to replace the Details column with one called Action and positioned as last column in the table and replace the "Show" and "Hide" links with "Edit" and "Cancel" buttons... I am able to add the column with the buttons and they work just as expected as long as the table is defined with its <detail>...</detail> section in the .uix file, however that also triggers the addition of Details column, which is not desirable.
    I have used JHeadstart to create the page and then edited the UIX file for the page in order to add the buttons.
    Is what I am trying to do possible at all with <table>? The functionality I need is all there. I just cannot make it look the way I want on the screen because of that Automatically inserted Details column. If not possible to
    remove it completely is there a way to change the title and replace Show and Hide with something else? Preferably icons?
    Thanks!

    This has been much discussed earlier. Do search posts.
    For your scenario i would do the following.
    inside your node which is binded to the table, i create a new node image with cardinality 1 ..1 and a attribute called path of type string.
    create a  supply function for the node image .
    Supply method now has a Element (Parent element ) and node.
    Based on your record in element, set the right image source to path attribute and bind the node.
    This will make sure that the framework calls the image supply function for every row in a table.

  • Summary Column Question

    Hi!
    I set up a summary column with function COUNT and Reset At Report. I placed this field in the repeating frame but it is only displaying the total number of records not a running count of the records ...
    I'm getting something like this:
    3 Record
    3 Record
    3 Record
    When what I want is this:
    1 Record
    2 Record
    3 Record
    I hope that makes sense.
    TIA!

    You might wanna try this:
    Create a formula column have try to put something like this in the PLSQL code of that formula column:
    This is an example:
    v_sum number:=0;
    v_col number:=0;
    begin
         v_sum:=:cp_1;
         select col into v_col from table
         where col =:col;     
         v_sum:=v_sum+v_col;
         :cp_1:=v_sum;
    return (v_sum);
    :cp_1 is a place holder column..

  • Using Page Level Summary Column in Report 6i

    Hi Folks,
    I'm trying to create a report in which I want a Page level Summary column i.e., the Summary column should reset at each page and should display the sum of a particular field on each page depending upon how many records are displayed on each page. But whenever I choose the Reset Property to Page the following error is displayed" Page level summaries are not supported in the defaulting" and in certain case the summary column displays the sum only on the last page of the report and the rest of the pages do not display the summary column. The database has three tables i.e., master-detail-detail.
    Do I need to make some changes in the Data Model or what?
    TIA
    Hassan

    Hi Hassan,
    it only works onceWell, this is definitely not expected. Maybe you can try to see after running the report once whether all the values you set in your report (from my last post) remain the the same, or somehow they revert back to their default values.
    if I do some formatting of the report... summary also disapperasYou could try placing the page level summary in another frame, below your group repeating frame, with enough gap between them. Also, try setting the value for "max no of records" to some lower value, which makes sure there is space for the summary column on every page.
    Another idea for making a page level summary is - you can place the summary BEFORE your group repeating frame, which means the summary will print on top of every page. In this case, you won't even have to worry about setting "max no of records per page" to some particular value. See if this suits your needs.
    Navneet.

  • Summary columns in portal forms

    i have a master-detail form and i need to sum(one of detail columns) and display the result in the master block.
    has anyone any ideas on how to have a summary column in master in oracle portal ?
    has anyone done this before ?
    thanx
    null

    Not exactly what you want, but I have managed to put a summary table at the end of the detail block. This gives a total for all detsail records for the current master, not just those displayed.
    Add a pl/sql block to the 'after displaying the page' section of the Additional PL/SQL code tab to run the code you need. THis pl/sql block will include the p_session.get_value function to get the identifier of the master record, a query on the detail table and the HTML code to display the results.
    Another method might be to create a view to contain the summary details you need for each master record, and base the master block on this view.

  • Using Summary Columns in Reports 9I

    Hi
    I am using Oracle 9i Reports
    I want to use Summary cols in the report
    I have a table with the flwg data:
    TRANS_ID   ACC_ID DEL               AMT
    LEL0002045 SLEND  RECEIVE          1200
    LEL0002053 SLEND  DELIVER          1000
    LEL0002100 SLEND  DELIVER           500The Report format is
    TRANS_ID   ACC_ID DEL               AMT
    LEL0002045 SLEND  RECEIVE          1200
    LEL0002053 SLEND  DELIVER          1000
    LEL0002100 SLEND  DELIVER           500
                      RECIEVE          2200
                      DELIVER           500
                      GRAND             2700I have defined a summmary column in the Data Model(C_S1)
    and have defined a text field in the paper layout and setting
    this to C_S1.
    I get the total of 2700 in the report for this.
    I want to define 2 summary cols - one for 2200 and other for 500
    and then a grand total of 2700.
    How shud i define this please?

    Table :
    TRANS_ID   ACC_ID DEL        CCY        AMT TRADE_DAT LENDER
    LEL0002045 SLEND  RECEIVE    GBP       1200 02-AUG-05 LENDERA
    LEL0002053 SLEND  DELIVER    GBP       1000 02-AUG-05 LENDERA
    LEL0002100 SLEND  DELIVER    USD        500 02-AUG-05 LENDERB
    LEL0002000 SLEND  DELIVER    KRN       1000 03-AUG-05 LENDERCREPORT OUTPUT
    LENDER A
    LEL0002045 SLEND  RECEIVE    GBP       1200 02-AUG-05
    LEL0002053 SLEND  DELIVER    GBP       1000 02-AUG-05
    Total                                               2200
    LENDER B
    LEL0002100 SLEND  DELIVER    USD        500 02-AUG-05
    Total                                                500I want to break LENDER A total in 1000 for RECEIVE and 1200 for DELIVER
    I have used the SQL as mentioned is yr mail
    decode(DEL,'RECEIVE',AMT,0) as REC_AMT
    , decode(DEL,'DELIVER',AMT,0) as DEL_AMTcreated 2 summary columns : CS_1 --> REC_AMT
    CS_2 --> DEL_AMT
    but i get this result :
    A
    LEL0002045 SLEND  RECEIVE    GBP       1200 02-AUG-05
    LEL0002053 SLEND  DELIVER    GBP       1000 02-AUG-05
                                                       1000 ????
    Total                                             2200
    LENDER B
    LEL0002100 SLEND  DELIVER    USD        500 02-AUG-05
                                                             1000 ????
    Total                                                   500

  • Summary column restricted by a condition

    I have a table that returns, lets say, 20 rows. I have created a summary item that gives a total for these 20 rows. Is there a way of creating a Summary item that would give me a total across these 20 rows based upon a certain condition?
    As its an amount, I could create a hidden formula column and create a summary column on this new column, but it 'seems' like a simple requirement to want to create conditional summary columns.
    Any ideas?
    Richard

    I have a table that returns, lets say, 20 rows. I have created a summary item that gives a total for these 20 rows. Is there a way of creating a Summary item that would give me a total across these 20 rows based upon a certain condition?
    As its an amount, I could create a hidden formula column and create a summary column on this new column, but it 'seems' like a simple requirement to want to create conditional summary columns.
    Any ideas?
    Richard

  • Adding a different total column in pivot table

    Hi,
    I'm trying to create a dinamic table, with "client" in rows, "family" and "subfamily" in columns and "units" as measure. What I want to do is to add another column with oher measure (year accumulate units) at the right of the dinamic table showing the Total of the measure for client.
    It would be something like this:
    Family1 | Family2 | |
    Subfamly1 | Subfamily2 | Subfamily3 | Total Units | Total year accumulate
    Client1 10 35 20 65 256
    Client2 20 15 10 45 1231
    I'm working with MS word Bi Publisher add-on, but I don't know how to modify the "xsl" code to obtain this.
    Can anyone help me?
    Thank you very much,

    This sounds like a standard requirement in most of the reports. You just need to change your data model. Group by wbs code and put a summary column. However, I cannot explain it any better without seeing your report. Neither can Oracle Team
    Regards
    ~Ajay
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Roselink1:
    I making changes to a developed report using Reports 2.5 and I need to add a subtotal column at the change of wbs code.in other words I have A26,A27,A28.
    At the end of A26, I would like to have subtotal column, and then when I get to A27, another subtotal and so forth.
    Can I do this on the query or what approach should I take.<HR></BLOCKQUOTE>
    null

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Dynamically Hiding Column in a Table View in VC Model

    How to dynamacally hide the columns in a table view in a VC model. Through the expression in Control Property, Form element/field or table view as a whole can be made hidden, however, the individual column can not seem to be hidden.
    I am using VC server version 700.8.0.1.
    Any help would be much appreciated.
    Kind Regards
    Sanjoy

    In this scenario, if the source is SAP BI, you can use the webapi commands. If not, you would have to have 2 separate tables in different layers and you can show and hide those layers or UI elements...

  • Unable to see a column of a table in portal for a particular User

    Hi,
    A particular user is unable to see a particular column of a table in the portal . The application is developed in Webdynpro ABAP. The table contains two columns. Both the columns contain text type fields. What appears to the user is that the left column has disappeared and the right hand column has shifted to the left.
    This is occuring for a particular user only. We have checked in our development and quality systems but we are unable to replicate the issue. Please help.
    Thanks and regards,
    Satya.

    Hi Vikas.
    You can use BAPI in LSMW to craete Material or You can use direct input method. Both methods as follows below:
    Using BAPI in LSMW:
    First maintain IDOC Inbound Processing steps by giving PORT and Partner Type and Partner Numberby clicking 'settings' icon in menu path in LSMW Screen.
    Adn then execute LSMW and maintain the values as below in the first step.
    BusinessObject Method(BAPI)
    Business Object       BUS1001006                      Standard material
    Method                     SAVEDATA                        Create and change materia
    Message Type         MATMAS_BAPI                   Create and change materia
    Basic Type               MATMAS_BAPI03               Create and Change Materia.
    For the selecting of views, you can maintain fields for all views(From Basic view to costing view) in your excel and populate with 'X' in respective fields for activating views.
    In the 6th step (Maintain field mapping and conversion rules). you can map those fields for views which you want to activate since we have all views are in the standard structure.
    Using Direct Input Method:
    Standard Batch/Direct Input
    Object                      0020                                             Material master
    Method                     0000
    Program Name          RMDATIND
    Program Type           D                                                  Direct Input
    For the selecting of views, you can maintain fields for all views(From Basic view to costing view) in your excel and populate with 'X' in respective fields for activating views.
    In the 6th step (Maintain field mapping and conversion rules). you can map those fields for views which you want to activate since we have all views are in the standard structure.

  • Specific Model not showing rows in a table in a column of a table

    Hello,
    Fairly simple issue here (I think):
    I have a table bound to a global model and its rows bound to "/items"
    I then have a column within that table which has a valuehelpfield that pops open a dialog with a table.
    This tables rows inside the dialog are bound to a temp model. Now I know this temp model has the correct data and format and I do not get a "no data" messages when I bind it's rows to the node on the temp model, and to double check that I tried binding it to an incorrect node and it did say "no data" and I tripple checked by getting the jsonstring of the model and it's exactly how it should be.
    Here is the code:
    oTable.addColumn(new sap.ui.table.Column({
                label: new sap.ui.commons.Label({
                    text: "Shop",
                    required: true
                width: "200px",
                template:  new sap.ui.commons.ValueHelpField({       
                value:"{shopdesc}",
                 valueHelpRequest: function(oEvent){   
                 var locModel = oTable.getModel();
                 var rowContextPath = oEvent.getSource().getBindingContext().getPath();
                 var oRowObj = oEvent.getSource().getBindingContext().getObject();
              var oDataOld = sap.ui.getCore().getModel().getData();
             var tempModel = new myJSONModel;
          tempModel.setData({
          shops: []
      sap.ui.getCore().setModel(tempModel, "tempModel");
             tempModel = sap.ui.getCore().getModel('tempModel');
                d = tempModel.getData();
                arr = d.shops;
              var shops = oDataOld.shops;
                 for (var i = 0; i < shops.length; i++) {
                     if (shops[i].area == oRowObj.area) {
                             arr.push(shops[i]);
                 var oValueHelpDialog = new sap.ui.commons.Dialog(
                            { modal: true,
                                title: "Select a Shop",
                                closed: function (oEvent) {
                                var oContext = oTableJobs.getContextByIndex(oTableJobs.getSelectedIndex());
                                if (oContext) {
                               var oSel = oContext.getModel().getProperty(oContext.getPath());
                             locModel.setProperty(rowContextPath + "/shop", oSel["shop"]);  
                             locModel.setProperty(rowContextPath + "/shopdesc", oSel["shopdesc"]); 
                 var oTableJobs = new sap.ui.table.Table({
                     visibleRowCount: 15,
                     firstVisibleRow: 1,
                     selectionMode: sap.ui.table.SelectionMode.Single,
                     width : "300px"
                 var oOkButton = new sap.ui.commons.Button({
                     text: "OK",
                     press: function (oEvent) {
                       oEvent.getSource().getParent().close();
                 oTableJobs.addColumn(new sap.ui.table.Column({
                     label: new sap.ui.commons.Label({text: "shop"}),
                     template: new sap.ui.commons.TextField().bindProperty("value", "shop"),
                     editable:false,
                     width: "100px"
                 oTableJobs.addColumn(new sap.ui.table.Column({
                     label: new sap.ui.commons.Label({text: "Shop Description"}),
                     template: new sap.ui.commons.TextField().bindProperty("value", "shopdesc"),
                     editable:false,
                     width: "300px"
                 var jsonString = tempModel.getJSON();
                 alert(jsonString);
                     oTableJobs.bindRows("tempModel>/shops");                                       
                     oValueHelpDialog.addButton(oOkButton);
                     oValueHelpDialog.addContent(oTableJobs);
                     oValueHelpDialog.open();               
            var oModel = sap.ui.getCore().getModel();
            oTable.setModel(oModel);
            oTable.bindRows("/items");
    Any help would be appreciated, I can't see what's wrong here, all seems fine to me! Thanks!

    HI Bob
    I briefly scan thru your code and spotted one common issue. When we are binding property, we need to include the model name. e.g.
    template: new sap.ui.commons.TextField().bindProperty("value", "shop"),
    should be
    template: new sap.ui.commons.TextField().bindProperty("value", "tempModel>shop"),
    -D

  • Creating a radio button group in a column of a table in Web Dynpro

    Hi,
    I want to put a radio button group in a column of a table in Webdynpro. I added a column to a web dynpro view and then inserted a tableCellEditor for that column.. But I cannot define it as Radio Button group. I want the user to be able to select 3 statuses using this group.
    Does anyone have a solution for this??
    Thanks in advance...
    Nakul

    Hi,
    You wont be able create three RB in one cell.
    Create as many column as the no of options is.Here it is 3.
    Create 4 attributes inside the node , option 1,option 2,option 3 and selectedoption.
    Map each RB s keytoSelect to option 1,2,3. Map all the RBs selectedKey atribute to selectedoption.
    Now selection for each row will be stored in the selected option.
    Regards
    Bharathwaj

Maybe you are looking for

  • Processing big EDI files

    I am going to work on project where we will get EDI X12 files from customer. We expect weekly file may be 50MB with 100K messages. In output I should create 10 files batch of 10K each. Few of vendors will send file with one ST per product ,it means m

  • How can I sum up raws? the sum function seems to work for columns only and right now I have to create a separate formula for each raw

    How can I sum up raws? the Sum function seems to work only on columns. Right now I have to create a separate formula for each raw

  • Final Cut Pro Academic Version Is not fully functional!

    Could someone tell me if Final Cut Pro Academic is really functionally? I bought final cut pro academic and it appears that the program color does not work. The viewer in color doesn't work. Apple states that the only difference between academic and

  • TAXINN Implementation

    Dear Gurus, we are using TAXINJ.Now we are planning to implement TAXINN.I know that we should close open doc's like PO,MIGO and MIRO. But my question is Now we planning to go for a new company code with 50 additional plants.Can we upload open doc to

  • Profile for new user

    I'm creating a new user from the transaction SU01. Which profile do I have to choose for being able to access to all transactions?