To display Total sum of a column in a table view control ?

Hi,
  I am unable to display the sum of a column in a table view control ( using HTMLB ). How should one display the sum of a column in a table view control ?
Thanks in advance.
Vara.

Hi there, do a search in this forum for TableView Iterator. Then check out these weblogs:
/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
An Iterator is the way to go for you

Similar Messages

  • Display a sum of a column(field) in the view

    Hi
    I would like to show the sum of a revenue field(currency) in any view of the opportunity entity(only when revenue field exist in the view) , may be at the end of the view or as a alert message on button click., but sum should change dynamically based on
    the filters applied or selected records.
    E.g. Here Est. Revenue to be summed and displayed.
    Kindly help me... Thanks in advance.
    Rekha.J

    This is the Solution
    Add This Code to Desing Page:-
    <GridView id="GrdView1" Runat Server/>
    <asp:TemplateField HeaderText="Date" ItemStyle-Width="100px">
                            <ItemTemplate>
                               <%# Eval("Date","{0:MMM d,yyyy}").ToString()%>
                            </ItemTemplate>
                            <FooterTemplate>
                                Sub-Total:
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Amount" ItemStyle-Width="118px">
                            <ItemTemplate>
                                <%# GetAmount(decimal.Parse(Eval("Amount").ToString())).ToString()%>
                            </ItemTemplate>
                            <FooterTemplate>
                                <%# GetToalAmount().ToString("")%>
                            </FooterTemplate>
                        </asp:TemplateField>
    </GrigView>
    In the cs file write the code on pageload as
    decimal TotalAmountPaid = 0;
        public decimal GetAmount(decimal Price)
            TotalAmountPaid += Price;
            return Price;
        public decimal GetToalAmount()
            return TotalAmountPaid;
    Then Run This..............................

  • Total sum to be displayed in a table view control ?

    Hi,
      I am unable to display the total sum of a column in a table view control( using HTMLB ). How should one display the sum of a column ?
    THanks in advance,
    VaraPrasad

    Hi,
    it should work once you are restricting the capacity of the out put port then it should provide that much rows only otherwise its a Bug.
    Alternativily you are tellin to disaply using sorting then add a Sort operator to the output port and the display ur output port in down order.
    But first option should work just check it again.
    On which SP u r working?
    Regards,
    Govindu

  • Calculate total size of clob column in a table

    how to Calculate total size of clob column in a table.
    Thanks ,
    Sakthivel

    SAKTHIVEL wrote:
    I would like to calculate table size and particular clob column size inside that table. The size of the table and the size of the LOB are two totally different things.
    Barring cases where the LOB is less than 4k and stored inline, the LOB data is stored outside the table in a separate segment.
    If you want to get the combined size of the table and of its LOB segments, you could do something like
    SELECT SUM(bytes)/1024/1024 gb
      FROM dba_segments
    WHERE (owner = <<table owner>> and
           segment_name = <<table name>>)
        OR (owner, segment_name) IN (
            SELECT owner, segment_name
              FROM dba_lobs
             WHERE owner = <<table owner>>
                AND table_name = <<table name>> )Justin

  • BSP: How to create check box in a column of a Table View

    Hi All,
    I have a table view in Web IC scenario. my requirement is to display check box in one of the column of the table view.. so that i can select multiple lines from the table and do some calculations!.
    Anybody have any hint/clue
    Thanks in advance,
    sudeep v d.

    Hi,
    This can be achieved by using a Table iterator.
    Please check the standard examples for this.
    Thanks,
    Rashmi.

  • Hide a column in one table view but show it in another

    I need to hide a column in one tables view but show it in another table view in the same report. Is this possible?
    Any help on this is appreciated.
    Edited by: VNC on Jan 11, 2010 9:26 AM

    Hi VNC,
    If you're crafty with javascript, you could probably write a script that would set the CSS property DISPLAY to NONE to hide the column in the table view you didn't want but leave it there in the view you did want.
    -Joe

  • 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...

  • Addition of a custom column in a table view

    Hi all,
    I want to add a custom column in a table view. Kindly tell me if this is possible.
    Regards,
    Vivek Pandey

    Hi Vivek,
    This can definately be done....you will have to declare and iterator and in the GET_COLUMN_DEFINITIONS, declare the column name....
    Referr to blogs :
    <a href="/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator Basics</a>
    and
    <a href="/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators Iterator.</a>
    The second blog shows how to insert a icon, which is an extra column...
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • How do I assign a cell to display the sum of a column?

    I am doing an expense report for the first time.
    How can I create a cell to display the sum of numbers in a given column?
    Can I have a cell display the sum of specific rows that contain a specific word, like "SUPPLIES"?
    Thanks!

    JP,
    The answers are to use the SUM function, and to use the SUMIF function, respectively.
    Download the Formulas and Functions User Guide from the Help Menu to study how the functions work. It's free.
    Jerry

  • No data for Parent-child hierarchy column in Pivot table view

    Hi all,
    I used OBIEE 11.1.1.6.2 Version.
    I drag one Parent-child hierarchy column and one measure and show result with a pivot table view.
    But when I click "+" icon to show detail level data,
    It messaged that: "*the layout of this view combined with the data,selections,drills,or prompt values chosen resulted in no data*."
    But it can show every-level data when I used table view.
    It was so strange..
    Did anybody meet this before?
    Thanks in advance.
    regards,
    Anne

    Hi,
    Yes, I have the same problem with pivot table for hierarchy dimension.
    If you use a normal table (not pivot) it seem to work. Unfortunatley with restrictions as normal table view have.
    Same problem still exist in 11.1.1.6.5
    I have logged a SR to Oracle about this.

  • Filtering feature for a column in a table view

    Hi,
    I have a table view in which the column should have a feature of filtering.
    How do we enable that.
    Thanks and Regards,
    Radhika

    Hi Radhika,
    I don't understand exactly why you're looking for a specific procedure to enable the filtering feature. Column filtering should be available for all tables in CRM2007 by default without further action. There are only few cases where filtering doesn't work.
    You can open the dropdown for sorting and filtering in the WebClient UI by just clicking the column header.
    Are you referring to a SAP delivered view or a custom built one. in the latter case make sure you use the "thtmlb:cellerator" tag instead of the "thtmlb:tableView" one to be on the safe side.
    Best regards
    Peter

  • How to get the sum of  a column in a table layout region

    i have page table layout region and i have many rows in that ...i have a column say xyz now i want the sum of all xyz in all rows ...is that possible ..if it is how..????
    please help me out in this issues...so that i can proceed further with my work..im stuck otu here....if the solution r there in the devguide please tell me where it is ..i mean under which section...bcoz it 1400page document...

    If you are mentioning about table/advanced table region you can enable totalling in those regions. Please check the Table / Advanced Table section as appropriate in Chapter 4 of the dev guide.
    If it is not a table / advancedTable then you will have to programmatically total the column value and display it in the appropriate cell.

  • How to calculate the total of a calculated column in a list view at the end of the view?

    I have a view with the following columns ProductName, Quantity, Price, Total The total column is a calculated column which is the product of quantity and price. I want to place the sum of the total column by the end of the list view. I can do this with
    the price and quantity but not with the total column. how do I do this?

    You can use SharePoint Designer and calculate the total in xslt view. Refer to the following post for more information
    http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2009/04/24/how-to-total-calculated-columns-in-a-sharepoint-list.aspx
    http://blog.metrostarsystems.com/2012/12/03/jennys-sharepoint-tip-sum-calculated-columns/
    Cheers,

  • Display of data on as columns in a table

    Hi All,
    I have an application where the data from R/3 server is displayed on the table.
    The different columns are:
    1. Date 2. Volume 3. Price
    the Volume is corresponding to the date mentioned. which is in past/or future.
    I have to read the difference between current date and the column date in days. and multiply that with a price factor( to be read from the server ) and add it up with price on current day( to be read from server) and display it under the column "price".
    there can be many rows with many different dates and different corresponding price factors.
    Can some one tell me how to go about this.
    Thanks in advance
    Srikant

    Hi to  All(& Nibu)
    I have written functions:
    1.  Executing the The Bapi
    2.  finding the difference the between dates in days.
    3.  finding the price
    The following are the codes for them:
    public void executeZs_Wcontract_Quantity_Input( )
        //@@begin executeZs_Wcontract_Quantity_Input()
            try
                 wdContext.nodeZs_Wcontract_Quantity_Input().currentZs_Wcontract_Quantity_InputElement().modelObject().execute();
                 wdContext.nodeOutput_Contract_Qty().invalidate();
            catch(WDRFCException ex)
                 ex.printStackTrace();
        //@@end
    public int daysDifference( java.lang.String startDate, java.lang.String finishDate )
        //@@begin daysDifference()
        try
             SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
             Date beginDate = dateFormat.parse(startDate);
             Date endDate = dateFormat.parse(finishDate);
              GregorianCalendar calStart = new GregorianCalendar();
              calStart.setTime(beginDate);
              GregorianCalendar calEnd = new GregorianCalendar();
              calEnd.setTime(endDate);
                   //if the dates belong to same year
                   if (calStart.get(Calendar.YEAR) == calEnd.get(Calendar.YEAR))
                   return calEnd.get(Calendar.DAY_OF_YEAR) - calStart.get(Calendar.DAY_OF_YEAR);
                   else if ((calEnd.get(Calendar.YEAR) - calStart.get(Calendar.YEAR)) == 1)
                             int daysEndYear = calEnd.get(Calendar.DAY_OF_YEAR);
                             int daysStartYear = calStart.getActualMaximum(Calendar.DAY_OF_YEAR) - calStart.get(Calendar.DAY_OF_YEAR);
                             return daysEndYear + daysStartYear;
                        else
                                  int startYear = calStart.get(Calendar.YEAR);
                                  int endYear = calEnd.get(Calendar.YEAR);
                                  GregorianCalendar cal = new GregorianCalendar();
                                  int days = 0;
                                  for (int i = startYear + 1; i < endYear; i++)
                                                 cal.set(Calendar.YEAR, i);
                                                 days += cal.getActualMaximum(Calendar.DAY_OF_YEAR);
                                                 days += calEnd.get(Calendar.DAY_OF_YEAR);
                                                 days += (calStart.getActualMaximum(Calendar.DAY_OF_YEAR) - calStart.get(Calendar.DAY_OF_YEAR));
                                  return days;
         catch (Exception e)
         return -1;
        //@@end
    public void calFixedPrice( )
        //@@begin calFixedPrice()
                 int max = wdContext.nodeZs_Wcontract_Quantity_Input().nodeOutput_Contract_Qty().size();
              //wdContext.currentContextElement().setCFlag("Srikant");
                  for (int fixedCounter = 0; fixedCounter<max; fixedCounter++)
                  Date presentDate = Calendar.getInstance().getTime();
                   Date givenDate = wdContext.nodeZs_Wcontract_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Schedule_Lines().getLi_Schedule_LinesElementAt(fixedCounter).getSchddt();
                      //Conversion of the Dates in String
                           String PresentDate = presentDate.toString();
                           String GivenDate = givenDate.toString();
                      //Calculation of no. of days
                           int numDays = daysDifference(PresentDate,GivenDate);
                           double Days = numDays;
                      //Getting the Values of Current Price for the Day and Fixed Price Factor based on that
                              double quotedPrice = (wdContext.nodeZs_Wcontract_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Post_Id_Price().getLi_Post_Id_PriceElementAt(fixedCounter).getPrice().doubleValue());
                           double fixedPriceFactor = (wdContext.nodeZs_Wcontract_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Fixed_Factor().getLi_Fixed_FactorElementAt(fixedCounter).getFixfactor().doubleValue());
                        //wdContext.currentContextElement().setCTest(fixedPriceFactor);
                      //Calcualtion of Fixed Price
                           double FixedPrice = (quotedPrice + (fixedPriceFactor * Days));
        //@@end
    I'm not able find out where to use these methods and how to call them
    Please help me on this, its urgent
    Thanks in advance
    Srikant

  • Report totals with dimension hierarchy column on pivot table incorrect

    Hi,
    I have a pivot table based report that has one dimension column, a dimension hierarchy column and various measures.
    The row totals do not match, detail to total, and I have tried both complex server based aggregate and report based aggregation, but neither are giving me the correct answer.
    I have also tried adding the column that is the same as the top level as the hierarchy, but hidden, but this does not help.
    I have also tried adding the lowest level of detail column, but hidden, but this does not give me the solution I need as all of the figures then appear at detail not aggregated level.
    Any ideas please?
    thanks,
    Robert.

    Can you validate the query hitting to the database and compare the results?
    Mark if helps.
    Thanks,

Maybe you are looking for

  • Macbook and Macbook Pro Power Adapters

    Is it safe to use a Macbook Pro power adapter in a Macbook and vice versa? I have just noticed that the MBP's adapter is 85 watts and the MB's is 60 watts. I hadn't realised they were different. My wife and I share each others adapters all the time (

  • My ipod 6th generation doesnt seem to be working properly. what can I do?

    When I connect my iPod to my computer all my music is there and I am able to play them with no complications but the screen doesn't display anything. Its been like this for over four weeks now and I am unable to use it. I've tried the down button and

  • Before i install i would like a couplle of questions answered

    first off, i am glad to be a part of this forum, i signed up and hope i can learn a couple of things about linux here i have a couple of questions about linux in general before install 1) i have an old laptop with windows 7 currently installed, can i

  • Real Cost from WBS to Activity

    Hi, We are entering hours using Acct Assgt to a WBS elements by CAT2. I guess that some settlement or distribution process exists in order to allocate these costs to activities? Could anybody enlighten me or just give me a hint of how it works? Thank

  • Adobe download assistant - stuck!

    trying to download the photoshop cs5 trial and need to (of course) download the adobe download assistant first, however, its downloading fine but once it has been opened and the loading bar has came up as if it has been installs, nothing happens afte