Access DataField in Itemrenderer when submitting to Database

Hello,
I'm really stuck on this one. I have setup an Itemrenderer in a Datagrid which manages a DateField. Users can enter a date and other values directly in the datagrid. When they click 'submit', I want to populate a row in a database and I have setup a service for this. A row is created in the db as expected however the date is not populated despite users having entered a value. Below is a code snippet:
Datagrid
<s:GridColumn dataField="datf" headerText="Period From" rendererIsEditable="true">
     <s:itemRenderer>
          <fx:Component>
               <s:GridItemRenderer dataChange="updateRenderer()">
                    <fx:Script>
                         <![CDATA[
                                   public function updateRenderer():void {
                                        periodFrom.text = outerDocument.dtf1.format(data.datf);
                                   private function dateField_labelFunc(item:Date):String {
                                        periodFrom.text = outerDocument.dtf1.format(item);
                                        return outerDocument.dtf1.format(item);
                         ]]>
                    </fx:Script>
                         <mx:DateField horizontalCenter="0" verticalCenter="0" width="90%" id="periodFrom" labelFunction="dateField_labelFunc"/>
               </s:GridItemRenderer>
          </fx:Component>
</s:itemRenderer>
</s:GridColumn>
Handler
protected function createBillResult_resultHandler(event:ResultEvent):void
                                        var dataProvider = itemsDg.dataProvider;
                                        var item = null;
                                        for (var i:int = 0; i < dataProvider.length; i++){
                                                  item = dataProvider.getItemAt(i);
                                                  trace(item.datf); <--- THIS IS 'UNDEFINED'
                                                  billItems.days = item.days;
                                                  billItems.ratu = item.ratu;
                                                  billItems.lnid = item.lnid;
                                                  trace(billItems.datf = dtf2.format(item.datf));
                                                  createBillItemsResult.token = billingService.createBillItems(billItems);
I would have thought that I can access the value from the itemrenderer using the dataField property like I do with the other items.
Please, please, please help.
Brian

This error "TypeError: Error #1009: Cannot access a property or method of a null object reference" usually show when you are trying to set something that doesn't exist at the time of calling.
I create a test code and it works for me. Try to replicate you issue here:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
        <![CDATA[
            import mx.collections.ArrayCollection;
            import mx.controls.Alert;
            // Data includes URL to album cover.
            [Bindable]                       
            private var initDG:ArrayCollection = new ArrayCollection([
                { Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99, datf:'01/01/2012'},
                { Artist:'Pavement', Album:'Brighten the Corners',     Price:11.99, datf:'01/01/2012'}
            private function addEmptyRow():void{
                myGrid.dataProvider.addItem({
                    'Artist':'',
                    'Album':'',
                    'Price':0,
                    'datf':''
            private function showData():void{
                Alert.show('Done');
        ]]>
    </fx:Script>
    <s:VGroup>
    <s:DataGrid id="myGrid" dataProvider="{initDG}" width="100%" variableRowHeight="true" editable="true">  
        <s:columns>
            <s:ArrayList>
                <s:GridColumn dataField="Artist"/>
                <s:GridColumn dataField="Album"/>
                <s:GridColumn dataField="Price"/>
                <s:GridColumn dataField="datf" headerText="Period From" rendererIsEditable="true">
                    <s:itemRenderer>
                        <fx:Component>
                            <s:GridItemRenderer>
                                <fx:Script>
                                    <![CDATA[
                                        public function updateData():void {
                                            data.datf = periodFrom.selectedDate;
                                    ]]>
                                </fx:Script>
                                <mx:DateField horizontalCenter="0" verticalCenter="0" width="90%" id="periodFrom" formatString="MM/DD/YYYY" text="{data.datf}" change="updateData()" />
                            </s:GridItemRenderer>
                        </fx:Component>
                    </s:itemRenderer>
                </s:GridColumn>
            </s:ArrayList>
        </s:columns>
    </s:DataGrid>
    <s:Button label="Add Row" click="addEmptyRow()" />
    <s:Button label="submit" click="showData()" />
    </s:VGroup>
</s:Application>

Similar Messages

  • State service error when submitting InfoPath form to Library

    I have a problem and looks like Google couldn't help me.. I really hope someone here will be able to.
    I have a Form Library using a custom form. When submitting the form to the library, users are getting this error. I don't get the error with my own user, only difference is I have full access to the farm and content using web app policy.
    ULS logs give me few informations
    SharePoint Server
    State Service
    bm1k
    Medium
    StateSqlSession.GetItemBytesInternal() Locked row in database for key ba18f90ee2e844468b08e90ad96dff2c_05967b71a21948d39b7d4d3ada9b27c9 for 4 seconds
    SharePoint Server
    State Service
    bm0t
    Unexpected
    StateManager.GetState() Locked data (05967b71-a219-48d3-9b7d-4d3ada9b27c9)
    InfoPath Forms Services
    Runtime - State Service
    b5st
    Medium
    MOSS StateService threw an exception: A Microsoft SharePoint Server State Service error occurred while processing your request. For more information, contact your server farm administrator.
    I deleted the State Service and recreated it twice, once with PowerShell and then with the Farm Configuration wizard. Restarted the server. Problem might come from InfoPath Forms Services tho but I don't what else I can do.
    Does anyone have any clue??
    JP Berube | MCTS SharePoint 2010 Configuration and Application Development

    Hi,
    We had the same problem with InfoPath.
    After analysis of servers,it turns out that
    the anonymous user authentication has been enabled on
    the web application server
    via IIS and not via SharePoint
    (unsupported configuration), causing
    side-effects on some queries which
    calls to forms.
    We disabled anonymous access.This desactivation
    causes the functioning of forms again.
    Rachid.

  • Dynamically selecting template when submitting conc program in XML Reports

    Hi Experts,
    I am working on XML Publisher reports with EBS-R12 and database-10g.
    I have two RTFs,(one for USA country and another for Japan) for my report. I created one data defintion, and two templates for same data defintion in XML Publisher responsibility.
    When i submit the concurrent program, i can manually select the template from the available list. My requiremet is, based on input parameter(ORG ID), the template should be selected automatically.
    Is there anyway template can be automatically selected based on condition when submitting concurrent program?
    Waiting for your responses.
    Thanks.

    Look up FND_REQUEST package details.
    Here's some sample code to get you started.
    PROCEDURE submit_report (
                   errbuf out VARCHAR2,
    retcode out NUMBER ,
                   i_conc_prog in varchar2,
                   i_country in varchar2
              ) IS
    lv_req_id number := 0;
    xml_layout boolean;
    lv_template_code varchar2(30);
    lv_template_appl_code varchar2(30);
    lv_output_format varchar2(30);
    cursor c_output_format (p_conc_prog in varchar2, p_country)
    is
    .... Enter your select statement to get your template code and output type based on your criteria
    BEGIN
         open c_output_format(i_conc_prog, i_country) ;
         fetch c_output_format into lv_template_appl_code, lv_template_code, lv_output_format ;
         close c_output_format ;
    xml_layout := fnd_request.add_layout
         template_appl_name => lv_template_appl_code,
                        template_code => lv_template_cide,
                        template_language => lv_template_lang,
                        template_territory => lv_template_territory,
                        output_format => lv_output_format
    IF (NOT xml_layout) THEN
    fnd_file.put_line(fnd_file.log,'Unable to apply ' || lv_template_code || ' template');
    ELSE
    lv_req_id := fnd_request.submit_request
    application => <>,
                        program => i_conc_prog ,
    description => NULL,
              start_time => NULL,
              sub_request => FALSE,
                        argument1 => <>,
                        argument2 => <>,
                        argument3 => chr(0)
    END IF;
    IF lv_req_id <> 0 THEN
    fnd_file.put_line(fnd_file.log,'Submitted '|| lv_req_id );
    ELSE
    fnd_file.put_line(fnd_file.log,'Error submitting request ');
    END IF;
    commit ;

  • SSMS crash when creating new database diagram

    For several years I have been unable to create database diagrams from within SSMS.  I have tried every combination of VS2005, VS2008, VS2012 and VS2013 with every combination of SQL2005, SQL2008, SQL2012 and SQL2014.
    I have installed, uninstalled, and repaired many dozens of times.  I am currently using VS2013 ultimate with SQL2014 express.
    I have tried every related 'workaround' that I can find on the internet.  Still the problem persists.
    Any help would be deeply appreciated.
    Here are the relevant details with file versions:
    In SSMS, I right-click on a database and choose New Database Diagram.  A Blank diagram window appears with the SSMS error dialog:
    ===================================
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Microsoft.VisualStudio.OLE.Interop)
    Program Location:
       at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
       at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
       at Microsoft.Internal.VisualStudio.Shell.Interop.IVsTrackSelectionExPrivate.Register()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConnectSelectionContext()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Activate()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.viewManager_ActiveViewChanged(Object sender, ActiveViewChangedEventArgs e)
       at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
       at Microsoft.VisualStudio.PlatformUI.ExtensionMethods.RaiseEvent[TEventArgs](EventHandler`1 eventHandler, Object source, TEventArgs args)
       at Microsoft.VisualStudio.PlatformUI.Shell.ViewManager.SetActiveView(View view, ActivationType type)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ShowInternal(ShowFlags showFlags)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.<Show>b__26()
       at Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(Func`1 method)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Show()
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.MarshalingWindowFrame.<Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.Show>b__7a()
       at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method)
       at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.MarshalingWindowFrame.Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.Show()
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con, String fileName)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection
    con, String fileName)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn, DocumentType editorType, DocumentOptions aeOptions, IManagedConnection con, String fileName)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.CreateDesignerWindow(IManagedConnection mc, DocumentOptions options)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.InvokeDesigner(IManagedConnection connection)
       at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.Invoke()
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ToolsMenuItemBase.MenuInvokedHandler(Object sender, EventArgs args)
    Version info taken from Sql Server  Management Studio/Help/About dialog:
    Microsoft SQL Server Management Studio      12.0.2000.8
    Microsoft Analysis Services Client Tools    12.0.2000.8
    Microsoft Data Access Components (MDAC)     6.1.7601.17514
    Microsoft MSXML                             3.0 4.0 5.0 6.0
    Microsoft Internet Explorer                 9.11.9600.17358
    Microsoft .NET Framework                    4.0.30319.18444
    Operating System                            6.1.7601
    DLL versions
    c:\Program Files(x86)\Common Files\microsoft shared\Visual Database Tools
    dsref80.dll  version 12.0.21005.1
    c:\Program Files(x86)\Common Files\microsoft shared\MSDesigners8
    msdds.dll    12.0.21005.1
    msddsf.dll   12.0.21005.1
    msddslm.dll  12.0.21005.1
    msdds.mp.dll 12.0.21005.1
    msddsp.dll   12.0.21005.1
    c:\Program Files(x86)\Common Files\microsoft shared\MSDesigners8\Resources\1033
    msddsui.dll 12.0.21005.1

    Hello,
    There is a Connect item related to this issue. This is the link of that Connect item:
    https://connect.microsoft.com/SQLServer/feedback/details/730985/smss-crashes-when-creating-new-database-diagram
    Try the workarounds posted there (Workarounds section).
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Error: You do not have sufficient access to perform a lock on this database

    Hi,
    Can anyone help on this.
    When user try to load data through Excel it throws the following error "You do not have sufficient access to perform a lock on this database"
    We are using Essbase 6.5.
    We have tried following options
    FIX1:
    In Microsoft Excel, under ESSBASE -> OPTIONS, under the MODE tab, the check box UPDATE MODE is checked.
    When the UPDATE MODE check box is selected retrievals will automatically lock the corresponding database area with each retrieval. Disable Update Mode to stop locking blocks automatically. In update mode, the Send command (which updates the server with data values from the spreadsheet) does not automatically unlock data after the send.
    1. Launch Microsoft Excel
    2. Select ESSBASE -> OPTIONS
    3. Select the MODE tab
    4. Uncheck "Update Mode" to return to normal mode
    This error is seen when trying to lock and send data via the Hyperion Essbase Spreadsheet Add-in into that fall within a replicated target partition definition
    1. Go to HYPERION APPLICATION MANAGER -> DATABASE -> PARTITIONMANAGER
    2. Select the relevant partition
    3. Select EDIT
    4. On the CONNECT TAB, select SETTINGS and tick the option THETARGET PARTITION CAN BE UPDATED
    Also gave write access to that user.
    Can anyone give another possible solutions.
    With thanks,
    babu

    Hi Raja,
    Check this out../
    Weird problem regarding Essbase Excel plug in
    It might help
    Regards
    Amarnath

  • Error: "You do not have suffficient access to perform a lock on this database

    Hi, <BR><BR>I have a problem with Essbase Excel Add-in, i can´t retrieve because appears this error: Error: "You do not have suffficient access to perform a lock on this database<BR><BR>Plese, help me. Idon´t have speak inglish.

    If the problem is limited to a single PC, I would suggest that you uninstall the Essbase client on that PC, reboot, and the reinstall the client including the addin. <BR><BR>It appears that some sort of macro is running on that PC that does teh login in update mode. I'd also remove all copies of any excel spreadsheets that might be involved, copying a clean version from another PC.<BR><BR>If you are using any third-party tools, like toolbars or other addins for excel and essbase, I'd clean them out also. <BR><BR>You haven't said whether a login from an new, blank spreadsheet works. If it does, the problem is in the spreadsheet you are using to retrieve the application, otherwise, the problem may be in a corrupted add-in, or even possibly with your excell installation.<BR><BR>It's hard to diagnose a problem when you haven't given us any more information about the problem. You haven't really answered any of the questions we've asked about behaviour and whether the problem existsin certain other circumstances. I'm certain that if language is a problem, someone might be able to help you in some language other than English, but generally this forum works in English because it a a common language in the Hyperion community.

  • "media server application expectly quit" when submitting from final cut pro

    browsing through the list, it seems the problem couldn´t be solved so far.
    doing some systematic testing, the following riddle shows up:
    ... when adding a QT ref movie (or movie) directly to the compressor batch list and submit to the cluster, everything runs fine.
    ... when exporting from final cut pro:
    menu -> export -> using compressor ...
    submitting in compressor using:
    1) Cluster: this computer: everything keeps running fine.
    2) Cluster: MylovelyCluster ....
    the job fails with the message "Failed: HOST [clusternode_name.local] media server application unexpectedly quit"
    since there is 5TB + of data to be compressed, copying files to the render nodes is not an option. all data is on a shared xraid, connected via giganet.
    Any ideas, any hints appreciated !
    regards,
    p.s. Anybody running an XSAN having the same issues?
    G5s, G4s, G3s, macminis, powerbooks   Mac OS X (10.4.7)   xraid

    ... well, the answer is in other topics.
    showstopper explains it patently again and again ...
    thanks from here.
    shortly: when submitting from FCP, every node HAS to have FCP installed and MUST have access to the same relative file path (mounted shared volume). If the volume is not present, the render node will open the reconnect media dialogue and waits for user input.

  • Issue when submitting XML report from back end.

    Hi All,
    I have a customized XXPrinted Purchase Order Report where I am submitting it from back end as below.
    l_var := fnd_request.add_layout (template_appl_name =>'XX Custom',
    template_code =>'XX_PRINTED_PO',
    template_language =>'English',
    template_territory =>null,
    output_format =>'PDF');
    l_request_id :=fnd_request.submit_request
    (application => 'XX',
    program => 'XX_PRINTED_PO',
    When I am executing this block in PO approval workflow with the customized function XXPO_COMMUNICATION_PVT.fax_po
    It is submitting the report but output is showing in xml data (not in pdf)
    Please let me know if I am missing anything.
    Thanks in advance.

    Please post the details of the application release, database version and OS.
    Can you post the concurrent request log file here?
    Can you find any errors in the OPP log file ($APPLCSF/$APPLLOG/FNDOPP*)?
    How to Use FND_REQUEST.ADD_LAYOUT When Submitting a Concurrent Request Via a PL/SQL Procedure [ID 308658.1]
    Thanks,
    Hussein

  • Check database integrity throws 665 error when executing check database integrity task in SSMS.

    I have read all other cases that relate to this error and cannot get this to work. Running SQL Server 2012 sp1 on Windows server 2012 R2. Disk space and permissions are fine, but I get the error below when I try and use the check database integrity task
    within my maintenance plan on both system and user databases. I have researched this and fragmentation is not the issue. I'm lost at this point and would appreciate at least some steps to try. databases are not "read only" as I have read this may
    contribute to the problem. All other maintenance tasks run fine.
    Error message from SQL LOG
    Check Database integrity on Local server connection
    Databases: All system databases
    Task start: 2014-01-13T11:00:04.
    Task end: 2014-01-13T11:00:04.
    Failed:(-1073548784) Executing the query "DBCC CHECKDB(N'master', NOINDEX)
    " failed with the following error: "A database snapshot cannot be created because it failed to start.
    A database snapshot cannot be created because it failed to start.
    MODIFY FILE encountered operating system error 665(The requested operation could not be completed due to a file system limitation) while attempting to expand the physical file 'E:\\SQLdata\\MSSQL11.MSSQLSERVER\\MSSQL\\DATA\\master.mdf:MSSQL_DBCC9'.
    The database snapshot for online checks could not be created. Either the reason is given in a previous error or one of the underlying volumes does not support sparse files or alternate streams. Attempting to get exclusive access to run checks offline.
    The database could not be exclusively locked to perform the operation.
    Check statement aborted. The database could not be checked as a database snapshot could not be created and the database or table could not be locked. See Books Online for details of when this behavior is expected and what workarounds exist. Also see previous
    errors for more details.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Error Message from Log File Viewer in SSMS:
    Source: Check Database Integrity Task      Executing query "USE [ReportServer]  ".: 50% complete  End Progress  Error: 2014-01-13 11:31:54.92     Code: 0xC002F210    
    Source: Check Database Integrity Task Execute SQL Task     Description: Executing the query "DBCC CHECKDB(N'ReportServer')  WITH NO_INFOMSGS  " failed with the following error: "A database snapshot cannot be created
    because it failed to start.  A database snapshot cannot be created because it failed to start.  MODIFY FILE encountered operating system error 665(The requested operation could not be completed due to a file system limitation) while attempting to
    expand the physical file 'E:\SQLdata\MSSQL11.MSSQLSERVER\MSSQL\DATA\ReportServer.mdf:MSSQL_DBCC9'.  The database snapshot for online checks could not be created. Either the reason is given in a previous error or one of the underlying volumes does not
    support sparse files or alternate streams. Attempting to get exclusive access to run checks offline.  The database could not be exclusively locked to perform the operation.  Check statement aborted. The database could not be checked as a database
    snapshot could not be created and the database or table could not be locked. See Books Online for details of when this behavior is expected and what workarounds exist. Also see previous errors for more details.". Possible failure reasons: Problems with
    the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.  End Error  Progress: 2014-01-13 11:31:54.93     Source: Check Database Integrity Task     
    Executing query "USE [ReportServerTempDB]  ".: 50% complete  End Progress  Error: 2014-01-13 11:31:55.02     Code: 0xC002F210     Source: Check Database Integrity Task Execute SQL Task    
    Description: Executing the query "DBCC CHECKDB(N'ReportServerTempDB')  WITH NO_INFOM..." failed with the following error: "A database snapshot cannot be created because it failed to start.  A database snapshot cannot be created because
    it failed to start.  MODIFY FILE encountered operating system error 665(The requested operation could not be completed due to a file system limitation) while attempting to expand the physical file 'E:\SQLdata\MSSQL11.MSSQLSERVER\MSSQL\DATA\ReportServerTempDB.mdf:MSSQL_DBCC9'. 
    The database snapshot for online checks could not be created. Either the reason is given in a previous error or one of the underlying volumes does not support sparse files or alternate streams. Attempting to get exclusive access to run checks offline.".
    Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.  End Error  Progress: 2014-01-13 11:31:55.02     Source:
    Check Database Integrity Task      Executing query "USE [AddressUpload]  ".: 50% complete  End Progress  Error: 2014-01-13 11:31:55.13     Code: 0xC002F210     Source:
    Check Database Integrity Task Execute SQL Task     Description: Executing the query "DBCC CHECKDB(N'AddressUpload')  WITH NO_INFOMSGS  " failed with the following error: "A database snapshot cannot be created because
    it failed to start.  A database snapshot cannot be created because it failed to start.  MODIFY FILE encountered operating system error 665(The requested operation could not be completed due to a file system limitation) while attempting to expand
    the physical file 'E:\SQLData\MSSQL11.MSSQLSERVER\MSSQL\DATA\database1.mdf:MSSQL_DBCC9'.  The database snapshot for online checks could not be created. Either th...  The package execution fa...  The step failed.

    ReFS is NOT supported in use with SQL Server 2012. Once such item, which you've stumbled upon is the fact that alternate streams and sparse files are not implemented in ReFS and thus these issues are caused. You *could* force the checkdb to execute by using
    WITH TABLOCKX but that'll require exclusive access to the database for the duration of the checkdb scan and that's not something I would advise to do.
    Sean Gallardy | Blog |
    Twitter

  • DB Tool List Table: How to access tables which are in different SQL database ?

    Hi, All,
    I'm working on a database application (SQL server) and is evaluating the NI DB Tool kit for this project.
    One of the requirement is that I need to access tables which are in two different database
    (say Table A in DB 1 and Table B in DB 2).
    Our IT guys has linked Table A in DB1 to DB 2 and I verfied this when I use the SQL server managment studio.
    When DB 2 tables are populated, Table A from DB1 is also there. I can also do the same thing using MS Access.
    Table A in DB1 is avalaible to me enven though I only connect to DB 2.
    Here comes the problem.
    When I use DB Tool List Table.vi to access DB2, it does NOT list Table A in DB1. It only list the tables in
    the database (DB2) which I make connection to (using DB Tool Open Connection.vi with a file DSN)
    So my work around right now is to open two seperate connection to DB1 and DB2. However, this approach
    obviously creates a problem when I have to access seperate database constantly in my application.
    What would be a solution to this ? I've search the forum but only see one post that's somewhat related to
    my question. (And it was posted on 2004) Perhaps I need to alter the code in the orignial VI (DB Tool List Table.vi)??
    My IT guy told me he has not encountered this scenario since he writes codes in other enviroment such as
    VB and others, and he's always been successful by linking tables to different database. 
    I hope my question is sound and clear since I really don't know much about database terminology.
    Any comment/suggestion is much appreciated !!!
    Thanks
    Chad
    Solved!
    Go to Solution.

    To josborne:
    To answer your question:
    - Are the two databases contained on the same SQL Server instance? 
    Or are the databases on separate instances?  I assume they are on
    separate servers, otherwise this wouldn't really be an issue.  But its
    good to know because it will affect how you build your SQL statements.
    Yes they are on separate instances. 
    - Ask your IT people specifically how they "linked Table A in DB1 to
    DB 2".  I assume they used "linked servers". 
    Maybe I used the wrong terminology "linked." They created a "View of Table A (DB1)" in DB2 using the management studio.
    Here is a screen shot of that. As you can see, dbo.VISUAL_WORK_ORDER is seen under LABVIEW database in the management studio.
    I also see the same table when I make connection to database using MS Access.
    Could you elaborate on "configure your SQL statement correctly" =) ? The purpose of using LabView's took kit is so that I can do
    minimum SQL statements. Are you talking about modifying LabView's native VI (DB Tool List Table.vi) ?
    Thanks for the information. SQL is just something new to me.

  • How are attachments handled when submitting a form

    If a user attaches a file to a PDF form, can the attachment be submitted to a database or spreadsheet? Does the attachment need to be extracted from each form individually?

    When submitting, there are a number of quite different possibilities. I'll discuss the file attachments that can be attached as comments since we were discussing them in a different thread.
    You can set up a submit form action to include the entire document (PDF) or just the form data and comments (annotations).  In order to include the file attachments, you need to use either FDF or XFDF. You'd then have to be able to have some means to extract the attachments from the data files.
    If submitting as "HTML", there's a different method that you have use that conforms to RFC 1867, which is nice because it allows you to take advantage of code that used to process HTML forms. It's a more complicated setup on the form since the form needs a text field for each file that will be uploaded.
    Once the server gets the data it can do whatever it wants with it. This is a big subject and really beyond the scope of these forums. Probably the simplest method is to store the files securely on the server.

  • I get this error when submitting the issue to DPS

    Hi am using Woodwing Enterprise to publish folios to the Adobe DPS and it has been okay, I have finished creating of a new issue and I get this error when submitting the issue to DPS : Adobe Distibution Server returned error while calling "createIssue". HTTP code: 401. HTTP message. " Unknown error.". Adobe results message: " Unauthorized for access. See logs for further details." Adobe results status: " UNAUTHORIZED." The DPS account was recently renewed

    Please contact gold support about this issue.

  • Error messages when submitting a validated RSS feed URL to iTS.

    Why do I keep getting error messages when submitting a validated RSS feed URL to iTS. Feed is http://streaming.integrationworks.com:3000/archive/feed2.xml
    I get variations on the follwoing message: "We had difficulty reading this feed. Bad http result code: 504"
    I validated this file at http://www.feedvalidator.org/. I am able to manually place it in iTunes (Open Stream) and download episodes. I can paste the URL in my browser and retrieve an RSS feed page.
    Any ideas?
    Rick

    You have to remember that when subscribing manually, it's only your iTunes application which is doing this - the Store is not involved at all. When submitting, the Store software checks the feed as a technical check before its assessed for content by humans; but how this is done and what sort of call is made to the server is another of Apple's dark secrets.
    You're the third with a similar situation in the last couple of days, and I've seen this arise before: though the specific message about a proxy server is unique to you. (A proxy server would act as an intermediary - anyone accessing the feed would ask the proxy for it, and the proxy would retrieve it from the actual server and pass it back, masking the original server's URL in the process. Whether this is actually what is going on is obviously something only your server technicians can say - and then there's the question of what is different about a request from the iTunes Store.)
    If all else fails you could place the feed on another server and try again - you could do this and leave the episode media files where they are, they don't have to be on the same server as the feed, as long as the server in question can handle 'byte-range requests' (which is a quite separate can of digital worms).

  • Avoiding concurrency errors when updating a database through AJAX

    What are some strategies for avoiding concurrency errors when updating a database through AJAX. That is, in cases where a given user could attempt to modify the same row in the database with simultaneous requests (say, that he updates one column with information with an AJAX call, then immediately submits a form that updates the same row), what are some good ways yo prevent the two updates from colliding? On the JavaScript side one might make the AJAX call synchronous, but I question whether that is the best way to do it. Has anyone else confronted this?

    Well, since no one seems to have any ideas so far, I'll throw in my two cents worth.
    I'm not too familiar with AJAX so my advice may be limited.
    I suggest you do a google search on Optimistic concurrency database to get some ideas on how to handle it.
    If your update/insert/delete query is thread safe, then even if the same user double clicks the button fast enough to immediately have another update to the same record, then the first update will complete before the second one is carried out. Therefore no harm is done since he is just updating the same record. Since a typical update/insert/delete takes only a few milliseconds (querying may take a lot more time), its not likely he can click the button that fast. (I assume your using connection pooling for speed).
    The trouble comes up when two people call up data from the same record in different browsers. The first one updates/inserts/deletes the record. Now the other user is looking at old data. When he updates/inserts/deletes, there is a problem. One way to handle this is to keep a copy of all the fields from that record in each user's session scope when they first fetch it from the database (example: oldName). Then when you go to update some time later, to this:
    sql= update person set name=newValue where personID=3344 and name=oldName
    Note oldName is from session scope.
    If name in the database has changed, the update will not occur and will return 0 records updated. If it didn't change, it will update.
    Note your update function should not throw an exception if it cant update, it should return false. Return true if it worked.
    Example: public boolean updateName(String name)
    Similiarly, your insert should not throw an exception if the record already exists, it should return false meaning it cant insert.
    Exaple: public bolean insertName(String name). Same thing with delete function.
    If a record cant be updated due to someone else updating the record while the user was looking at data, return a message that it wasn't updated due to that problem. Then show the user the new value in the database ask him if he wants to overwrite the new change.
    Note even if you show 100 records on the JSP, only update the ones that have changed and not all 100. This way, its not likely he has updated the same records someone else has altered. Less likely a colision compared to updating all 100.
    If your updating/inserting/deleting more than 1 record (say, 3), then you should look into setting up a transaction in addition to all the above and rolling back all of them if one fails.
    Reading the section on databases from http://www.javapractices.com/home/HomeAction.do may also help.

  • When SAP MaxDB Database Version 7.8 community will appear on downloads?

    Hi,
    when SAP MaxDB Database Version 7.8 community will appear on downloads?
    regards.
    Clóvis

    Hi, Roland,
    What product as a java developer i must buy to become a SAP customer, and have access to all things about SAP MaxDB newer versions?
    best regards.
    Clóvis

Maybe you are looking for

  • Creation of new user

    Hi all , how to create a new user in linux

  • Firefox wont open as it cannot find the file HELP!!!

    My firefox wont open, when i click anything to get on firefox it comes up with windows cannot find firefox == This happened == Every time Firefox opened == randomly after i shut down my computer once == == User Agent == Mozilla/4.0 (compatible; MSIE

  • Problems connecting to WPA2 with D-Link DIR655 router

    I've searched around online and on these forums and I am finding that other people are having similar problems with connecting their iPhone or iPod to the wireless network. However, none of the answers seem to be dead-on solutions and the problem app

  • Problem with propagation

    I had successfully configired streams in my environment.Initailly whatever i performed dml operations like insert its replicate to my target database .When delete one row from my source database ,not deleted from my target database hence then whateve

  • Will updating to the latest GarageBand help with RAM issues?

    Without fail, whenever one of my GarageBand projects exceeeds 4GB in filesize, I get the "Project cannot be played - too many instruments" error. I proceed to lock every track and delete every unused track. It makes zero difference and I can only pla