Can I use a Sum Calculation accross dynamically added rows?

Well I have a working script that can add/delete extra rows to a table.
And I have a working script that can calculate the sum of the columns.
But when I put them together, the add row function stops working.
Is there a way to reconcile the two?
See attached example. It's actually not a real table, but subforms mimicking one.

You keep making the same mistake. You cannot just copy the code from one form to another. Each form has a different structure and the code is showing the path to the object. Have a look at the HIerarchy view and see how to get to the object that you want from the root node. I have updated your sample to show this.
Paul

Similar Messages

  • Reading the Data from dynamically added rows of a table...

    Hi,
                  I am using adobe interactive form (WD ABAP) in which i am adding the table rows dynamically (using Jscript code).  I have to fech these data into an internal table. But I can read only the first row data..
                  Also While adding rows dynamically the same data is repeating for the consecutive rows..
                  I have found many similar posts in sdn, but i cannot get the solution. They have mentioned about adding in WDDOINIT method. Can anyone explain me what should be done,..?
    1) How to solve repeatative data while adding rows..?
    2) How to read dynamically added row data during runtime into internal table..?
    Thanks,
    Surya.

    Discussed @ SDN lot of time before. Have a look at any of below threads:-
    Dynamic table in interactive form...
    Make dynamic tables in Adobe Interactive forms
    Adding Rows dynamically upon clicking the button
    How to get values to WebDynpro ABAP from dynamic table?
    Chintan

  • Add null rows in WDDOINIT  for fetching data from dynamically added rows..

    Hi,,
    I have to fetch data from a dynamically added rows of a table.
    I have followed / gone through many forums but they ddnot mention how to add null rows in the initialization method..
    I am using WD Abap..
    Can anyone help how to bind null rows in WDDOINIT method..?
    Thanks,
    Surya

    Discussed @ SDN lot of time before. Have a look at any of below threads:-
    Dynamic table in interactive form...
    Make dynamic tables in Adobe Interactive forms
    Adding Rows dynamically upon clicking the button
    How to get values to WebDynpro ABAP from dynamic table?
    Chintan

  • [tools help] what tool can be used for moving file?and table row updating?

    I need some help to know which tool can help me in the following task:
    #1 Moving of file
    situation : After extraction of a file , the file is moved to another directory.
    #2 SQL updating
    Situation : which tool in mapping can be used to update existing record / perform sql
    such as UPDATE SET VALUE TABLE WHERE .... or DELETE...

    I need some help to know which tool can help me in the following task:
    #1 Moving of file
    situation : After extraction of a file , the file is moved to another directory.You can move the file using oracle UTL_FILE Package Seach the net with this Key word and create procedure/ function in oracle test it in Database .Once everything is perfect then call the procedure/function form OWB
    #2 SQL updating
    Situation : which tool in mapping can be used to update existing record / perform sql
    such as UPDATE SET VALUE TABLE WHERE .... or DELETE...Set the Load properties of the target table as Update or Delete

  • Design problem with dynamically added row in datatable

    Hello all,
    I have a dataTable and have developped a method that dynamically adds rows to the dataTable. Each row is made up of two form controls. The problem I have now is that I don't know how to retrieve the values from the mutiple rows. Ideally I would need the values to be stored into a list.
    Can anyone help?
    Thanks in advance,
    Julien.
    Here is my code:
    <h:dataTable var="line" binding="#{TradeClientsAndQuantitiesBean.clientsAndQuantities}"  value="#{TradeClientsAndQuantitiesBean.listOfMiddleFormHelpers}">
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="S�lectionnez un client"/>
                    </f:facet>
                    <h:selectOneMenu value="#{TradeClientsAndQuantitiesHelperBean.selectedClientTemp}">
                        <f:selectItems value="#{TradeClientsAndQuantitiesHelperBean.concatenatedLabelMap}"/>
                    </h:selectOneMenu>
                </h:column>   
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Renseignez une quantit�"/>
                    </f:facet>
                    <h:inputText value=""/>
                </h:column>   
            </h:dataTable>

    The values will just be put in the same row object you added to TradeClientsAndQuantitiesBean.listOfMiddleFormHelpers.
    It might be worth to read this article: http://balusc.xs4all.nl/srv/dev-jep-dat.html

  • Using a "Sum" Calculated Field on a "Count" query column?

    Here's my query using the Query Report Builder:
    SELECT Col1, COUNT(Col1) AS Count_Column
    FROM Table
    GROUP BY Col1
    It generates a report that lists all the values of column
    "Col1" and how many times each value was used in Col1
    For instance, if Col1 contained the value 'A' 12 times, 'B' 6
    times, and 'C' 19 times, the report would generate this:
    A - 12
    B - 6
    C - 19
    What i need as a column footer is the total count of all the
    values, which in this case 12+6+19=37
    I am using a calculated field, setting the data type to
    Double, the calcuation to Sum, and the perform calculation on to
    'query.Count_Column'. Reset Field When is set to None.
    When I run the report, it doubles the last number in the
    report's Count column (19) and displays 38 on the page. I tested
    this with another column and it doubled the last number in the
    report as well.
    How can I get it to properly Sum my Count_Column?

    Hi,
    You need to check note 208366.1 which explains why totals can be blank. Without knowing the detail of you decode function it is hard to say what needs to be changed. Try putting a sum in front of the decode e.g.
    sum(decode(period, 'Jan period', value, 0))
    Hope that helps,
    Rod West

  • How can I calculate the sum of the first two rows in a table?

    I have a table with a repeating row that, when data is merged, always has three rows:
    Support type 1
    1,234,456
    Support type 2
    221,556
    Interest
    11.222
    I have a field where I want to show the sum of Support types 1 and 2.
    I do not want to add the interest to this.
    I'm using FormCalc with the following script on the calculate event of the Total field, which is in the same subform but not in the table:
    data.JP_Page1.subform_Hidden.sub_SupportTotals.NumericField1::calculate - (FormCalc, client)
    $.rawValue = Sum(subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[0].SUBTOTAL,  subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[1].SUBTOTAL)
    I've tried this using both decimal and numeric field types, neither work.
    I feel like I must be hitting a syntax issue, but the code checker isn't exposing it.
    Can anyone help me figure out what is wrong with my script?
    Thanks!
    Janet

    You don't need to do Sum for this, you should use Sum for all rows purpose only..
    $.rawValue = subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[0]. SUBTOTAL +  subform_Hidden.sub_SupportTotals.tbl_SupportSubtotals.DataRow[1].SUBT OTAL

  • Can i use office web app server without adding to a domain ?

    spserver.local is my domain controller webapp.spsserver.local is my office web app server(OWA)(IP:79.123.161.xxx )
    I manage to use office web app with sharepoint 2013 my OWA is in a domain (spserver.local) and it's address is http://webapp.spserver.local/hosting/discovery There
    is no problem. But I want to seperate OWA with Sharepoint and its domain I want to remove the domain.Is it possible?
    For example my OWA's ip is 79.123.161.xxx
    I want to work like this: http://79.123.161.xxx/hosting/discovery
    When I enter the path http://79.123.161.xxx/hosting/discovery there
    is an iis message "File or directory not found."

    Are you asking if you can have your OWA in different domain compared to SharePoint server domain or are you asking that your OWA does not belong to any domain and you still want to use it with SharePoint?
    If your question is regarding using OWA in different domain then I think (someone can correct me if I am wrong) OWA can run into different domain. You just need to add your SharePoint Server host domain to the Allow List for an Office Web Apps Server farm.
    http://technet.microsoft.com/en-us/library/jj219459.aspx
    If your question is related to OWA not belonging to any domain then I do not think that will work and its not supported scenario. If you read the following article it states
    "All servers in the Office Web Apps Server farm must be part of a domain. They can be in the same domain (recommended) or in domains that are in the same forest. However, Office Web Apps Server won’t work if you try to install it on a domain controller."
    http://technet.microsoft.com/en-us/library/jj219435.aspx
    Amit

  • Can I use action build to fade one table row as I move to the next row in the table?

    I have built a table with 6 rows.  Right now,I am building the table row by row when I play the slide. Is there a way to fade or dissolve one row when I move to the next row in the table? I want to be able to de-emphasize the row I just discussed when I move to the next row in the table. I can fade the entire table by invoking that action but I do not seem to be able to use this action one row at a time. Thanks for your comments and assistance.

    you will have to use a workaround to get the exact effect you described
    create a table with out any text
    use text tool to add text and position in each table cell
    select the text boxes( command click) in the first row and group them (arrange > group)
    use a, build in, to display text and then a, build out, to remove it
    repeat the above for the other rows

  • Can't use repeat region with more than 35 rows

    Using ASP and Access Database, I am retrieving a number from a field in an access database to display a number of rows in a table using repeat region, if the number returned is more than 35 my page won't load. Any ideas?
    Thanks
    Bruce

    I havn't used ASP in about 10 years but what kind of error comes up? Or is the page just blank?
    Brad Lawryk
    Adobe Community Professional: Dreamweaver
    Northern British Columbia Adobe Usergroup: Manager
    Thompson Rivers University: Dreamweaver Instructor
    My Adobe Blog: http://blog.lawryk.com

  • How to use CHARS in Calculation in BEX Report

    Hi,
    Two chars withy data type TIMS in my Cube
    Open Time & Close Time
    My requirement is to calculate NO of Hours worked which is Close Time – Open Time
    But as they are Chars How can I use them in Calculation.
    Thanks

    Hi Bhanu,
    I created Formula variables and used them in calculations but it is not working as desered.
    Lets Take this scenario
    Open Time (Char-TIMS) value in Cube : 08:30:00
    Closed Time (Char-TIMS) value in Cube : 10:00:00
    The store is opened at 08:30 and Closed at 10:00 so the result expected by calculation WORKED HOURS :1.5 Hrs
    But When i converted open time char to formula variable  it is converting 08:30:00 to 83000 and Closed time 10:00:00 to 100000 and result of cal is 170000
    Please advise me on how to proceed
    Thanks

  • Need Help Can i use Merge command along with exist function in oracle?

    I am using Merge command to update the destination table and updating the rows which are already in the destination table.
    But what i want is to delete the existing rows from the destination table and insert fresh rows instead of updating the existing rows in the destination table.
    So can we use exist function to check the existing rows and delete them and use merge command to insert the rows in the table.

    You definitely need to do a DELETE then INSERT since MERGE will not delete rows, although I'm not really sure what that gets you since the net effect would be the same as a MERGE over the same pair of tables.
    If you really want to do it this way, then I would likely do something like:
    DELETE FROM target_table
    WHERE (columns_you_would_match_on) IN (SELECT columns_you_would_match_on
                                           FROM source_table
                                           WHERE predicate_you_would_use_in_using);
    INSERT INTO target_table (column_list)
    SELECT column_list
    FROM source_table
    WHERE predicate_you_would_use_in_using;John

  • Can I use static variable in EJB?

    Many books suggest developer don't use static variable in EJB,I want to know why?
    I know there isn't any problem if the static varibale is read only
    For writable static varible ,what will happen if I use a static Hashtable for share data
    Help me!Thank you very much!!

    Greetings,
    I know that "EJB business methods are not allowed to
    block on synchronized resources" Just where do you "know" that from?? The EJB 2.0 Specification, at least, is nowhere in agrement with this statement. If it comes from a book I would question the author's reasoning. Contractually, there's no sound basis for this. In the case of Session Beans, they have an expressedly direct and single-threaded association with a client. From a design viewpoint, it certainly seems unnecessary for a bean to "block" its one-and-only client, but to say that it "is not allowed to" do so is without merit. Entity Beans, on the other hand, are concurrently accessible. Yet, with regard to a transactional context being in effect, the container does indeed block on a bean's business methods. For the bean to do so itself is, therefore, unnecessary. Furthermore, the specification explicitly concedes that a "Bean Provider is typically an application domain expert" and "is not required to be an expert at system-level programming." (EJB 2.0 Spec. 3.1.1) From these statements alone it is reasonable to assume the above statement is meritless since the Bean Provider is not expected to even consider synchronization issues when developing a bean.
    But I'm mixed up why we could use "Hashtable" or otherApparently, because your sources are as well...
    collection classes in the EJB ,in these method many
    methods are synchronized In fact, not only "can we use" them but, with respect to multiple-row finders in Entity Beans we are [i]required to use them (or an iteration of them)! Not all Collection classes are synchronized (so called "heavy-weight collections"). As shown above, that the choice of a particular Collection class might be synchronized is of little consequence since a bean designed under strict adherence to the specification ensures that it is never concurrently writeable.
    Could someone provide a good way for this problem?
    Please Help Me!!!Regards,
    Tony "Vee Schade" Cook

  • Can you use time capsule without leopard?

    I just wanted to know if time capsule can be used to back up etc without adding leopard?
    I'm using the last Tiger update and am reluctant to buy leopard osx if i don't have to as i like tiger.
    Lee

    im running Tiger and i want to purchase Time Capsule. i dont really care about using Time Machine or not, and dont want to update to Leopard at the moment. from what i've read here, i can still use Time Capsule, but does this mean the only way i can back-up is wirelessly? or does Time Capsule have a hard line option to connect my MacBook directly to it using a cable?

  • How can I have mutiple bookmarks toolbars? Not multiple row. Multiple toolbars. With different names.

    I just want multiple bookmark toolbars.
    Right click the ui, choose a toolbar (e.g. "Work", "Visuals") etc.
    That's it.
    Not multiple rows.
    Thanks.

    That is not possible.
    Firefox only has one Bookmarks Toolbar item that can hold the bookmarks.
    So you can only use an extension that supports multiple bookmarks rows to add an extra row if the current last one gets filled up.
    The best workaround is probably to create bookmarks folders on the bookmarks toolbar and open those to access each category.
    *https://support.mozilla.org/kb/Bookmark+folders

Maybe you are looking for

  • Can I create a fillable form in Pages and then PDF to iWeb?

    I'm a teacher and I'd like to be able to upload some PDF documents for my students to download, but would LOVE it if I could make sections of the document available for them to fill out answers, so they could, in turn, save as PDF and send back to me

  • IPhone 3G in a coma state though I was using iOS4 for a while.

    iPhone 3G in a coma state though I was using iOS4 for a while (until today that is). Now "restored" to iOS4.2. The problem still persists. When it's plugged into PC and charging, pressing Power / Home button always wakes iPhone from lock / sleep. Whe

  • Working of pga

    hi please tell me the internally working of pga ..im confused how it is work... working of PMON.. which type of lock release by pmon and how the lock held...

  • OBIEE 11.1.1.3.0 integrated with Oracle EBS R12

    Hi, I have Oracle EBS Vision Instance v R12.1 installed on Redhat 5 and wanted to install OBIEE latest version. Can some please point to system architecture diagram as i am conflicted with installation. I do not have complete idea but writing here wh

  • Adobe Acrobat: updates beyond 6.02 don't install

    At some point Adobe Acrobat 6.02 Professional started taking 5 minutes to start. Maybe this was when I updated to Tiger, I'm not sure. It sits there and queries the Adobe website for updates, then tells me it's updated and I have to restart the compu