Javascript errors - Summing columns using Javascript

Hi
I have two regions on a page which are tabular forms that I have manually setup using APEX_ITEMS that I would like to use some JavaScript to pick up the values entered and sum that row up. I used Vikas example for tabular form calculation and it works perfectly for 1 region however if I have two regions it seems to give me the following error message in Firefox:
g_table.rows[rownum].cells[getCellPos(g_table, html_GetElement("COL05"), "column")] has no properties
Which I gather is because there are two columns on the page named COL05 and idea how I could get around this problem.
I've put an example here: http://apex.oracle.com/pls/otn/f?p=35414:4

Hello,
It could be a bit difficult to auto sums a row, as
usually rows include non-numeric columns. In any
case you can always use a computation column in your
select statement, or build a derived column in the
report attributes tab. The problem is to update these
columns in real-time, after a specific cell has been
changed, and for that you need JavaScript.I realised this thats why I wanted to pickup the column and Row and then I would be able to replace the value in the specified column ie. total column using javascript for each row.
I’m not sure I’m following you, but if you mean the
current (active) rownum per displayed report page,
you can use the #FIRST_ROW_FETCHED# and
#LAST_ROW_FETCHED# substitution strings, in the
footer of the report region.
If you meant something else, please elaborate a bit
more.Look at the revised demo app http://apex.oracle.com/pls/otn/f?p=35414:4 as you can see in this particular example each region returned 15 rows of data. I wondered if there was a way to pick up the last row returned so that I could use the same javascript function I use to calculate the rows I could update that specific column/total row. Example, in my demo app you will see a null row returned I would like to find this row then update the values.

Similar Messages

  • ERROR MESSAGE WHEN USING PACK COMMAND   Missing file ////presenter.css   Also:  "This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course."  I have Java enabled in all browsers

    ERROR MESSAGE WHEN USING PACK COMMAND   Missing file ////presenter.css    Command then fails
    Also:  "This course requires JavaScript to be enabled in your browser. Please enable JavaScript, then relaunch the course."  I have Java enabled in all browsers
    Thoughts?  Using Presenter 10  Win 8.1  Intel I7  new HP with plenty of memory
                   Thanks

    I had saved one copy as an .asp but then resaved it to .xhtml 
    I'm assuming this is a static web site.  Rename (F2) all your pages with .html or .htm extension. 
    .xhtml is not a valid extension.
    Nancy O.

  • How to remove dotted lines in a single column using javascript?

    Hi,
    In InDesign document,i want to remove the dotted lines in a single column using javascript.here i want to remove only the dotted lines has presented at the end of text in a cell.kindly help me if anyone has idea regarding this.
    Thanks in advance!
    Vimala L

    Hi,
    Those dotted lines have added in the document by manually. The dotted lines have presented in all the columns but in a single column i need to remove it.
    Thanks,
    Vimala L

  • Need help with summing column when using if-then-else

    Using logic
    <?xdofx:if INVOICE_BILL_AMT_IN_INV_CURR is null then INVPROC_BILL_AMOUNT else INVOICE_BILL_AMT_IN_INV_CURR end if?> for column field.
    Having trouble summing the column using the logic above.
    Any suggestions would be very much appreciated.
    Thanks,
    Nancy

    Thanks Tim,
    That worked. Got rid of my error. However, if the field is null (=''), I get a total.
    11.05 + 1429.70 = 1440.75
    If the not null (!='') I am not getting a total.
    103.74 + 173.13 =
    BTW, recently took XML class. Leta Davis highly recommended your blog and I have gotten a lot of great tips from it.
    Thanks,
    Nancy

  • Error inserting a row into a table with identity column using cfgrid on change

    I got an error on trying to insert a row into a table with identity column using cfgrid on change see below
    also i would like to use cfstoreproc instead of cfquery but which argument i need to pass and how to use it usually i use stored procedure
    update table (xxx,xxx,xxx)
    values (uu,uuu,uu)
         My component
    <!--- Edit a Media Type  --->
        <cffunction name="cfn_MediaType_Update" access="remote">
            <cfargument name="gridaction" type="string" required="yes">
            <cfargument name="gridrow" type="struct" required="yes">
            <cfargument name="gridchanged" type="struct" required="yes">
            <!--- Local variables --->
            <cfset var colname="">
            <cfset var value="">
            <!--- Process gridaction --->
            <cfswitch expression="#ARGUMENTS.gridaction#">
                <!--- Process updates --->
                <cfcase value="U">
                    <!--- Get column name and value --->
                    <cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
                    <cfset value=ARGUMENTS.gridchanged[colname]>
                    <!--- Perform actual update --->
                    <cfquery datasource="#application.dsn#">
                    UPDATE SP.MediaType
                    SET #colname# = '#value#'
                    WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
                    </cfquery>
                </cfcase>
                <!--- Process deletes --->
                <cfcase value="D">
                    <!--- Perform actual delete --->
                    <cfquery datasource="#application.dsn#">
                    update SP.MediaType
                    set Deleted=1
                    WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
                    </cfquery>
                </cfcase>
                <cfcase value="I">
                    <!--- Get column name and value --->
                    <cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
                    <cfset value=ARGUMENTS.gridchanged[colname]>
                    <!--- Perform actual update --->
                   <cfquery datasource="#application.dsn#">
                    insert into  SP.MediaType (#colname#)
                    Values ('#value#')              
                    </cfquery>
                </cfcase>
            </cfswitch>
        </cffunction>
    my table
    mediatype:
    mediatypeid primary key,identity
    mediatypename
    my code is
    <cfform method="post" name="GridExampleForm">
            <cfgrid format="html" name="grid_Tables2" pagesize="3"  selectmode="edit" width="800px" 
            delete="yes"
            insert="yes"
                  bind="cfc:sp3.testing.MediaType.cfn_MediaType_All
                                                                ({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
                  onchange="cfc:sp3.testing.MediaType.cfn_MediaType_Update({cfgridaction},
                                                {cfgridrow},
                                                {cfgridchanged})">
                <cfgridcolumn name="MediaTypeID" header="ID"  display="no"/>
                <cfgridcolumn name="MediaTypeName" header="Media Type" />
            </cfgrid>
    </cfform>
    on insert I get the following error message ajax logging error message
    http: Error invoking xxxxxxx/MediaType.cfc : Element '' is undefined in a CFML structure referenced as part of an expression.
    {"gridaction":"I","gridrow":{"MEDIATYPEID":"","MEDIATYPENAME":"uuuuuu","CFGRIDROWINDEX":4} ,"gridchanged":{}}
    Thanks

    Is this with the Travel database or another database?
    If it's another database then make sure your columns
    allow nulls. To check this in the Server Navigator, expand
    your DataSource down to the column.
    Select the column and view the Is Nullable property
    in the Property Sheet
    If still no luck, check out a tutorial, like Performing Inserts, ...
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    John

  • Unions using same subview gives error 00918 - column not uniquely defined

    Hi anybody,
    I'm using oracle 92i on a windows xp workstation. I defined a view using union construct as follows :
    select
    fgb.obj_id as obj_id
    from
    -- objektdaten_vw
    fingwrk_ggbwg_perobj_vw
    fgb
    union
    select
    fgb1.obj_id
    from
    -- objektdaten_vw
    fingwrk_ggbwg_perobj_vw
    fgb1
    union
    select
    fgb2.obj_id
    from
    -- objektdaten_vw
    fingwrk_ggbwg_perobj_vw
    fgb2
    union
    select
    fgb3.obj_id
    from
    -- objektdaten_vw
    fingwrk_ggbwg_perobj_vw
    fgb3
    with fourth union I get the specified error. If I reduce to 3 unions there is no problem. Using different views - i.e. objektdaten_vw there is no problem. The used view fingwrk_ggbwg_perobj_vw is without any errors and itself using subviews.
    any ideas about limitations or something like that ?
    thanks in advance
    wilko

    Hi Frank,
    sorry for being absent the last weeks. I will post the complete view here. I tried reducing complexity within my last posting, but i have to admit, that may not have been very helpful.
    The following view has to get data coming from different resources ( ahkontobuchungen, ehkontobuchungen, eukontobuchungen and aukontobuchungen ). But it is essential hwo they are connected to aukontobuchungen. This will be found by matching fingwrk_ggbwg_perobj_vw which knows, what lines of the former tables are connected to special lines of aukontobuchungen, and get_rw_buchung_vw which will classify the data and only allow rw_bewart = -1. So everything is needed. When I get these data they will be aggregated in the next step by another view.
    Hope, I could explain a little.
    regards
    Wilko
    CREATE OR REPLACE FORCE VIEW READ_OBJ_FINGEW_SALDO_VW
    (OBJ_ID, OBJEKTGEWERKE_ID, GEW_HG_CODE, GEW_UG_CODE, GEW_GPARENT,
    GEW_GP_BEZEICHNUNG, GEW_GP_ISO_CODE, GEW_CODE, GEW_ISO_CODE, GEW_BEZEICHNUNG,
    GEW_KALKULATION, GEW_VERTRAGSSUMME, RW_KONTEXT, RW_BEWEGART_BEZ, FIN_HAUPTKONTO_ID,
    FIN_KONTO_ID, FIN_KONTO_VERTRAGSSUMME, RW_HAUPTKONTO_ID, RW_BUCHKONTO_ID, RW_WAEHRUNG_CODE,
    RW_BETRAG)
    AS
    select
      fgb.obj_id                   as obj_id
    , fgb.objektgewerke_id         as objektgewerke_id
    , fgb.gew_hg_code              as gew_hg_code
    , fgb.gew_ug_code              as gew_ug_code
    , fgb.gew_gParent              as gew_gParent
    , fgb.gew_gruppenbezeichnung   as gew_gp_bezeichnung
    , fgb.gew_gruppen_iso_code     as gew_gp_iso_code
    , fgb.gew_code                 as gew_code
    , fgb.gew_iso_code             as gew_iso_code
    , fgb.gew_bezeichnung          as gew_bezeichnung
    , fgb.gew_kalkulation          as gew_kalkulation
    , fgb.gew_vertragssumme        as gew_vertragssumme
    , fgb.rwbeweg_kontext          as rw_kontext
    , fgb.rwbeweg_bewart_bez       as rw_bewegart_bez
    , fgb.fin_hk_konto_id          as fin_hauptkonto_id
    , fgb.fin_uk_konto_id          as fin_konto_id
    , fgb.fin_uk_vertragssumme     as fin_konto_vertragssumme
    , qehb.ekonto_id               as rw_hauptkonto_id
    , qehb.ekonto_id               as rw_buchkonto_id
    , qehb.waehrung_code           as rw_waehrung_code
    , sum(qehb.betrag)             as rw_betrag  
    from fingwrk_ggbwg_perobj_vw fgb
             inner join ehkontobuchungen qehb
                     on     fgb.rwbeweg_hauptkonto_id   = qehb.ekonto_id
                        and fgb.rwbeweg_kontext         = 'ekonto' 
                        and fgb.rwbeweg_vrbed_bewart_id = qehb.vrbed_bewart_id
             inner join get_rw_buchung_vw rwb
                     on     qehb.ehkontobuchung_id          = rwb.buchung_id
                        and qehb.vrbed_bewart_id            = rwb.vrbed_bewart_id
                        and -1                              = rwb.rw_bewart          
    group by
      fgb.obj_id
    , fgb.objektgewerke_id
    , fgb.gew_hg_code             
    , fgb.gew_ug_code             
    , fgb.gew_gParent             
    , fgb.gew_gruppenbezeichnung  
    , fgb.gew_gruppen_iso_code    
    , fgb.gew_code
    , fgb.gew_iso_code
    , fgb.gew_bezeichnung
    , fgb.gew_kalkulation   
    , fgb.gew_vertragssumme
    , fgb.rwbeweg_kontext
    , fgb.rwbeweg_bewart_bez
    , fgb.fin_hk_konto_id
    , fgb.fin_uk_konto_id  
    , fgb.fin_uk_vertragssumme 
    , qehb.ekonto_id
    , qehb.ekonto_id
    , qehb.waehrung_code 
    having sum(qehb.betrag) <> 0
    union
    select
      fgb.obj_id
    , fgb.objektgewerke_id   as objektgewerke_id 
    , fgb.gew_hg_code              as gew_hg_code
    , fgb.gew_ug_code              as gew_ug_code
    , fgb.gew_gParent              as gew_gParent
    , fgb.gew_gruppenbezeichnung   as gew_gp_bezeichnung
    , fgb.gew_gruppen_iso_code     as gew_gp_iso_code
    , fgb.gew_code
    , fgb.gew_iso_code
    , fgb.gew_bezeichnung
    , fgb.gew_kalkulation    as gew_kalkulation
    , fgb.gew_vertragssumme  as gew_vertragssumme
    , fgb.rwbeweg_kontext
    , fgb.rwbeweg_bewart_bez
    , fgb.fin_hk_konto_id    as fin_hauptkonto
    , fgb.fin_uk_konto_id    as fin_konto
    , fgb.fin_uk_vertragssumme  as fin_konto_vertragssumme
    , qahb.akonto_id         as rw_hauptkonto_id
    , qahb.akonto_id         as rw_buchkonto_id
    , qahb.waehrung_code     as rw_waehrung_code
    , sum(qahb.betrag)       as betrag
    from fingwrk_ggbwg_perobj_vw fgb
             inner join ahkontobuchungen qahb
                     on     fgb.rwbeweg_hauptkonto_id   = qahb.akonto_id
                        and fgb.rwbeweg_kontext         = 'akonto'            
                        and fgb.rwbeweg_vrbed_bewart_id = qahb.vrbed_bewart_id
             inner join get_rw_buchung_vw rwb
                     on     qahb.ahkontobuchung_id      = rwb.buchung_id
                        and qahb.vrbed_bewart_id        = rwb.vrbed_bewart_id
                        and -1                          = rwb.rw_bewart          
    group by
      fgb.obj_id
    , fgb.objektgewerke_id
    , fgb.gew_hg_code             
    , fgb.gew_ug_code             
    , fgb.gew_gParent             
    , fgb.gew_gruppenbezeichnung  
    , fgb.gew_gruppen_iso_code    
    , fgb.gew_code
    , fgb.gew_iso_code
    , fgb.gew_bezeichnung
    , fgb.gew_kalkulation   
    , fgb.gew_vertragssumme
    , fgb.rwbeweg_kontext
    , fgb.rwbeweg_bewart_bez
    , fgb.fin_hk_konto_id   
    , fgb.fin_uk_konto_id   
    , fgb.fin_uk_vertragssumme 
    , qahb.akonto_id
    , qahb.akonto_id
    , qahb.waehrung_code
    having sum(qahb.betrag) <> 0
    union
    select
      fgb.obj_id
    , fgb.objektgewerke_id   as objektgewerke_id 
    , fgb.gew_hg_code              as gew_hg_code
    , fgb.gew_ug_code              as gew_ug_code
    , fgb.gew_gParent              as gew_gParent
    , fgb.gew_gruppenbezeichnung   as gew_gp_bezeichnung
    , fgb.gew_gruppen_iso_code     as gew_gp_iso_code
    , fgb.gew_code
    , fgb.gew_iso_code
    , fgb.gew_bezeichnung
    , fgb.gew_kalkulation    as gew_kalkulation
    , fgb.gew_vertragssumme  as gew_vertragssumme
    , fgb.rwbeweg_kontext
    , fgb.rwbeweg_bewart_bez
    , fgb.fin_hk_konto_id    as fin_hauptkonto
    , fgb.fin_uk_konto_id    as fin_konto
    , fgb.fin_uk_vertragssumme  as fin_konto_vertragssumme
    , qauk.akonto_id         as hauptkonto
    , qauk.aukonto_id        as buchkonto
    , qaukb.waehrung_code    as whrg
    , sum(qaukb.betrag)      as bezahlt
    from fingwrk_ggbwg_perobj_vw fgb
             inner join a_buchungen qaukb
                     on     fgb.rwbeweg_konto_id        = qaukb.aukonto_id 
                        and fgb.rwbeweg_kontext         = 'aukonto'
                        and fgb.rwbeweg_vrbed_bewart_id = qaukb.vrbed_bewart_id 
             inner join a_unterkonto qauk
                     on     qaukb.aukonto_id            = qauk.aukonto_id
             inner join get_rw_buchung_vw rwb
                     on qaukb.vrbed_bewart_id           = rwb.vrbed_bewart_id
                     and -1                             = rwb.rw_bewart          
    group by
      fgb.obj_id
    , fgb.gew_hg_code             
    , fgb.gew_ug_code             
    , fgb.gew_gParent             
    , fgb.gew_gruppenbezeichnung  
    , fgb.gew_gruppen_iso_code    
    , fgb.gew_code
    , fgb.gew_iso_code
    , fgb.gew_bezeichnung
    , fgb.gew_kalkulation   
    , fgb.gew_vertragssumme
    , fgb.rwbeweg_kontext
    , fgb.rwbeweg_bewart_bez
    , fgb.fin_hk_konto_id   
    , fgb.fin_uk_konto_id   
    , fgb.fin_uk_vertragssumme 
    , qauk.akonto_id
    , qauk.aukonto_id
    , qaukb.waehrung_code
    having sum(qaukb.betrag) <> 0
    union
    select
      fgb.obj_id
    , fgb.objektgewerke_id   as objektgewerke_id 
    , fgb.gew_hg_code              as gew_hg_code
    , fgb.gew_ug_code              as gew_ug_code
    , fgb.gew_gParent              as gew_gParent
    , fgb.gew_gruppenbezeichnung   as gew_gp_bezeichnung
    , fgb.gew_gruppen_iso_code     as gew_gp_iso_code
    , fgb.gew_code
    , fgb.gew_iso_code
    , fgb.gew_bezeichnung
    , fgb.gew_kalkulation    as gew_kalkulation
    , fgb.gew_vertragssumme  as gew_vertragssumme
    , fgb.rwbeweg_kontext
    , fgb.rwbeweg_bewart_bez
    , fgb.fin_hk_konto_id    as fin_hauptkonto_id
    , fgb.fin_uk_konto_id    as fin_konto_id
    , fgb.fin_uk_vertragssumme  as fin_konto_vertragssumme
    , qeuk.ekonto_id         as hauptkonto_id
    , qeuk.eukonto_id        as buchkonto_id
    , qeukb.waehrung_code    as whrg
    , sum(qeukb.betrag)      as bezahlt
    from fingwrk_ggbwg_perobj_vw fgb
             inner join e_buchungen qeukb
                     on     fgb.rwbeweg_konto_id        = qeukb.eukonto_id
                        and fgb.rwbeweg_kontext         = 'eukonto'
                        and fgb.rwbeweg_vrbed_bewart_id = qeukb.vrbed_bewart_id
             inner join e_unterkonto qeuk
                     on     qeukb.eukonto_id            = qeuk.eukonto_id
             inner join get_rw_buchung_vw rwb
                     on  qeukb.e_buchungen_id           = rwb.buchung_id               
                     and qeukb.vrbed_bewart_id          = rwb.vrbed_bewart_id
                     and -1                             = rwb.rw_bewart          
    group by
      fgb.obj_id
    , fgb.objektgewerke_id
    , fgb.gew_hg_code             
    , fgb.gew_ug_code             
    , fgb.gew_gParent             
    , fgb.gew_gruppenbezeichnung  
    , fgb.gew_gruppen_iso_code    
    , fgb.gew_code
    , fgb.gew_iso_code
    , fgb.gew_bezeichnung
    , fgb.gew_kalkulation   
    , fgb.gew_vertragssumme
    , fgb.rwbeweg_kontext
    , fgb.rwbeweg_bewart_bez
    , fgb.fin_hk_konto_id 
    , fgb.fin_uk_konto_id 
    , fgb.fin_uk_vertragssumme 
    , qeuk.ekonto_id
    , qeuk.eukonto_id
    , qeukb.waehrung_code
    having sum(qeukb.betrag) <> 0
    /

  • Spry XmlDataSet: columns using XPath, subPaths with axis

    A couple of questions:
    I'm trying to add additional columns to a dataset whose value is not based a node or attribute but is derived using an XPath expression containing a function.
    Tried to define this using "subPaths" but it results in an error message
    var ds = new Spry.Data.XMLDataSet("my.xml", "//node]", {subPaths: ['position()', 'parent::local-name()']});
    The idea was to generate a flat table from a the xml tree in order to speed up filtering (filtering by ds.setXPath rebuilds the whole dataset)
    Is it possible to specify the columns and types when instantiating a dataset?
    var ds = new Spry.Data.XMLDataSet("my.xml", "//node]", {columns: [{'node': 'html'},{'@attr': 'text'}]);
    Spry seems to always decode entities in attributes, how do I prevent that?
    source XML:
    <outline text="attribute with entities &lt;a href=&quot;#&quot;&gt;link&lt;/a&gt;" />
    setting column type to text:
    ds.setColumnType('@text', 'text');
    has no effect, entities are still decoded
    Using setXPath('//node') results in an error message however using "//node" when calling the constructor does not.
    Any work-around?

    Hi Gramps, thank your for responding.
    From my post is might not have been obvious that i had studied that page in detail, i have also studied the Spry JavaScript files and the google AJAXSLT library used by Spry for parsing XPaths in JavaScript.
    However i can't find an answer to my questions in the documents you reference, could you be more specific in pointing out the secion you believe answers my question(s)?
    What i did find was a way to stop spry from throwing "Regular Expression is too complex" from inside the function
    Spry.Utils.setInnerHTML
    by wrapping the regex evaluation in a try/catch; this temporarily avoids the problems in MSIE but at the cost of not escaping scripts, so i would like to understand why sometimes that exception is thrown. I suspect it has to do with the string being evaluated instead of the regex-pattern.
    And i found a way to add static DataSet references, however in order to do that i had to replace the function
    Spry.Data.DataSet.prototype.getValue
    References i've added so far:
    Data reference
    Content provider
    {ds_XPath}
    Spry.Data.SpryXMLDataSet.getXPath()
    {ds_URL}
    Spry.Data.HTTPSourceDataSet.getURL()
    Feature request:
    I think it would be great to be able to register additional data references to a spry dataset
    ds.addDataReference('ds_XPath', function(dataset, rowContext, valueName){return dataset.getXPath()});
    Link to SpryDataMod.js
    http://feedfunnel.noagendareport.com/assets/spry/SpryDataMod.js

  • Dreamweaver CC generates one of 3 error messages when using find and replace on Win 8.1 64 bit.

    Dreamweaver CC generates one of 3 error messages when using find and replace is used more than twice in succession. "While executing onLoad in bc_afterSave.htm, the following JavaScript error(s) occurred: At line 188 of file C:\Program Files (x86)\Adobe|Adobe DreamweaverCC|Configuration|Shared|BC\JS\bc_sites.js": out of memory"
    or
    While executing runCommand in File_Save.htm, a JavaScript erroroccurred.
    or
    While exciting getDynamicContent inAdressURL.htm, a Javascript erroroccirred.
    Any thoughts - I end up closing DWCC and reopening. Will work for two additional Find and Replace before the error messaged\s popup again.

    bkaufman43 wrote:
    Thanks Jon. I tried all of those solutions before posting. Same problem. It seems that the problem is tied to DWCC. Do not have the problem when using DW6 on Win8.1. When running DWCC on a Win7 pc, we get the same error message. When running DW6 on Win 7, f&c works fine. It seems to be a bug in DWCC. DWCC works flawlessly on our Macs.
    The same steps apply to DWCC, you just need to choose the CC folders rather than the DWCS4-6 versions that the page talks about. The layout of CC's folders hasn't changed from the older versions which is why, I think, Adobe hasn't updated the troubleshooting page as of yet.
    As Nancy mentions, a 38,500 page site is sort of ridiculously large for a static website, that could be part of the problem, but your response quoted above leads me to think you may have tried the troubleshooting steps in the wrong version of the program. Could you confirm that?

  • Sum Column Script

    This is not working; THANK YOU to anyone kind enough to point out what's missing.
       <field h="5.293mm" name="IncomeTotal" w="19.134mm" x="54.478mm" y="126.775mm">
                <ui>
                   <textEdit>
                      <border hand="right" presence="hidden">
                         <?templateDesigner StyleID aped0?></border>
                      <margin/>
                   </textEdit>
                </ui>
                <font size="11pt" typeface="Myriad Pro"/>
                <para vAlign="middle"/>
                <traversal>
                   <traverse ref="TextField4[3]"/>
                </traversal>
               <sum(IncomeTotal [Income1, Income2, Income3, Income4, Income5, Income6, Income7, Income8, Income9])>
             </field>

    Hi,
    First of all I would not recommend inputting script directly in the XML Source. If you go to the Design View you can open the Script Editor (5) from the Windows menu. I would recommend making it larger, so that you can see a few lines of script:
    You can see an example here for referencing objects in both JavaScript and FormCalc. This also includes an example for summing columns: http://assure.ly/kUP02y.
    Niall

  • Jdeveloper java.lang.IllegalStateException: A column used in a constraint m

    I have a database diagram. I tried to move the offline database to online database and got the following error. not able to do anything after this
    is there a way to find out which table has the problem
    this is the error
    java.lang.IllegalStateException: A column used in a constraint must exist in the relation
         at oracle.javatools.db.ColumnConstraint.getColumns(ColumnConstraint.java:89)
         at oracle.javatools.db.diff.ColumnConstraintDiffer.diffColListForceSame(ColumnConstraintDiffer.java:95)
         at oracle.javatools.db.diff.ColumnConstraintDiffer.diffColList(ColumnConstraintDiffer.java:84)
         at oracle.javatools.db.diff.ColumnConstraintDiffer.diff(ColumnConstraintDiffer.java:71)
         at oracle.javatools.db.diff.DiffEngine.diff(DiffEngine.java:111)
         at oracle.javatools.db.diff.ListDiffer.diff(ListDiffer.java:81)
         at oracle.javatools.db.diff.DiffEngine.diff(DiffEngine.java:177)
         at oracle.javatools.db.diff.BeanDiffer.diffLists(BeanDiffer.java:272)
         at oracle.javatools.db.diff.BeanDiffer.diffLists(BeanDiffer.java:229)
         at oracle.javatools.db.diff.DBObjectDiffer.diff(DBObjectDiffer.java:46)
         at oracle.javatools.db.diff.TableReconcileDiffer.diff(TableReconcileDiffer.java:56)
         at oracle.javatools.db.diff.DiffEngine.diff(DiffEngine.java:111)
         at oracle.javatools.db.diff.ListDiffer.diff(ListDiffer.java:81)
         at oracle.javatools.db.diff.DiffEngine.diff(DiffEngine.java:177)
         at oracle.ideimpl.db.transfer.reconcile.ReconcileUI.run(ReconcileUI.java:384)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:604)
         at java.lang.Thread.run(Thread.java:595)

    This has been fixed and will be available in a later release. The table and column names will be displayed.

  • Error saving column settings with ORA-01403: no data found Error

    Hi
    I have a region with multi row report updatable.
    When I am trying to change the query I am getting below error.
    Anybody let me know what will be the problem.
    ORA-01403: no data found
    Error saving column settings
    Regards
    Kiran

    Hi
    I was using below query for this region.
    SELECT
    result.segment1 Item#,
              result.inventory_item_id,
              result.revision,
              result.lot_number,
              result.Lot_Onhand,
              result.Heat,
              result.Cert_Site_Number Cert_Site_Number_Display,
              result.status_code Status_Code_Display,
    result.Cert_ID Cert_ID_Display,
              result.Cert_Site_Number,
              result.status_code,
    result.Cert_ID,
              result.transaction_id,
    result.po_header_id,
    result.po_line_id,
    result.rcv_transaction_id,
    result.shipment_header_id,
    result.shipment_line_id
    FROM          
    SELECT      
    msi.segment1,
              mmt.inventory_item_id,
              mmt.revision,
              mtln.lot_number,
              xx_utility_pkg.get_available_qty(mmt.inventory_item_id,mmt.organization_id,mmt.subinventory_code,mtln.lot_number,'ONHAND') Lot_Onhand,
              mtln.attribute1 Heat,
              mtln.attribute2 Cert_Site_Number,
              mms.status_code,
                        (          SELECT     clx.cert_id
                        FROM     xxqc.cert_mst cm,
                                  xxqc.cert_lot_xref clx
                        WHERE      cm.cert_id = clx.cert_id
                        AND cm.cert_type='MILL'
                        AND     clx.lot_no = mtln.lot_number
              ) Cert_ID,
              mmt.transaction_id,
              rsl.po_header_id,
              rsl.po_line_id,
    mmt.rcv_transaction_id,
    rt.shipment_header_id,
    rsl.shipment_line_id
    FROM      mtl_material_transactions mmt,
              mtl_transaction_lot_numbers mtln,
              mtl_material_statuses_tl mms,
              rcv_transactions rt,
              rcv_shipment_headers rsh,
              rcv_shipment_lines rsl,
    mtl_system_items_b msi
    WHERE     mmt.transaction_id = mtln.transaction_id
    AND          mmt.organization_id = mtln.organization_id
    AND          mtln.status_id = mms.status_id
    AND          rt.transaction_id = mmt.rcv_transaction_id
    AND          rsh.shipment_header_id = rt.shipment_header_id
    AND          rsl.shipment_header_id = rsh.shipment_header_id
    AND          rsh.organization_id = mmt.organization_id
    AND          rsl.item_id = mmt.inventory_item_id
    AND msi.inventory_item_id=rsl.item_id
    AND msi.organization_id = mmt.organization_id
    AND          rsl.po_line_id = DECODE(:P5_PO_LINE_NUMBER, 0,rsl.po_line_id,:P5_PO_LINE_NUMBER)
    AND rsl.po_header_id IN (     SELECT     po_header_id
                        FROM      po_headers_all
                        WHERE      segment1 = :P5_PO_NUMBER
                        AND      org_id = :P5_ORG_ID)
    AND          mtln.status_id = 90 -- Which is 'T' Status means Temporary
    AND          mmt.transaction_action_id = 27
    AND          mmt.transaction_source_type_id = 1
    AND          mmt.transaction_type_id = 18
    ) result
    WHERE result.Lot_Onhand > 0
    when I use above query I am able to update the region perfectly.
    But when I comment last WHERE CONDITION I am getting above problem.
    What could be the possilbe reason for this?
    Regards
    Kiran Akkiraju

  • JPA - TroubleShooting - Error in Datatypes used in Creating Tables

    h1. JPA - TroubleShooting - Error in Datatypes used in Creating Tables
    h2. Error Description
    The error appears when JPA is trying to automatically
    generate tables from Entities. It uses types it shouldn't because they aren't
    supported by the Database Engine. If you examine the createDDL.jdbc file you
    are going to find not supported data types. You could run the statements that
    are listed there directly to your Database Engine and find out that they don`t
    run generating syntax errors like the error posted below.
    h3. Query example (statement)
    CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50), SEQ_COUNT NUMBER(19))h3. PostgreSQL Error whent trying to execute the statment
    CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50),
    SEQ_COUNT NUMBER(19))": org.postgresql.util.PSQLException: ERROR: syntax
    error near "("
    h3. MSSQL 2000 Error when trying to execute the statement:
    [CREATE - 0 row(s), 0.578 secs] [Error Code: 2715, SQL State: HY000] [Microsoft][SQLServer 2000 Driver for
    JDBC][SQLServer]Column or parameter #1: Cannot find data type NUMBER
    h3. FireBird Error when trying to execute the statment
    Dynamic SQL Error
    SQL error code = -104
    Token unknown - line 1, char 62
    Statement: CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50),
    SEQ_COUNT NUMBER(19))
    h2. TroubleShooting
    Looks like it wants "NUMERIC", not "NUMBER".
    [http://www.postgresql.org/docs/8.1/interactive/datatype.html#DATATYPE-NUMERIC]
    I had this problem using Firebird. I found out it had to do
    with the database jdbc driver. I tried using a different database engine, like
    Microsoft SQL Server 2000 with the corresponding driver and it worked as it
    should. I suspect the JDBC driver has to supply in some way the datatypes it
    supports to JPA TopLink Library.
    Edited by: juanemc2 on Apr 1, 2008 7:39 AM

    In Hibernate you can supply the "dialect" to use for SQL generation. I assume TopLink to have a similar functionality.
    This is not a generic JPA issue, but rather something with the specific implementation you're using.
    Or rather it is a generic SQL issue, caused by different database engines using slightly (or not so slightly) different SQL syntax which causes problems when generating SQL automatically.

  • Having trouble connecting column to column using niSwitch on a PXI 2530

    Having trouble connecting column to column using niSwitch vi on a PXI 2530 matrix module.  I have configured my switch using Switch Executive, have identified aliases, and verified routes and route groups.  When I use LabVIEW to connect column to column I get an error reading "cannot find connection between c0 and c1".  c0 and c1 are example columns I want to connect.  Any help is appreciated.

    You can find NISE VIs in the function pallete in LV if you have installed LabVIEW support when you installed NISE (this is selected by default in the installer if you had LV installed before installing NISE).
    Also, choose between niSwitch and NISE based on your need - if all you ever do is connect two channels in your application, then configuring a NISE virtual device is probably an overkill (and so is using a switch in this case:-) . However, if you are going to manage multiple routes, then using NISE configuration will let you create named routes and route groups, which you can then invoke (connect/disconnect) in your application and have the configuration part managed outside your application. The code would then concentrate solely on establishing a necessary connection(s) via connecting a route or a route group, while if you were to use niSwitch for this purpose, you would have to keep the logic of connecting inside your application, together with the list of channels that need to be connected.
    Start with using NISE, and see if you like it.
    http://www.ni.com/pdf/products/us/3msw112-113.pdf
    Srdan Zirojevic

  • SQL LOADER: how to load CLOB column using stored function

    Hi,
    I am a newbie of sql loader. Everything seems to be fine until I hit a
    road block - the CLOB column type. I want to load data into the clob
    column using a stored function. I need to do some manipulation on the
    data before it gets saved to that column. But I got this error when I
    run the sql loader.
    SQL*Loader-309: No SQL string allowed as part of "DATA" field
    specification
    DATA is my CLOB type column.
    here is the content of the control file:
    LOAD DATA
    INFILE 'test.csv'
    BADFILE 'test.bad'
    DISCARDFILE 'test.dsc'
    REPLACE
    INTO TABLE test_table
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    codeid          BOUNDFILLER,
    reason          BOUNDFILLER,
    Checkstamp     "to_date(:CHECKSTAMP, 'mm/dd/yyyy')",
    "DATA"          "GetContent(:codeid, :reason)"
    All references are suggesting to use a file to load data on
    CLOB column but I want to use a function in which it generates
    the content to be saved into the column.
    Any help is greatly appreciated.
    Thanks,
    Baldwin
    MISICompany

    *** Duplicate Post ... Please Ignore ***

  • Report data binding error unknown column name

    Hi,
    I am having a problem with the new 7.02 update of Report
    Builder. The issue is it's not finding my SQL query.
    I have wrote my query initally in the advance mode, and it
    doesn't seem to reconize it. Is there an issue with this?
    I did manage to fix one of my reports by using the basic mode
    and selecting all my tables and seting my linkage and criteria.
    I have other computers that i have not updated to 7.02 and
    they do not have this issue. Below is the error:
    Error Occurred While Processing Request
    Report data binding error Unknown column name : work_phone.
    Please try the following:
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
    .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Remote Address 127.0.0.1
    Referrer
    Date/Time 13-Jul-06 02:33 PM
    Stack Trace (click to expand)
    coldfusion.runtime.report.Report$ReportDataBindingException:
    Report data binding error Unknown column name : work_phone.
    at
    coldfusion.runtime.report.Report.runReport(Report.java:420)
    at
    coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:96)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:106)
    at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:157)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at
    org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    This report works in 7.01. So all query variables match with
    a variable in the SQL select statement.
    Anyone have any Ideas??
    Thanks,
    Daniel

    Thank you very much for help.
    The "Unknown column name " is a field still used in my
    report, so I can't remove it.
    After I clear the query in the report and reopen the report
    and apply the same query back to it, I get different error message:
    Element TASKNUM is undefined in QUERY.
    The error occurred in : line 1
    -1 : Unable to display error's location in a CFML template.
    I know for sure this "Element TASKNUM is undefined in QUERY."
    is defined in query. each time it complains something different. I
    get really confused.
    Thanks again.
    Yueming

Maybe you are looking for

  • Unable to install Leopard 10.5 on the Mac Pro.

    Dear Gentlemen, In the past two weeks I tried to install windows on the Mac Pro with *Boot Camp* but unfortunate that the *Boot Camp* dose not support when the Raid Card is installed in the Mac Pro so I ask the support in my area and he said ((just r

  • How can I get rid of a vertical ad section in Yahoo games that has popped up on the right and takes 30% of the game window away. I can't get rid of it.

    A few days ago, Yahoo decided to put up a vertical section on the right side of the game window that takes up 30% of the screen in the game. I have not been able to get rid of it. I asked the Yahoo Customer Care rep and she said that it is not suppos

  • Battery Rejected

    I recieved the Torch 9800 that the store had out as the demo, and consequently the battery would only last a day. After a week, I went to the battery shop and the guy behind the counter gave me a new one after transfering the security data from the o

  • Content Server 5 error

    Hi, can someone help me with this error message below. It is appearing in our pcserr.log. We are using CS 5.02 Thanks very much. Lars java.lang.StringIndexOutOfBoundsException: String index out of range: -37776 at java.lang.String.substring(String.ja

  • HT201209 Redeem button not appearing??

    The redeem button is not appearing in itunes or app store even though i scroll all the way to the bottom. There is nothing on the screen at all. Any ideas? This is a childs ipod and we may not have entered any charge / credit details when we set it u