Subtract calculation in an expanding table?

Hi
I am currently designing a form in Livecycle ES2 and am in need of calculation script.
I have an expanding table with add rows on it.
In the table i have a drop down list with 2 items that be can selected DR and CR, an Amount field and a total field.
Currently the Amount field and a totals field adds up correctly with this script Sum(Spersonaldetails2.Table1.Item[*].Amount)
However i now need the Totals field to calculate based on which item from the drop down is selected.
So if DR is selected i need it to add to the total and if CR is selected i need to subtract from the total.
One row could be a DR and the next row a CR.
I am unable to have the totals field subtract the Amount if CR is selected.
look forward to any help.  i have been wrecking my brain over this.

Hi,
A sumif equivalent in FormCalc could look like;
var totalRows = LoanProposal.Table1._Item.count
var groupTotal = 0
var list = ref(LoanProposal.Table1.resolveNodes("Item.[ItemName == ""Lodging""]"))
for i=0 upto list.length - 1 step 1 do
    groupTotal = groupTotal + list.item(i).Total
endfor
Note the totalRows variable is not used but is required so the calculate event knows to fire when a row is added or removed.
This would have to be repeated for each category so you might want to have a calculate event code at a higher level (like the LoanProposal subform) with some JavaScript code like;
// Reset all fields
xfa.host.resetData([Mileage.somExpression, Lodging.somExpression].join(","));
var rows = Table1.resolveNodes("Item[*]");
for (var i = 0; i < Table1._Item.count ; i++)
    var row = rows.item(i);
    switch (row.ItemName.rawValue)
        case "Mileage":
      Mileage.rawValue += row.Total.rawValue;
            break;
        case "Lodging":
      Lodging.rawValue += row.Total.rawValue;
            break;
I've only done the first two categories but you can see the pattern
Regards
Bruce

Similar Messages

  • Expanding table: Calculating difference to value from previous row

    Hi there,
    I am a complete newbie to LiveCycle Designer (ES2) and have created below document with an expanding table.
    Shared Files - Acrobat.com
    My aim is to make the form user friendly by adding a calculation in the field "Twist" which calculates the difference from the current row to the previous row.
    I have no idea about Java Script, I am afraid, and also don't know if this is possible at all so it's probably a bad idea after all.
    The reason for setting it up as an expanding table is so that the form can be used for all 32 instances the form would be used for (they would all require different amount of rows altogether).
    The calculation would start in row 2 (Checklist.Table1), take the twist value entered in row 2 and calculate the difference to the twist value entered in row 1.
    Then in row 3, it would calculate the difference between twist value in row 3 to row 2 etc.
    So subtract value of field in rown with value in rown-1 or something in this direction.
    Is there anyone at all who could help me with this at all?
    I'd be very grateful for any advice you could give me.
    Thanks a lot!
    Mathilda

    Not sure what happened with the formatting there, try this;
    if (Row1.index > 0 && !Row1.resolveNode("NumericField4[0]").isNull)
        var prevTwist = Table1.resolveNode("Row1[" + (Row1.index - 1) + "].NumericField4[0]").rawValue
        var result = Math.abs(3000 / (Row1.resolveNode("NumericField4[0]").rawValue - prevTwist));
       this.rawValue = result;
    else
        this.rawValue = "";

  • Expandable Table Need to Sum Different Cost Centers

    I am trying to complete a mileage reimbursement form. I think I have a good design (?) but I am missing a critical efficiency within the form. I want the form to be able to calculate the cost centers across the expandable table within the subform. I have a dropdown that has different cost centers. How would I be able to sum like cost centers within the expandable table? Can I populate another table with just the totals for a particular cost center by calculation? I would need this for all cost centers This would help out the accounting department as the mulitple cost centers would be added.
    My first page is expandable to accomodate multiple rows and has a page total and a grand total that floats if more rows are needed. My second page is more or less just for accounting I have a seperate table that right now is manually completed. The clerk has to printout the form and then manually add each cost center and then add it to the table on the second page.
    I have tried to just use a numeric field on the second page attempting to get the calculations based of the test entry in the cost center of Edit. It only places the data of the first entry and does not cycle through and capture all cost centers in the expandable table that are Edit. Any help in the code and ideas on how to present the total in a new table would be greatly appreciated.I am a beginner at this and am trying to learn and complete this on my own but I am not sure what to do. Attached is my form.
    http://aaa9.org/Updated%20Employee%20Mileage%20Expense%20Form.pdf

    The following JavaScript will loop through the table and total up according to what is selected in the dropdown list. Put it on the Calculate event of a numeric field.
    You'll need a separate field for each category and you'll need to update the rawValue test to the appropriate number for each field (I started with 2 because your first entry, which is 1 is blank). Depending where you put the fields you'll need to update the path to "Table1".
    var nTotal = 0;
    for (var i=0; i < Table1._Item.count; i++){
         if (xfa.resolveNode("Table1.Item[" + i + "].DropDownList2").rawValue == 2){
              nTotal ++;
    this.rawValue = nTotal;
    Couple of tips:
    You've got an extra subform on your "page 3", you've wrapped one subform with another which isn't needed.
    It's important to name your subforms, especially when scripting.

  • How can i pass calculated value to internal table

    Hi
    i have to pass calculated value into internal table
    below field are coming from database view and i' m passing view data into iznew1
    fields of iznew1
                 LIFNR  LIKE EKKO-LIFNR,
                 EBELN  LIKE EKKO-EBELN,
                 VGABE  LIKE EKBE-VGABE,
                 EBELP  LIKE EKBE-EBELP,
                 BELNR  LIKE EKBE-BELNR,
                 MATNR  LIKE EKPO-MATNR,
                 TXZ01  LIKE EKPO-TXZ01,
            PS_PSP_PNR  LIKE EKKN-PS_PSP_PNR,
                 KOSTL  LIKE EKKN-KOSTL,
                 NAME1  LIKE LFA1-NAME1,
                 NAME2  LIKE LFA1-NAME2,
                 WERKS  LIKE EKPO-WERKS,
                 NETWR  LIKE EKPO-NETWR,
                 KNUMV  LIKE EKKO-KNUMV,
                 GJAHR  LIKE EKBE-GJAHR,
    and now i want to pass
    one field ED1  which i has calculated separatly and i want to pass this value into iznew1
    but error is coming that iznew1 is a table with out header line  has no component like ED1.
    so how can i pass calculated value to internal table iznew1,

    When you declare your internal table , make an addtion occurs 0
    eg . data : begin of iznew occurs 0 ,
                    fields ...
       add the field here ed1.
               end of iznew.
    now when you are calculating the value of ed1,
    you can pass the corresponding value of  ed1 and modify table iznew.
    eg
    loop at iznew.
    iznew-ed1 = ed1.
    modify iznew.
    endloop.

  • Can you have a calculated column in a table not a view?

    We have a table which contains a series of rows
    Key   Effective Date   Value
    1       10/Feb/2006     123
    1       23/Oct/2006      456
    ...We have a requirement to store an indicator that tells us which row is the most current and what the end date of the preceding row was so that we get something along the lines of:
    Key   Effective Date   Value   Status         End Date
    1       10/Feb/2006     123      HISTORY    22/Oct/2006
    1       23/Oct/2006      456     CURRENT   NULL
    ...I can produce this result quite easily using the analytic function LEAD. My question is, is the answer to this problem to create a view over the table that includes the analytic function or is it possible to define a calculated column in a table that would populate/maintain this vale as part of a table definition?
    And as I finish writing this I feel I've answered my own question but hey, there's no harm in asking how others have handled this kind of situation.
    Cheers
    Richard

    My bias would be to create a view that did the calculation.
    In theory, you could add those additional columns to a table and maintain the data via a set of triggers, but that would be substantially more complicated than the alternatives for little or no benefit.
    A third option would be a materialized view. That might be easier to deal with if you want to have different indexing strategies for current and historical records or if the historical data is queried often enough and updated infrequently enough that it ends up being cheaper to do the calculation once during the update rather than every time the query is run.
    A fourth option would be to use stored procedures to maintain the data and have that stored procedure expire the current row and add the new row.
    Finally, you might consider version-enabling your table using Workspace Manager rather than writing your own code since Oracle has already written all this code for you.
    Justin

  • How to Show Total Calculation in Footer of Table

    Hi everyone, is it possible to show total calculation in footer of table in webdynpro ? For the calculation, I think i can handle it because many thread in forum and weblog discuss it but for show it in footer of table , i can't find.
    Display
    A
    B
    C
    D
    | ____Total | XX |  --> XX shows total calculation for column D
    If this is not possible, how to trick it ? Thank you
    null

    Hi,
    Even i had the same requirement once, but as this is not possible i.e displaying the total as the footeer of the table.
    the other option for this is to hav a seperate table below the main table & then displaying the total in that table.
    You can collect the value of each cell of column D in an integer variable at the time of displaying the data in the table.
    A | B | C | D |
    1
    2
    3
    for(int i = 0;i<node.lenght();i++)
    int tot = wdcontext.element
    now at the end you can create the element of the node & assign this variable "tot" to that element, then add teh element to the node
    Hope it helps you.
    Regards
    Jeet

  • Need to send text string to new row in expandable table

    I have a table that is a summary of other choices made throughout the document.  For specific check boxes in the form, there is a defined phrase that needs to be sent to a new row in the summary table.
    The general idea is that for checkbox:
    form1.sfMain.sfContent.tableC2.Row1.cbC2b6
    if (this.rawValue == "1") {
    this.resolveNode('form1.sfApp6.tableApp6A._Row1').addInstance(1);
    this.resolveNode("form1.sfApp6.tableApp6A.Row1[*].ddApp6A1c").rawValue = "Blue bottle";
    This needs to be something I can specify for each applicable checkbox (each will have a different text string), but I don't know what the final count is going to be (depends on choices made by the user) so I can't delete rows in the table and start over every time.  It needs to be additive.
    Any suggestions?
    Message was edited by: cyndilynnrose

    For anyone needing the same thing, I found exactly what I needed:
    http://www.truetechtroubleshooting.com/2012/02/advanced-expanding-tables-and-script.html
    The hardest part of getting it working was figuring out how many parent levels I needed to add since I have a heavily layered form.

  • Using ODBC how do you identify a calculated column in a table?

    I've a calculated column in my table. Is there a way to identify that column through ODBC functions? I need to identify the  calculated column and make it read only. The function should support both SQL and Access databases. Please let me know if
    there is a way to find out this column type.

    Hello,
    You can refer to the following article which list some ODBC Scalar Functions which you can used in the T-SQL query statement.For example
    SELECT {fn TRUNCATE( 100.123456, 4)};
    -- Returns 100.123400
    Reference:http://msdn.microsoft.com/en-us/library/bb630290.aspx
    As per my understanding, there is no built in declarative support for read-only columns. You can try to create a UPDATE trigger to achieving this. Or you can create a view with derived column  from the source table. And then users cannot
    update this calculated column on the view.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • SQL Developer hangs when expanding table node

    Hello All,
    One of my schemas has 3035 tables. When I expand the "Other Users" node, then the schema owner, then expand "Tables", SQL Developer hangs. I have allowed it to run (as it indicates it is working) for 45 minutes, but it never returns.
    I have one user with nearly the same behavior, but theirs returns after waiting 5 minutes.
    Any ideas?
    About
    Oracle SQL Developer 1.5.1
    Version 1.5.1
    Build MAIN-5440
    Copyright © 2005,2008 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.0.22.49.35
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.54.40
    Version
    Component     Version
    =========     =======
    Java(TM) Platform     1.5.0_06
    Oracle IDE     1.5.1.54.40
    Versioning Support     1.5.1.54.40
    Properties
    Name     Value
    ====     =====
    apple.laf.useScreenMenuBar     true
    awt.toolkit     sun.awt.windows.WToolkit
    class.load.environment     oracle.ide.boot.IdeClassLoadEnvironment
    class.load.log.level     CONFIG
    class.transfer     delegate
    com.apple.macos.smallTabs     true
    com.apple.mrj.application.apple.menu.about.name     "SQL_Developer"
    com.apple.mrj.application.growbox.intrudes     false
    file.encoding     Cp1252
    file.encoding.pkg     sun.io
    file.separator     \
    http.agent     Mozilla/5.0 (Java 1.5.0_06; Windows XP 5.1 x86; en_US) ICEbrowser/v6_1_3
    ice.browser.forcegc     false
    ice.pilots.html4.ignoreNonGenericFonts     true
    ice.pilots.html4.tileOptThreshold     0
    ide.AssertTracingDisabled     true
    ide.bootstrap.start     624463503772965
    ide.build     MAIN-5440
    ide.conf     C:\oracle\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname     C:\oracle\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.debugbuild     false
    ide.devbuild     false
    ide.extension.search.path     sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.firstrun     false
    ide.java.minversion     1.5.0
    ide.launcherProcessId     66660
    ide.main.class     oracle.ide.boot.IdeLauncher
    ide.patches.dir     ide/lib/patches
    ide.pref.dir     C:\Documents and Settings\ckell\Application Data\SQL Developer
    ide.pref.dir.base     C:\Documents and Settings\ckell\Application Data
    ide.product     oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation     C:\oracle\sqldeveloper\sqldeveloper.exe
    ide.splash.screen     splash.gif
    ide.startingArg0     C:\oracle\sqldeveloper\sqldeveloper.exe
    ide.startingcwd     C:\Oracle\sqlDeveloper
    ide.user.dir     C:\Documents and Settings\ckell\Application Data\SQL Developer
    ide.user.dir.var     IDE_USER_DIR
    ide.work.dir     q:\\SQL Developer
    ide.work.dir.base     q:\
    java.awt.graphicsenv     sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob     sun.awt.windows.WPrinterJob
    java.class.path     ..\..\ide\lib\ide-boot.jar
    java.class.version     49.0
    java.endorsed.dirs     C:\oracle\sqldeveloper\jdk\jre\lib\endorsed
    java.ext.dirs     C:\oracle\sqldeveloper\jdk\jre\lib\ext
    java.home     C:\oracle\sqldeveloper\jdk\jre
    java.io.tmpdir     c:\temp\
    java.library.path     C:\oracle\sqldeveloper;.;C:\WINDOWS\system32;C:\WINDOWS;C:\oracle\DevSuite\bin;C:\oracle\DevSuite\jdk\jre\bin\classic;C:\oracle\DevSuite\jdk\jre\bin;C:\oracle\DevSuite\jdk\jre\bin\client;C:\oracle\DevSuite\jlib;C:\oracle\DevSuite\jre\1.4.2\bin\client;C:\oracle\DevSuite\jre\1.4.2\bin;C:\Program Files\Java\jre1.6.0_03;C:\oracle\Client10g\bin;c:\oracle\10g\jdk\jre\bin\classic;c:\oracle\10g\jdk\jre\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\Novell\ZENworks\;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\Diskeeper Corporation\Diskeeper\;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\IDM Computer Solutions\UltraEdit-32\;C:\Program Files\CollabNet Subversion Server
    java.naming.factory.initial     oracle.javatools.jndi.LocalInitialContextFactory
    java.runtime.name     Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version     1.5.0_06-b05
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.5
    java.util.logging.config.file     logging.conf
    java.vendor     Sun Microsystems Inc.
    java.vendor.url     http://java.sun.com/
    java.vendor.url.bug     http://java.sun.com/cgi-bin/bugreport.cgi
    java.version     1.5.0_06
    java.vm.info     mixed mode
    java.vm.name     Java HotSpot(TM) Client VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Sun Microsystems Inc.
    java.vm.version     1.5.0_06-b05
    jdbc.library     /C:/oracle/sqldeveloper/jdbc/lib/ojdbc5.jar
    line.separator     \r\n
    oracle.home     C:\oracle\sqldeveloper
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG     true
    oracle.translated.locales     de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
    oracle.xdkjava.compatibility.version     9.0.4
    orai18n.library     /C:/oracle/sqldeveloper/jlib/orai18n.jar
    os.arch     x86
    os.name     Windows XP
    os.version     5.1
    path.separator     ;
    reserved_filenames     con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    sun.arch.data.model     32
    sun.boot.class.path     C:\oracle\sqldeveloper\jdk\jre\lib\rt.jar;C:\oracle\sqldeveloper\jdk\jre\lib\i18n.jar;C:\oracle\sqldeveloper\jdk\jre\lib\sunrsasign.jar;C:\oracle\sqldeveloper\jdk\jre\lib\jsse.jar;C:\oracle\sqldeveloper\jdk\jre\lib\jce.jar;C:\oracle\sqldeveloper\jdk\jre\lib\charsets.jar;C:\oracle\sqldeveloper\jdk\jre\classes
    sun.boot.library.path     C:\oracle\sqldeveloper\jdk\jre\bin
    sun.cpu.endian     little
    sun.cpu.isalist     
    sun.desktop     windows
    sun.io.unicode.encoding     UnicodeLittle
    sun.java2d.ddoffscreen     false
    sun.jnu.encoding     Cp1252
    sun.management.compiler     HotSpot Client Compiler
    sun.os.patch.level     Service Pack 2
    user.country     US
    user.dir     C:\oracle\sqldeveloper\sqldeveloper\bin
    user.home     C:\Documents and Settings\ckell
    user.language     en
    user.name     ckell
    user.timezone     America/New_York
    user.variant     
    windows.shell.font.languages     
    Extensions
    Name     Identifier     Version     Status
    ====     ==========     =======     ======
    Check For Updates     oracle.ide.webupdate     11.1.1.0.22.49.35     Loaded
    Code Editor     oracle.ide.ceditor     11.1.1.0.22.49.35     Loaded
    Database Connection Support     oracle.jdeveloper.db.connection     11.1.1.0.22.49.35     Loaded
    Database Object Explorers     oracle.ide.db.explorer     11.1.1.0.22.49.35     Loaded
    Database UI     oracle.ide.db     11.1.1.0.22.49.35     Loaded
    Diff/Merge     oracle.ide.diffmerge     11.1.1.0.22.49.35     Loaded
    Extended IDE Platform     oracle.javacore     11.1.1.0.22.49.35     Loaded
    External Tools     oracle.ide.externaltools     11.1.1.0.22.49.35     Loaded
    Feedback     oracle.ide.feedback     11.1.1.0.22.49.35     Loaded
    File Support     oracle.ide.files     11.1.1.0.22.49.35     Loaded
    File System Navigator     oracle.sqldeveloper.filenavigator     11.1.1.53.38     Loaded
    Help System     oracle.ide.help     11.1.1.0.22.49.35     Loaded
    History Support     oracle.jdeveloper.history     11.1.1.0.22.49.35     Loaded
    Import/Export Support     oracle.ide.importexport     11.1.1.0.22.49.35     Loaded
    Log Window     oracle.ide.log     11.1.1.0.22.49.35     Loaded
    Mac OS X Adapter     oracle.ideimpl.apple     11.1.1.0.22.49.35     Loaded
    Navigator     oracle.ide.navigator     11.1.1.0.22.49.35     Loaded
    Object Gallery     oracle.ide.gallery     11.1.1.0.22.49.35     Loaded
    Object Viewer     oracle.sqldeveloper.oviewer     11.1.1.54.40     Loaded
    Oracle IDE     oracle.ide     11.1.1.0.22.49.35     Loaded
    Oracle Microsoft Access Browser     oracle.sqldeveloper.thirdparty.access     11.1.1.54.40     Loaded
    Oracle Migration Workbench     oracle.sqldeveloper.migration     11.1.1.54.40     Loaded
    Oracle Migration Workbench - MS Access     oracle.sqldeveloper.migration.msaccess     11.1.1.53.38     Loaded
    Oracle Migration Workbench - MySQL     oracle.sqldeveloper.migration.mysql5     11.1.1.53.38     Loaded
    Oracle Migration Workbench - SQLServer     oracle.sqldeveloper.migration.sqlserver2005     11.1.1.53.38     Loaded
    Oracle Migration Workbench - Translation Core     oracle.sqldeveloper.migration.translation.core     11.1.1.54.44     Loaded
    Oracle Migration Workbench - Translation MS Access     oracle.sqldeveloper.migration.translation.msaccess     11.1.1.54.40     Loaded
    Oracle Migration Workbench - Translation MS SQL Server     oracle.sqldeveloper.migration.translation.sqlserver     11.1.1.54.40     Loaded
    Oracle Migration Workbench - Translation MySQL     oracle.sqldeveloper.migration.translation.mysql     11.1.1.54.40     Loaded
    Oracle Migration Workbench - Translation Sybase     oracle.sqldeveloper.migration.translation.sybase     11.1.1.54.44     Loaded
    Oracle Migration Workbench - Translation UI     oracle.sqldeveloper.migration.translation.gui     11.1.1.54.40     Loaded
    Oracle MySQL Browser     oracle.sqldeveloper.thirdparty.mysql     11.1.1.54.40     Loaded
    Oracle SQL Developer     oracle.sqldeveloper     11.1.1.54.40     Loaded
    Oracle SQL Developer Extras     oracle.sqldeveloper.extras     11.1.1.54.40     Loaded
    Oracle SQL Developer Reports     oracle.sqldeveloper.report     11.1.1.54.40     Loaded
    Oracle SQL Developer SearchBar     oracle.sqldeveloper.searchbar     11.1.1.54.40     Loaded
    Oracle SQL Developer TimesTen     oracle.sqldeveloper.timesten     1.5.1.1.2     Loaded
    Oracle SQL Server Browser     oracle.sqldeveloper.thirdparty.sqlserver     11.1.1.54.40     Loaded
    Oracle Sybase Browser     oracle.sqldeveloper.thirdparty.sybase     1.2.1.54.40     Loaded
    Oracle XML Schema Support     oracle.sqldeveloper.xmlschema     11.1.1.54.40     Loaded
    PROBE Debugger     oracle.jdeveloper.db.debug.probe     11.1.1.0.22.49.35     Loaded
    Peek     oracle.ide.peek     1.0     Loaded
    Replace With     oracle.ide.replace     11.1.1.0.22.49.35     Loaded
    Runner     oracle.ide.runner     11.1.1.0.22.49.35     Loaded
    SQL Worksheet Window     oracle.sqldeveloper.sqlworksheet     11.1.1.54.40     Loaded
    Search Bar     oracle.ide.searchbar     11.1.1.0.0     Loaded
    Snippet Window     oracle.sqldeveloper.snippet     11.1.1.54.40     Loaded
    Sybase 12     oracle.sqldeveloper.migration.sybase12     11.1.1.53.38     Loaded
    Sybase 15     oracle.sqldeveloper.migration.sybase15     11.1.1.53.38     Loaded
    Tuning     oracle.sqldeveloper.tuning     11.1.1.54.40     Loaded
    VHV     oracle.ide.vhv     11.1.1.0.22.49.35     Loaded
    Versioning Support     oracle.jdeveloper.vcs     11.1.1.0.22.49.35     Loaded
    Versioning Support for CVS     oracle.jdeveloper.cvs     11.1.1.0.22.49.35     Disabled by user
    Versioning Support for Subversion     oracle.jdeveloper.subversion     11.1.1.0.22.49.35     Loaded
    Web Browser and Proxy     oracle.ide.webbrowser     11.1.1.0.22.49.35     Loaded
    oracle.ide.dependency     oracle.ide.dependency     11.1.1.0.22.49.35     Loaded
    oracle.ide.indexing     oracle.ide.indexing     11.1.1.0.22.49.35     Loaded

    hi...
    Same problem, but as many tables as Chris.
    Pat
    CVS Version     Internal to Oracle SQL Developer (client-only)
    Java(TM) Platform     1.5.0_06
    Oracle IDE     1.5.1.54.40
    Versioning Support     1.5.1.54.40
    here is the dump
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode):
    "ProgressBarThread" prio=6 tid=0x04665e20 nid=0x2ac8 runnable [0x079af000..0x079
    af9e8]
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at oracle.net.ns.Packet.receive(Packet.java:239)
    at oracle.net.ns.DataPacket.receive(DataPacket.java:92)
    at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:172)
    at oracle.net.ns.NetInputStream.read(NetInputStream.java:117)
    at oracle.net.ns.NetInputStream.read(NetInputStream.java:92)
    at oracle.net.ns.NetInputStream.read(NetInputStream.java:77)
    at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1023)
    at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:999)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:584)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.
    java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForDescribe(T4CCallabl
    eStatement.java:782)
    at oracle.jdbc.driver.T4CCallableStatement.executeMaybeDescribe(T4CCalla
    bleStatement.java:857)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:1186)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
    aredStatement.java:3381)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare
    dStatement.java:3425)
    - locked <0x11eaa750> (a oracle.jdbc.driver.T4CConnection)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(Oracle
    PreparedStatementWrapper.java:1202)
    at oracle.dbtools.db.DBUtil.executeOracleQuery(DBUtil.java:512)
    at oracle.dbtools.db.DBUtil.executeQuery(DBUtil.java:540)
    at oracle.dbtools.raptor.navigator.ObjectQueryInstance.executeQuery(Obje
    ctQueryInstance.java:76)
    at oracle.dbtools.raptor.navigator.xml.XmlFolderInstance.getChildren(Xml
    FolderInstance.java:122)
    at oracle.dbtools.raptor.navigator.xml.XmlFolderInstance.listChildren(Xm
    lFolderInstance.java:67)
    at oracle.dbtools.raptor.navigator.ObjectFilter$1Loader.doWork(ObjectFil
    ter.java:147)
    at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:161)
    at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:615)
    at java.lang.Thread.run(Thread.java:595)
    "TextBufferScavenger" prio=6 tid=0x03a86620 nid=0x2ac4 in Object.wait() [0x078af
    000..0x078afa68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x11f73798> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x11f73798> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at oracle.ide.model.TextNode$FacadeBufferReference$PollingThread.run(Tex
    tNode.java:1886)
    "pool-1-thread-1" prio=6 tid=0x04a1eee8 nid=0x29f8 waiting on condition [0x071af
    000..0x071afa68]
    at sun.misc.Unsafe.park(Native Method)
    at java.util.concurrent.locks.LockSupport.park(LockSupport.java:118)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject
    .await(AbstractQueuedSynchronizer.java:1767)
    at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.jav
    a:359)
    at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.ja
    va:470)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:674)
    at java.lang.Thread.run(Thread.java:595)
    "IconOverlayTracker Timer" prio=6 tid=0x039b5878 nid=0x29f4 in Object.wait() [0x
    070af000..0x070afae8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x11971f98> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x11971f98> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "Timer-2" prio=6 tid=0x04a21540 nid=0x29f0 in Object.wait() [0x06faf000..0x06faf
    b68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x11972010> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x11972010> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "Native Directory Watcher" prio=2 tid=0x047c64c8 nid=0x29d4 runnable [0x05a8f000
    ..0x05a8fd68]
    at oracle.ide.natives.NativeHandler.enterWatcherThread(Native Method)
    at oracle.ide.natives.NativeHandler$2.run(NativeHandler.java:252)
    at java.lang.Thread.run(Thread.java:595)
    "IconOverlayTracker Timer" prio=6 tid=0x048b01d8 nid=0x29cc in Object.wait() [0x
    0528f000..0x0528f9e8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x1105d9f0> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x1105d9f0> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "IconOverlayTracker Timer" prio=6 tid=0x03876cc8 nid=0x29c8 in Object.wait() [0x
    04fbf000..0x04fbfa68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x1105da68> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:474)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x1105da68> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)
    "TimerQueue" daemon prio=6 tid=0x03b23470 nid=0x2954 in Object.wait() [0x0436f00
    0..0x0436fb68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x10733728> (a javax.swing.TimerQueue)
    at javax.swing.TimerQueue.run(TimerQueue.java:233)
    - locked <0x10733728> (a javax.swing.TimerQueue)
    at java.lang.Thread.run(Thread.java:595)
    "AWT-EventQueue-0" prio=6 tid=0x03b047a0 nid=0x2950 in Object.wait() [0x041ff000
    ..0x041ffbe8]
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:474)
    at java.awt.EventQueue.getNextEvent(EventQueue.java:345)
    - locked <0x106c2968> (a java.awt.EventQueue)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:189)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:153)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at java.awt.Component.show(Component.java:1300)
    at java.awt.Component.setVisible(Component.java:1253)
    at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
    at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
    at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:361)
    at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:208)
    at oracle.ide.dialogs.ProgressRunnable.start(ProgressRunnable.java:116)
    at oracle.dbtools.raptor.navigator.ObjectFilter.getChildren(ObjectFilter
    .java:192)
    at oracle.ideimpl.explorer.BaseTreeExplorer.addChildren(BaseTreeExplorer
    .java:358)
    at oracle.ideimpl.explorer.BaseTreeExplorer.open(BaseTreeExplorer.java:1
    016)
    at oracle.ideimpl.explorer.BaseTreeExplorer$4.run(BaseTreeExplorer.java:
    2003)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    "AWT-Windows" daemon prio=6 tid=0x03ad7188 nid=0x2948 runnable [0x03fff000..0x03
    fffce8]
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(WToolkit.java:269)
    at java.lang.Thread.run(Thread.java:595)
    "AWT-Shutdown" prio=6 tid=0x03ad6cb0 nid=0x2944 in Object.wait() [0x03eff000..0x
    03effd68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x106c2a60> (a java.lang.Object)
    at java.lang.Object.wait(Object.java:474)
    at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
    - locked <0x106c2a60> (a java.lang.Object)
    at java.lang.Thread.run(Thread.java:595)
    "Java2D Disposer" daemon prio=6 tid=0x03acf268 nid=0x2940 in Object.wait() [0x03
    dff000..0x03dff9e8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x106c2ae8> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x106c2ae8> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at sun.java2d.Disposer.run(Disposer.java:107)
    at java.lang.Thread.run(Thread.java:595)
    "Low Memory Detector" daemon prio=6 tid=0x00c64a48 nid=0x2934 runnable [0x000000
    00..0x00000000]
    "CompilerThread0" daemon prio=6 tid=0x00865008 nid=0x2930 waiting on condition [
    0x00000000..0x034df84c]
    "Signal Dispatcher" daemon prio=6 tid=0x00c612b0 nid=0x292c waiting on condition
    [0x00000000..0x00000000]
    "Finalizer" daemon prio=8 tid=0x00c58e58 nid=0x2928 in Object.wait() [0x032df000
    ..0x032dfce8]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x106601f0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x106601f0> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
    "Reference Handler" daemon prio=6 tid=0x00c583b8 nid=0x2924 in Object.wait() [0x
    031df000..0x031dfc68]
    at java.lang.Object.wait(Native Method)
    - waiting on <0x10660270> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:474)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    - locked <0x10660270> (a java.lang.ref.Reference$Lock)
    "main" prio=6 tid=0x00868828 nid=0x2914 waiting on condition [0x00000000..0x0012
    fb70]
    "VM Thread" prio=6 tid=0x00c188f0 nid=0x2920 runnable
    "VM Periodic Task Thread" prio=6 tid=0x00c60fb8 nid=0x2938 waiting on condition

  • Calculation based on Internal Table Row ID

    Hi,
    I have internal table, i want to do some calculation based on Internal table Row ID, wich will create system automaticlly and this id will uniq. I want to use this id in my program.
    So how can i do this.
    Ranveer.

    hi,
    if u want to create this id automatically,use transaction SNRO,
    or u can create t through programming too.eg. suppose field is 'id' in table 'customer'.
    select * from from customer.
    itab-id = sy-dbcnt + 1.
    modify customer from itab.
    u can use this id in calculations too,

  • Need help referencing expanding table data in vBody.

    I have a form that I created in LiveCycle that has an expanding table with 7 columns of data. Once the form has been completed by the user they will click a button that will trigger a mailMsg event and will send form data as a plain text email. Everything works great except for the loop that is supposed to write the table data.
    This is what the table data should look like in Outlook message.
    Column1: rawValue
    Column2  rawValue
    and so on
    Column1: rawValue
    Column2  rawValue
    and so on
    script:
    var i=0;
    for (i=1;i<=vRowCount;i++)
    vBody +="***********************************\r\n";
    vBpdy += "Column1: " + xfa.resolveNode(form.form1.ReportFields.Table1.Row1[" + (i-1) + "].Column1").rawValue + "\r\n";
    vBody +="***********************************\r\n";
    That is all I have written for the loop right now until I figure out why it is not executing.

    If you want insert and delete the same data you only have to use the same where
    Sth like th
    CTH@>create table demo
    2 ( n number,
    3 c varchar2(1),
    4 d date );
    Table created.
    CTH@>insert into demo (n,c) values (1, 'a');
    1 row created.
    CTH@>insert into demo (n,c) values (2, 'e');
    1 row created.
    CTH@>insert into demo (n,c) values (3, 'i');
    1 row created.
    CTH@>insert into demo (n,c) values (4, 'o');
    1 row created.
    CTH@>insert into demo (n,c) values (5, 'u');
    1 row created.
    CTH@>create table demo1
    2 ( n number,
    3 c varchar2(1),
    4 d date default sysdate);
    Table created.
    CTH@>begin
    2 insert into demo1
    3 select *
    4 from demo
    5 where d is null;
    6
    7 delete demo where d is null;
    8
    9 end;
    10 /
    PL/SQL procedure successfully completed.
    CTH@>select * from demo1;
    N C D
    1 a
    2 e
    3 i
    4 o
    5 u
    5 rows selected.
    CTH@>select * from demo;
    no rows selected
    CTH@>insert into demo (n,c) values (1, 'a');
    1 row created.
    CTH@>insert into demo (n,c) values (2, 'e');
    1 row created.
    CTH@>insert into demo (n,c) values (3, 'i');
    1 row created.
    CTH@>insert into demo (n,c) values (4, 'o');
    1 row created.
    CTH@>insert into demo (n,c) values (5, 'u');
    1 row created.
    CTH@>
    CTH@>begin
    2 insert into demo1 (n,c,d)
    3 select n,c, sysdate d
    4 from demo
    5 where d is null;
    6
    7 delete demo where d is null;
    8
    9 end;
    10 /
    PL/SQL procedure successfully completed.
    CTH@>select * from demo1;
    N C D
    1 a
    2 e
    3 i
    4 o
    5 u
    1 a 19-09-2007 13:38:07
    2 e 19-09-2007 13:38:07
    3 i 19-09-2007 13:38:07
    4 o 19-09-2007 13:38:07
    5 u 19-09-2007 13:38:07
    10 rows selected.
    CTH@>select * from demo;
    no rows selected

  • SumIf in an expanding table

    Hi, I'm creating an expense report that has an expanding table. You can download it using the link here.
    https://www.dropbox.com/s/r7qnaegkkx7a57h/Expense%20Form.pdf
    Everything I have so far works fine. You can add as many entries as you want and it provides a grand total.
    I'm stuck with the next step. At the bottom, I need to list all the categories in the "type" drop down, and I need to do the excel equivalent of a SumIf. So if the "type" category for the "Actual Expense" Table is "Lodging", I need a field at the bottom that says Lodging with the subtotal for all entries marked as such. If there were three Lodging entries anywhere on the table for $10 each, I want a field at the bottom that would say  "Lodging: $30".
    Since I've taught myself everything I know on all my forms till this point, I'm stuck. Any help would be appreciated!

    Hi,
    A sumif equivalent in FormCalc could look like;
    var totalRows = LoanProposal.Table1._Item.count
    var groupTotal = 0
    var list = ref(LoanProposal.Table1.resolveNodes("Item.[ItemName == ""Lodging""]"))
    for i=0 upto list.length - 1 step 1 do
        groupTotal = groupTotal + list.item(i).Total
    endfor
    Note the totalRows variable is not used but is required so the calculate event knows to fire when a row is added or removed.
    This would have to be repeated for each category so you might want to have a calculate event code at a higher level (like the LoanProposal subform) with some JavaScript code like;
    // Reset all fields
    xfa.host.resetData([Mileage.somExpression, Lodging.somExpression].join(","));
    var rows = Table1.resolveNodes("Item[*]");
    for (var i = 0; i < Table1._Item.count ; i++)
        var row = rows.item(i);
        switch (row.ItemName.rawValue)
            case "Mileage":
          Mileage.rawValue += row.Total.rawValue;
                break;
            case "Lodging":
          Lodging.rawValue += row.Total.rawValue;
                break;
    I've only done the first two categories but you can see the pattern
    Regards
    Bruce

  • Question to create a calculation to add three table's cells for a grand total

    I need help with creating a calculation to add three tables.  Table, 6, 7 and 8.  The total of all tables should be in the last table where it says Total.
    I would appreciate any help.
    Thanks

    If this is the resultyou are looking for the attached will help.
    Steve
    Please post LiveCycle Designer ES questions in that forum in the future.

  • Getting ORA-1013 when attempting to expand tables within connections

    Getting ORA-1013 when attempting to expand tables within connections on new install of Oracle SQL developer 3.1.06.
    Any ideas?

    Hi Steve,
    The ORA-01013 usually means a timeout or, more typically on this forum, an intentional user cancellation. Searching the forum, I do not see any prior references to your exact situation. Some recommendations:
    1. SQL Developer 3.1.0.6 was an early adopter release. Upgrade to the latest and greatest: 3.2.10.09.57
    2. Review this: Re: [SQL Developer 3.0.04] Cannot Drill Down
    3. If it is a true timeout, your privileges might make a difference. If you have access to the DBA views, SQL Developer does look-ups using those and performance is better.
    So for [3], having the SELECT_CATALOG_ROLE privilege may help. I even read of one case in this forum where the poster finally discovered his database's recycle bin had an issue and the DBA needed to do some clean-up to correct the performance issue.
    Hope this helps,
    Gary
    SQL Developer Team

  • Expanded Tables Mode Missing

    Where did Expanded Tables Mode go? This is a necessary feature for those of us that are required to support older versions of email programs that don't properly support div tags. Also, when I need to analyze older websites or emails I use the Expanded Tables mode as an analytical tool.

    Yes, feature deprecation is inevitable as the web and software evolves. I've always accepted that. I was thinking more about the timing. Sometimes Adobe gets it wrong. 12.1 is a prime example.
    Equally unfortunate is the fact that the first ever Cloud-only update for DW has included the removal of features with no prior warning.
    We're scratching our heads and left to our own devices to explore the post-update feature set via trial-and-error in the forums.
    David_Powers wrote:
    However, it does raise a question for CC subscribers. Let's say a feature that's important to you is removed from a major release (CS7 or CS8). Copies of the previous version are removed from the Adobe store as soon as a new one is released. It seems a reasonable assumption that the same will happen with the Creative Cloud. As a subscriber, you don't have a perpetual licence of the old version to roll back to.
    Agreed.
    I'd like to think that Adobe thought this scenario through when they were putting together the business model and policies for the Cloud.
    It's becoming increasingly clear that that is not the case. It's policy on the run in some cases, this one included.
    The only thing I've read online anywhere close to addressing this is that they give you up to 12 months to upgrade to the next version before you're "forced" to. But I think most people will upgrade the same day that the upgrade is released so I don't see this working in practice to address the scenario you've described.
    Without prior warning, everyone will assume that an upgrade means new or enhanced features - not removal.

Maybe you are looking for

  • Keyboard and trackpad unresponsive on retina macbook pro

    The keyboard and the trackpad on my 1 month old retina display stopped working. Restart and PRAM resets don't work and holding down D to start hardware test does not work. Power button works, so the keyboard and trackpad might work after couple of re

  • Centering the entire site

    I've decided to venture out and learn CSS, but I've a long way to go. I've watched many videos and read up on "how to's" as well as key benifits of CSS. So I've decided to start with a css template in DW and work backwards rather that open notebook a

  • How to view a 50 page PDF

    Is there any way to have a button "pop-up" a pdf file to be viewed similar to the way a website "pops-up" in a mini browser? The pdf is almost 50 pages and its just a resource that i'd like to have with my presentation. However, I don't want to have

  • Problems with iTunes 11

    Hi New iTunes 11 looks good, and some functions are great, but there some problems with it. 1.Search on my iPod doesn't work (iPod video 30 gb) 2. iTunes doesn't display covers (and this problem was on previous version) on iPod, an all my song settin

  • Need Help please with Face Time

    I bout an iPhone 4 with 4.2.1 from Dubai anyhow the face time does not show & i traveled to France & i change my SIM Card to France Card & i updated my iPhone firmware again but still Face time does not show even when i go to setting - phone (no face