Add total row with a webservice

Hi there,
Im trying to update a list view to add the totals to a column subtotal. Im following the instructions given on
Webservice Page
When check the response of the webservice I'm not seeing the aggregation response and the total row is not being added. When I add or remove columns through this webservice it does work. Has anyone experiencing the same issue or knows how
to solve this ? 
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateView xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>User1</listName>
<viewName>{LIST VIEW GUID}</viewName>
<viewProperties/>
<query/>
<viewFields/>
<Aggregations Value="On">
<FieldRef Name="subtotal" Type="Sum"/>
</Aggregations>
<formats/>
<rowLimit/>
</UpdateView>
</soap:Body>
</soap:Envelope>

Hi,
Is this “subtotal” a valid field name and the type of this column is “Number”?
Also, please add this column into the <viewFields/> and do the test again.
Feel free to reply with the test result if the issue still exists.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support

Similar Messages

  • Having trouble with report total row with expression based condition

    Hi,
    I have a simple SQL region that has 2 columns (country and pnl). I then had a request to display negative PNL in red. To do this I copied the Standard Alternating Row Colors report Template and changed the condition so that it uses one class (named "t16data") with a PL/SQL Expression condition NVL(#PNL#,0)<0
    Then, in the referencing page HTML header I added :
    <style>td.t16data{color:red} </style>
    For normal data rows it works fine. However, I also have a sum on PNL and the total row always shows red (even when it's a positive number).
    Any idea? Do I need to provide more information?
    Thanks

    My question about this is the other Dynamic VPN that is working has no static route.
    I added:
    route outside 10.10.10.0 255.255.255.248 xxx.xxx.xxx.xxx (where xxx.xxx.xxx.xxx is the IP of the non working remote IKE Peer)
    This had no effect.
    Looking at the two tunnels.  The working tunnel is using IKE IPSEC and the nonworking tunnel is using IKE IPsecOverNatT.  What have I entered that tells the VPN to use IPsecOverNatT?

  • Add more rows with LOV

    I have an LOV based on a VO containing on transient attributes.
    The LOV has 3 return items, 1 is the item the LOV is attached to, the second is a messageStyledText field and the thirds is a formValue.
    When I click on Add more rows (above fields are the sole fields in a classic table) I get a new row, however the value in the messageStyledText is not retained.
    I was planning on storing the same value as the messageStyledText in a formValue and perhaps grabbing the addRows event and setting the values to be the same. Now I have not quite got this working yet.
    So the question is - is this the right approach and if so any pointers?
    If I continue to add rows will I have to continually look through the VO and re-map the formValue back to the messageStyledText?

    Thanks sumit
    This works perfectly. The issue I had was the formValue and messageStyledText were associated with different VO attributes. I was therefore catching the addRows event and setting the attribute manually.
    Thanks a lot

  • Alv add new row with counter

    Hello.
    I would like to add a new row to an ALV GRID CONTROL in which one of the fields is a counter. Which methods, codes have I to change/write?
    For example:
    ALV
    COUNTER FLIGHT DESTINATION
    1     1234  CDG
    2     3443  SVQ
    On adding a new row :
    COUNTER FLIGHT DESTINATION
    1     1234  CDG
    2     3443  SVQ
    3
    Thanks in advance!!!

    There are two options.
    1.  Use the data_changed event to put in the values.
    - Enable edit mode for the grid, so the row create/insert/copy icons appear on the toolbar. 
    - Create an event handler for the DATA_CHANGED event
    - In this method, use attribute table er_data_changed->MT_INSERTED_ROWS to check for new rows, and then er_data_changed->modify_cell to put in the line number.
    The problem is that if your counter field is set as non-editable, then you cannot put a value in...
    2.  implement your own add function.
    - Add a button to the toolbar (implement methiod for event handle_toolbar)
    - Create an event handler for event handle_user_command.
    - In the handler method, add a row to the outtab table used by the grid (with the correct line number).
    - CALL METHOD gr_grid->refresh_table_display to update the display with the additional line.
    Regards
    Michael

  • To add new row with the checkbox selected ....

    Hi All,
    In my project I have to create a table with 2 columns, 1 column is checkbox and other column is String type. In the same JFrame one textarea and one add button should be there. When we type text in the textarea and click add button, it should add a new row in the table with the checkbox selected and the 2nd column containing the text.
    I want to use AbstractTableModel.
    Please help me to solve this issue. If you have sample code that will be more helpful.
    Thank you,
    Regards,
    mkumar

    It would be better if you extend from DefaultTableModel rather than from Abstract Table Model. That is because DefaultTableModel provides functionality to add a row. In fact, you can directly use DefaultTableModel .
    In the button's action performed,
    public void actionPerformed(ActionEvent e)
      if(e.getSource() == bAdd)
        Vector newRow = new Vector(2);
        newRow.add(new Boolean(Boolean.TRUE));
        newRow.add(" ");
        DefaultTableModel dm = (DefaultTableModel)yourTable.getModel();
        dm.addRow(newRow);
    }Note : For the above code, Initialize the JTable with a DefaultTableModel parameter than directly with Vectors/ Arrays.
    This is because when we try to cast from TableModel to DefaultTableModel as in the above code, there is a possibility of an
    Exception if the Table is not initialized without a model.
    For the CheckBox in the first column, you need to set an editor and a renderer so that you can manipulate and see your boolean values as the state of the check boxes.
      JCheckBox b = new JCheckBox();
      DefaultTableCellRenderer dr = new DefaultTableCellRenderer(b);
      DefaultTableCellEditor de = new DefaultTableCellEditor(b);
      yourTable.getColumnModel().getColumn(0).setCellEditor(de);
      yourTable.getColumnModel().getColumn(0).setCellRenderer(dr);That should do it !
    Cheers

  • Total Rows with VC?

    Is there a way to provide a total row in a table in VC?  I'm retrieving a set of financial data via a remote-enabled function module, and I'd like to total it up at the bottom of the table.  How do I accomplish this?  Is it possible to do in VC without having to edit the function module?
    Thanks,
    Dan

    Hi Daniel
    Please go through the following links:-
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63c3108a-0d01-0010-76bb-f981f0701cd1 
    Possible to cumulate values in a table?
    http://help.sap.com/saphelp_nw04/helpdata/en/03/5f8340d990ce62e10000000a155106/frameset.htm
    Message was edited by:
            Navneet Giria

  • Add multiple rows with add a row button

    Not sure of how to add this to my script, but my dilemma is I would like to add the row above in addition to the current row.
    Right now the script in the "add row" button is:
    Table1._Week.addInstance(0);
    the row above is Table1._Above
    How do I go about adding the row above to the script?
    Thanks

    You can access the instance manager of any Row from anywhere in the form..
    So you can write script by being in the Week Row to add a new row for Above row.
    In your click event you can write like this..
    Table1._Above.addInstance(0);
    Thanks
    Srini

  • How can I add a row into a JTable with JButton

    Hi all. I have the following code:
    package gui;
    import db.*;
    import javax.swing.table.AbstractTableModel;
    import java.util.ArrayList;
    public class FoundersTable extends AbstractTableModel{
        private static final int COLUMNS = 8;
        private String columnNames[] = {"��� ����", "���", "�������", "�������", "���������", "��������",
                "����� �� ����������", "������ �� ����, �����"};
        private ArrayList data;
        public FoundersTable(){
            data = new ArrayList();
        public int getRowCount() {
            return data.size();
        public int getColumnCount() {
            return columnNames.length;
        public String getColumnName(int colIndex) {
            return columnNames[colIndex];
        public Object getValueAt(int rowIndex, int columnIndex) {
            return ((ArrayList)data.get(rowIndex)).get(columnIndex);
        public void setValueAt(Object value, int rowIndex, int columnIndex) {
            ((ArrayList)data.get(rowIndex)).set(columnIndex, value);
            fireTableCellUpdated(rowIndex, columnIndex);
        public void addRow(ArrayList neueZeile) {
            data.add(neueZeile);
            int index = data.size() - 1;
            fireTableRowsInserted(index, index);
        public void removeRow(int index) {
            data.remove(index);
            fireTableRowsDeleted(index, index);
        public void removeAllRows() {
            data.clear();
            fireTableRowsDeleted(0, 0);
        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return true;
    }Now in my MainJFrame class I have one button for additing and one button for removing a selected row. How can I add/remove rows with this two buttons.
    Thanks

    No my question is how can I add and remove rows WITH buttons My point was the code is the same. You use the addRow(...) method. Why did you write an addRow(...) method if you aren't going to use it?
    I don't understand your problem. Do you not know how to write an ActionListener?

  • How to Add a Row by clicking in other different Region

    Hello Im trying to build a page that allows me to add items to a region by clicking in a report region in the same page.
    I created a Report Region with my information , It has a link and one image in the region 1.
    in other region(REgion 2) I have a tabular form from one table,
    the idea is , how to Add rows to the tabular form(REgion 2) clicking items from the reports region (Region 1)the item could be the image or the link.
    I tried with Addrow javaScrip, on my image as a link or even my link, and it worked ,but it works just adding an empty row and i need to add a row with information of the report region (Region 2) for example ID_product.
    so this is other question how to use Addrow javascrip , including data in the row automaticly .
    Well this is what i have been trying ,I don't know if this is the correct way to do it , or if the best way.
    Maybe there is another method , like ajax or something
    Please any advice will be appreciated.

    Hello Im trying to build a page that allows me to add items to a region by clicking in a report region in the same page.
    I created a Report Region with my information , It has a link and one image in the region 1.
    in other region(REgion 2) I have a tabular form from one table,
    the idea is , how to Add rows to the tabular form(REgion 2) clicking items from the reports region (Region 1)the item could be the image or the link.
    I tried with Addrow javaScrip, on my image as a link or even my link, and it worked ,but it works just adding an empty row and i need to add a row with information of the report region (Region 2) for example ID_product.
    so this is other question how to use Addrow javascrip , including data in the row automaticly .
    Well this is what i have been trying ,I don't know if this is the correct way to do it , or if the best way.
    Maybe there is another method , like ajax or something
    Please any advice will be appreciated.

  • Results (totals) row in spry datasets

    Hi everybody.
    I spent a lot of time on the problem how to get row with
    result of the spry dataset.
    And I found it:
    Javascript code:
    // This is our dataset
    var dsSpecials = new Spry.Data.JSONDataSet("paysdata.cfm",
    {path:"rows"});
    // This is dataset for results
    var dsSums = new Spry.Data.JSONDataSet();
    // Loading empty array to results
    dsSums.loadDataIntoDataSet("[]");
    var myObserver = new Object;
    // Calculate function will run each time when data will
    change
    myObserver.onDataChanged = function(dataSet, data) {
    calcTotals(); }
    dsSpecials.addObserver(myObserver);
    var calcTotals = function() {
    var tsums = [];
    var rows = dsSpecials.data;
    // ... here you calculate what you need...
    dsSums.loadDataIntoDataSet(Spry.Utils.serializeObject(tsums));
    And now, the final part - HTML code:
    <div spry:region="dsSpecials dsSums"
    class="SpryHiddenRegion">
    <table>
    <tr spry:repeat="dsSpecials">
    </tr>
    <tr spry:repeat="dsSums">
    </tr>
    </table>
    </div>

    Loveanie wrote:
    > There seems to have a bug in the final release of DW CS4
    that wasn't there in
    > the Beta version: when we create an html Spry dataset
    and we check the
    > "Advanced data selection" option, DW automatically adds
    a row with column0,
    > column1, and so on. This row doesn't do anything good
    It identifies the column. In Step 2, you can select each
    column and
    change its name in the Column Name field at the top of the
    wizard.
    Without a column name, the Spry data set has no way of
    identifying the
    data you want to display.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Sharepoint Export API - Returning rows with a starting row beyond 5000

    Until this last week I have been using looping REST connector logic to extract all of our customers Sharepoint data through the Export API. I was doing this by incrementing the starting row for each call by 500 with a row limit of 500 for each call. I kept
    doing this until the greatest returned row was equal to the total rows with duplicates. This ran in a deployed/automated fashion for the last two weeks. At the start of this week our customer noticed that we were only receiving roughly the number of unique
    customers (~4.9k) rather than the entire dataset (~27k). When I attempt to manually pull data from any point beyond a row count of 5000 I receive zero rows back. 
    Has something changed with the API recently that would cause this to happen? If not with the API, could a change in permission levels/setting cause this?
    Thank you for your time,
    Bryan

    Hi Martin,
    Sorry for the late...very late reply, no I didn´t solved it and now we really need to get this issue sorted out. Since last time I have installed a new DPM 2012 R2 server for the customer, and the exact same error still occurs :(
    So my question in return, have you solved it yet ?
    If so, it would be great if you can reply with the solution.
    If not, MS please advise A.S.A.P
    Thx /Tony

  • Add/Delete Rows problem

    I'm having a problem with the add row and delete row for my table.  I have a table set up with the add row button in the header, and the delete row button in the first cell of the row beneath the header.  I have it set so that the initial count of the row is 2.  My problem is if the user adds several rows with data, and save the form.  When that user goes back into the same form later, it keeps the several rows that the user entered, which is fine, but then it automatically adds 3 more blank rows to the table, which I don't want.  I don't understand why it is doing this.  Does anyone have a clue to why this is happening?
    Thanks
    Connie

    Hi Connie,
    Just make sure that you have checked the below thing.\
    File > Form Properties > Run tIme > Scripting > Automatically is checked.
    Thanks,
    Bibhu.

  • Total Rows incorrect for REST Search webservice in Sharepoint 2013

    Hi,
    I am using Sharepoint 2013 REST webservice in Javascript to fetch search results:
    <a href="https:///_api/search/query?querytext='<text>'&startrow=0">https://<server>/_api/search/query?querytext='<text>'&startrow=0
    I am passing the startrow value fetching records in set of 10.
    The value that I recieve for TotalRows in the response is different when I query with startrow=0 ans startrow=10 etc.
    Please suggest a possible solution to this issue as I need to display total rows as count of search results.
    Regards,
    Molshree

    The total rows tend to be estimated in small result sets like that. This is behavior that you rally can't do anything about.
    Corey Roth - SharePoint Server MVP blog:
    www.dotnetmafia.com twitter: @coreyroth |
    SP2 Apps

  • Add a row after Total row in ALV report

    Hi Experts,
    I have a report is displayed by  ALV format(not use function module to display it but use Class cl_gui_custom_container),I want to add a row after the total row. for example,
    Customer   amount1    amount2    amount3 
    10000         1,234        1,000         2,000
    10001         4,000        2,000         1,000
    10002         1,300        1,000         3,000
    11000         1,200        4,000         3,000
         Total:     7,734        8,000         9,000
    Ratio%        31.27       32.34          36.39
    the row of 'Total' is calculated by fieldcat-do_sum = 'X' But after the Total row we need a Ratio row to display the ratio. Yes we can calculate the total amout and ratio and then append it into the output itab, but we don't like this solution.We want to keep the total function in the ALV report.Any experts can poit me a direction. Thanks in advance.
    Joe

    Djoe,
    First you need to handle the user command,in order to capture the button action. For this you need to implment a class, i  am attaching sample codes here
    In top include write the following code
    CLASS lcl_event_handler DEFINITION .
      PUBLIC SECTION .
        METHODS:
         handle_toolbar  FOR EVENT toolbar                   " To add new functional buttons to the ALV toolbar
                         OF        cl_gui_alv_grid
                         IMPORTING e_object,
         handle_user_command FOR EVENT user_command          " To implement user commands
                            OF cl_gui_alv_grid
                            IMPORTING e_ucomm .
      PRIVATE SECTION.
    ENDCLASS.                                               " Lcl_event_handler DEFINITION
    Now   <b>Class implementation</b>
    CLASS lcl_event_handler IMPLEMENTATION .
      METHOD handle_toolbar.                                " Handle Toolbar
        PERFORM f9500_handle_toolbar USING e_object.
    ENDMETHOD .                                            " Handle_toolbar
      METHOD handle_user_command .                          " Handle User Command
        PERFORM f9600_handle_user_command USING e_ucomm .
      ENDMETHOD.
    ENDCLASS .                                              " lcl_event_handler IMPLEMENTATION
    FORM f9600_handle_user_command USING p_e_ucomm TYPE sy-ucomm.
      CONSTANTS:c_newl(4) TYPE c
                          VALUE 'NEWL',               " New line
                c_copy(4) TYPE c
                          VALUE 'COPY',               " Copy
                c_corr(4) TYPE c
                          VALUE 'CORR'.               " Correction
      CASE p_e_ucomm .
        WHEN c_newl.
    Create a new line
          PERFORM f9610_insert_new_line.
    ENDFORM.                                          " f9600_handle_user_command
    FORM f9610_insert_new_line .
    *Data Declarations
      DATA: lt_rows     TYPE lvc_t_row,                 " Itab for row property
            ls_rows     TYPE lvc_s_row,                 " Work area for row
            lv_cntid    TYPE i.                         " Counter
      DATA: gv_index TYPE sy-index.
      CLEAR gs_last.
      CALL METHOD gr_alvgrid->get_selected_rows
        IMPORTING
          et_index_rows = lt_rows.
      READ TABLE lt_rows INTO ls_rows INDEX 1.
      IF sy-subrc EQ 0.
        gv_index = ls_rows-index + 1.
      ELSE.
        gv_index = 1.
      ENDIF.
      DESCRIBE TABLE gt_last LINES lv_cntid.
      lv_cntid = lv_cntid + 1.
      gs_last-cntid = lv_cntid.
      INSERT gs_last INTO gt_last INDEX gv_index.
      LOOP AT gt_last INTO gs_last FROM gv_index TO gv_index.
    Make the new line editable
        PERFORM f9611_style.
      ENDLOOP.
      CALL METHOD gr_alvgrid->refresh_table_display
        EXCEPTIONS
          finished = 1
          OTHERS   = 2.
    ENDFORM.                    " f9610_insert_new_line
    You can ask questions doubts if any!
    regards
    Antony Thomas

  • SSRS 2008 have 2 colums with amount needs to add Total cost and than total cost column divide by Total qty get avg

    SSRS 2008,  have this report
     Qty Column --------- Est cost column -----    Mark up Cost Column  -   Did add Total cost column
    4 pcs-                       $ 2000.00  --------------$  50.00 --------------- $ 2050.00
    Avg  Cost                                                                                      
    $2050/4=  512.50
    how to write this exp to get value $ 512.50 
    what I did , its not giving me correct result,
    =Sum(Fields!estCOSTAMOUNT.Value+Fields!COSTMARKUP.Value)/(Fields!QTY.Value)
    can some one please advise what I am doing wrong.
    thanks in advance

    I tried both exp, did not work
    may be I was not  clear in the question
    Qty Column --------- Est cost column -----    Mark up Cost Column  -   Did add Total cost column
    4 pcs-                       $ 2000.00  --------------$  50.00 --------------- $ 2050.00
    2 pcs ------------------$ 1500.00  --------------=$100.00 ----------------$1600.00
    Total   qty  6  pcs-----$ 3500.00------------------$150.00---------------$ 3650.00
    Avg  Cost                                                                                      
    $3650..00/6=  608.33
    my field name
    =Sum(Fields!COSTAMOUNT.Value)  +  want to add cost amount and Mark up and divide with qty total
    =Sum(Fields!COSTMARKUP.Value)
    =Sum(Fields!QTY.Value)
    please help how can I write it to get the result

Maybe you are looking for

  • I rented a movie but it wont play.  Getting error message to try again later.

    I rented a movie but cant get it to play on my apple tv.  Getting error message to try again later.

  • DBMS_XMLGEN not working for me

    I'm just starting with this, so I may be missing something. I have 9.2.0.1.0 installed on Linux Redhat. I'm trying to create an XML document by querying a table as described in the Oracle 9i XML Database Developer's Guide, pg 10-28. I'm querying a ve

  • I have a problem printing out my contact book.

    I have and iMac with Mountain Lion.  My pbroblem is printing out my contact book of 102 contacts.  The contact book is arranged alphabetically by last name, but when I print it, it is printed in a random order.  What is my problem and what shoulld I

  • "The Pure Networks Platform Service Is Not Running" every time I print

    I will be glad to follow-up with all the gory details about my system, but I thought I'd throw out a general question first.  I just installed a network printer to my NM Network.  It's a Lexmark 543dn connected via ethernet.  Everything prints just f

  • I can't purchase in iron force any help

    Hi,I make a purchase in iron force game with 99,99 usd it was successful directly I make the second purchase and I can't do it every time (sorry your purchase cannot be complet for more info go to apple/support,what should I do any help plzz???