Flex 4 Advanced DataGrid Refresh with database record changes at server end

I've visited a number of posts regarding this problem and none of the solutions presented seem to fix the issue I'm having. I'm beginning to think it is a bug with the DataManagement functions in Flex.
In my application I have followed the example presented on the Flex 4 tutorials:
"Using data management to synchronize server updates".
http://help.adobe.com/en_US/Flex/4.0/FlexTutorials/WSbde04e3d3e6474c4292a0331216558354b-80 00.html#WSbde04e3d3e6474c4-211e6e7c12846356a0c-8000
I've tried with both client-side and server-side typing with the same issue.
I'm using Flex 4 with ColdFusion 9 connecting to an MSSQL 2008 database. The table I'm working with uses a GUID as the identifyer (I have also tried with unique numeric types too).
The application is running fine besides one issue. I am using the myService.commit(); control to do a bulk update to rows that have been added to the DataGrid. At the database end I am inserting values into some fields that are not determined at the client end. The database is updating fine, so the commit seems to be doing that part of the work. However, there does not seem to be any way of reflecting those new values provided at the ColdFusion CFC insert within the DataGrid. I've tried re-assigning the DataGrid to the dataProvider / different dataProvider after the commit. Refreshing the DataGrid using myDataGrid.dataProvider.refresh() seems to partly work. i.e. The Grid is refreshed with the records it held before I added any + the first row of the new inserts. The missing rows are only visible if I do not refresh at all (without their server side changes) or if I reload the entire page.
Any help would be greatly appreciated.
Cheers
Pat
PS. If I add further rows to the DataGrid and then commit a subsequent time then it refreshes with the rows that were missing on the previous commit and the first row of the latest commit.
Message was edited by: Pat Moody

My solution when adding new values at the server end is to modify the  createEmployee in the CFC to something like this. In this example I'm  using modified_date as the additional field maintained at the server  end. This could be any number of additional fields.
Basically it's  doing an insert and then a select. Tried returning as array / Employee  but couldn't get that to work so using the query object return type of  "any". Using this method, no refresh is required on the DataGrid.
<cffunction name="createEmployee" output="false" access="remote" returntype="any" > 
     <cfargument name="item" type="Employee" required="true" /> 
         <cfquery name="qCreateEmplyee" datasource="fb_tutorial_db" result="result"> 
             INSERT INTO employees (first_name, last_name, gender, birth_date, hire_date, modified_date ) 
             VALUES (<CFQUERYPARAM cfsqltype="CF_SQL_VARCHAR" VALUE="#item.fname#">, 
                     <CFQUERYPARAM cfsqltype="CF_SQL_VARCHAR" VALUE="#item.lname#">, 
                     <CFQUERYPARAM cfsqltype="CF_SQL_VARCHAR" VALUE="#item.gender#">, 
                     <CFQUERYPARAM cfsqltype="CF_SQL_DATE" VALUE="#item.bdate#">, 
                     <CFQUERYPARAM cfsqltype="CF_SQL_DATE" VALUE="#item.hdate#">,
                     <CFQUERYPARAM cfsqltype="CF_SQL_TIMESTAMP" VALUE="#now()#">) 
         </cfquery> 
         <cfset var qItem=""> 
         <cfquery name="qItem" datasource="fb_tutorial_db"> 
           SELECT 
           #result.GENERATED_KEY# as emp_id
           ,first_name as fname
           ,last_name as lname
           ,gender
           ,birth_date as bdate
           ,hire_date as hdate
           ,modified_date as mdate 
           FROM employees 
           WHERE emp_no = <CFQUERYPARAM CFSQLTYPE="CF_SQL_INTEGER" VALUE="#result.GENERATED_KEY#"> 
         </cfquery> 
      <cfreturn qItem>                         
</cffunction>

Similar Messages

  • Flex Advanced DataGrid with dynamic grouping

    Can we implement something similiar as in below link, using flex 3.
    http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/grouploadmodeclient/defaultcs.a spx
    I am not sure if flex 3 allows grouping of columns based on drag - drop component. Plus how to show the pictorial view of grouped columns, same as in the above example.
    Any help greatly appreciated.

    This blog post seems to answer your question:
    http://blog.flexgeek.in/2007/06/tips-tricks-adding-a-combobox-to-a-datagrid-header-as-head errenderer/
    http://omalraj.com/2009/06/flex-datagrid-header-with-a-combobox-filter/
    http://franto.com/custom-header-in-datagrid-part-2/
    http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • Dynamic load Advance Datagrid for First 10 Record

    Hi
    I have a Advance Datagrid and i have to display the datas of first 10 records in the Grid and then to display the next 10 Records when i scroll the Datagrid
    Can Any one help me in this to Complete the task
    With Regards
    Gopinath.A
    Software Engineer,
    First Internet Systems Pvt Ltd.,
    Chennai.
    India

    Hi danny,
    Thanks for Your Reply...
    I have implemented the same.But i cant get the result..Can u Please send me any Example Regarding it
    With Regards.
    Gopinath.A
    Software Engineer.
    First Intenet Systems.
    Chennai.

  • Run Reporting services 2005 with databases housed on SQL Server 2012?

    Hi, I have a RS 2005 install in which the ReportServer and ReportServerTempDB databases reside on a different SQL Server 2005 server. I am planning to upgrade DB server to 2012 and would like to keep SSRS as 2005.As a second phase I will upgrade SSRS2005
    to SSRS 2008. So I would be running something like this:
    Server A: SQL 2005 Reporting Services
    Server B: SQL 2012 database engine - housing ReportServer and ReportServerTempDB
    Is this configuration supported? 

    Hello,
    According to the
    BOL, Report Server service checks the database version at startup. If the report server is connected to a database that is an earlier version, the report server will update the database during startup.If you have a newer report server database, you
    cannot use it with an earlier version of a report server instances.
    In that case, the earlier versions of SQL Server Database Engine that can be used to host the SSRS report server databases. For example, In SQL Server 2005 Reporting Services, we can use either SQL Server 2000 or SQL Server 2005 to host the databases, for
    SSRS 2012, we can use SQL Server 2012,2008 R2,2008,2005.
    Based on my test, In the Reporting Services 2005 Configure Manager, we can create a new database on a remote SQL Server 2012 database engine and the Initialization is successful.
    In this way, the databases are created from the script file which installed with the Reporting Services instance, you can find the Catalog.sql and CatalogTempDB.sql  under folder C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer.
    However, when upgrade the existing ReportServer database and ReportServerTempDB database on the SQL Server 2012 by restore from a backup, we cannot use this existing database for Reporting Services 2005 and get the following message:
    The database version (162) does not match your reporting serivces installation.And the initialization failed.
    In your case, you can host the ReportServer database and ReportServerTempDB database of SSRS 2005 on SQL Server 2012 database enginer by create a new database from Reporting Services 2005 Configure Manager. But you cannot use the existing
    database which upgrade to SQL Server 2012.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Flex Advanced datagrid Auto-sort Disable

    is there any way to remove the auto-sorting in advanceddatagrid in flex 3. i need columns to get sorted only on clicking of headers not with the change of value in editable ADG.

    Alright guys I got the answer. The previous coder was using AdvancedDataGridColumnGroup unnecessarily.
    The ADGColumnGroup has a default behavior of not showing sort arrow.
    So the answer is to use ADGColumn.
    Bhargav

  • Problem with "Database Gateway for SQL Server"

    Hello,
    i am testing the different technologies for connecting an oracle database with a sql-server database.
    The way using 10g-generic-connectivity with ODBC works fine, but the 11g-DG4MSQL makes problems.
    Environment:
    Server PEGASUS (32bit Windows Server 2003 R2 SP2) with Oracle Database 10g Release 10.2.0.4.0
    Server OBELIXUS (32bit Windows 2000 Sp4) with MS-SQL-Server 2005
    On PEGASUS i have installed the gateway in a new oracle home directory:
    "D:\oracle\product\10.2.0\db_1" => home directory of 10g
    "D:\oracle\product\11.1.0\tg_1\" => home directory of the gateway
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora:
    MSSQLDG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DG4MSQL)
    (HS = OK)
    MSSQL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = MSSQLTEST)
    (HS = OK)
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = INTEGRAT)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = INTEGRAT)
    (SID_DESC =
    (SID_NAME = MSSQLTEST)
    (PROGRAM = D:\oracle\product\10.2.0\db_1\bin\hsodbc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_DESC=
    (SID_NAME=DG4MSQL)
    (ORACLE_HOME=D:\oracle\product\11.1.0\tg_1)
    (PROGRAM=D:\oracle\product\11.1.0\tg_1\BIN\dg4msql)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1521))
    D:\oracle\product\11.1.0\tg_1\dg4msql\admin\initDG4MSQL.ora:
    HS_FDS_CONNECT_INFO=OBELIXUS/MSSQLSERVER/testuju
    HS_FDS_TRACE_LEVEL=DEBUG
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    D:\oracle\product\10.2.0\db_1\hs\admin\initMSSQLTEST.ora:
    HS_FDS_CONNECT_INFO=DSN_MSSQL
    HS_FDS_TRACE_LEVEL=OFF
    HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
    HS_FDS_FETCH_ROWS=100
    HS_RPC_FETCH_REBLOCKING=OFF
    How mentioned above, the access from oracle to sqlserver using MSSQL(10g hsodbc.exe) works fine.
    But when trying to acces the sqlserver using MSSQLDG (11g dg4msql.exe) I get the following error:
    ORA-28500: Verbindung von ORACLE zu Fremdsystem gab diese Nachricht zurück:
    [Oracle][ODBC SQL Server Driver][DBNETLIB]Ungültige Verbindung.
    [Oracle][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConnectParams()).
    [Oracle][ODBC SQL Server Driver]Ungültiges Attribut für die Verbindungszeichenfolge
    ORA-02063: vorherige 2 lines von DBL_MSSQL4
    Here the contect of the file "DG4MSQL_agt_2332.trc":
    Oracle Corporation --- FREITAG AUG 22 2008 16:17:42.198
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- FREITAG AUG 22 2008 16:17:42.198
    Version 11.1.0.6.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    HOSGIP returned value of "RECOVER" for HS_FDS_RECOVERY_ACCOUNT
    HOSGIP returned a value for HS_FDS_RECOVERY_PWD
    setting HS_FDS_TRANSACTION_LOG to default of "HS_TRANSACTION_LOG"
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL16UTF16"
    setting HS_FDS_TIMESTAMP_AS_DATE to default of "TRUE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics"
    Exiting hgosdip, rc=0
    ORACLE_SID is "DG4MSQL"
    Product-Info:
    Port Rls/Upd:6/0 PrdStat:0
    Agent:Oracle Database Gateway for MSSQL
    Facility:hsa
    Class:MSSQL, ClassVsn:11.1.0.6.0_0006, Instance:DG4MSQL
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=2000
    HOCXU_DB_CSET=178
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2008/08/22-16:17:42
    RC=-1 from HOSGIP for "PATH"
    PATH from environment is "d:\oracle\product\11.1.0\tg_1\bin;D:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\IBM\Informix\Client-SDK\bin"
    Exiting hgolofn, rc=0 at 2008/08/22-16:17:43
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    Exiting hgoinit, rc=0 at 2008/08/22-16:17:43
    Entered hgolgon at 2008/08/22-16:17:43
    reco:0, name:testuju, tflag:0
    Entered hgosuec at 2008/08/22-16:17:43
    uencoding=UTF16
    Entered shgosuec at 2008/08/22-16:17:43
    Exiting shgosuec, rc=0 at 2008/08/22-16:17:43
    shgosuec() returned rc=0
    Exiting hgosuec, rc=0 at 2008/08/22-16:17:43
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using testuju as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2008/08/22-16:17:43
    HS_FDS_CONNECT_INFO = "OBELIXUS/MSSQLSERVER/testuju"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2008/08/22-16:17:43
    dsn:OBELIXUS/MSSQLSERVER/testuju, name:testuju
    optn:
    Entered shgogohn at 2008/08/22-16:17:43
    ohn is 'OraGtw11g_home1'
    Exiting shgogohn, rc=0 at 2008/08/22-16:17:43
    Entered hgocont_OracleCsidToIANA at 2008/08/22-16:17:43
    Returning 2252
    Exiting hgocont_OracleCsidToIANA at 2008/08/22-16:17:43
    ##>Connect Parameters (len=223)<##
    ## DRIVER=Oracle 11g dg4msql-OraGtw11g_home1;
    ## SERVER=OBELIXUS\MSSQLSERVER;
    ## Database=testuju;
    #! UID=testuju;
    #! PWD=*
    ## AnsiNPW=Yes;
    ## QuotedId=Yes;
    ## IANAAppCodePage=2252;
    ## ArraySize=100;
    ## PadVarbinary=0;
    ## SupportNumericPrecisionGreaterThan38=1;
    Exiting hgogenconstr, rc=0 at 2008/08/22-16:17:44
    Entered hgopoer at 2008/08/22-16:18:00
    hgopoer, line 159: got native error 14 and sqlstate 08001; message follows...
    [Oracle][ODBC SQL Server Driver][DBNETLIB]Ungültige Verbindung.[Oracle][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (ParseConnectParams()).[Oracle][ODBC SQL Server Driver]Ungültiges Attribut für die Verbindungszeichenfolge
    Exiting hgopoer, rc=0 at 2008/08/22-16:18:00
    hgocont, line 1890: calling SqlDriverConnect got sqlstate 08001
    Exiting hgocont, rc=28500 at 2008/08/22-16:18:00 with error ptr FILE:hgocont.c LINE:1910 ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2008/08/22-16:18:00 with error ptr FILE:hgolgon.c LINE:612 ID:Calling hgocont
    Entered hgoexit at 2008/08/22-16:18:00
    Exiting hgoexit, rc=0 at 2008/08/22-16:18:00
    Many thanks in advance for any help!
    Regards Hartmut

    At first your configuration is not really correct.
    =====================================================
    In the LISTENER.ORA from 10g, you must only refer to the database and hsodbc 10g
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = INTEGRAT)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    (SID_NAME = INTEGRAT)
    (SID_DESC =
    (SID_NAME = MSSQLTEST)
    (PROGRAM = D:\oracle\product\10.2.0\db_1\bin\hsodbc)
    (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1521))
    ===========================================================
    Then you have to create a new listener (new name) in the gateway oracle_home on a different port than instance database:
    D:\oracle\product\11.1.0\tg_1\network\admin\listener.ora
    SID_LIST_LISTENERGTW =
    (SID_LIST =
    (SID_DESC=
    (SID_NAME=DG4MSQL)
    (ORACLE_HOME=D:\oracle\product\11.1.0\tg_1)
    (PROGRAM=D:\oracle\product\11.1.0\tg_1\BIN\dg4msql)
    LISTENERGTW=
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pegasus.cursor.de)(PORT = 1522))
    To start it, use the command below:
    D:\oracle\product\11.1.0\tg_1\bin\LSNRCTL start listenergtw
    ===========================================================
    D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora:
    match the DG4MSQL with the listener on 1522 port
    HSODBC match with binary10g on listener 1521 port
    MSSQLDG =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1522))
    (CONNECT_DATA =(SERVICE_NAME = DG4MSQL))
    (HS = OK)
    MSSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PEGASUS)(PORT = 1521))
    (CONNECT_DATA =(SERVICE_NAME = MSSQLTEST))
    (HS = OK)
    Try to configure and let me know your feedback
    regards,
    Mireille

  • Cannot connect to database after change of server ip

    hi gems..
    the ip of our database server has got changed.
    Windows server, 11gr2 database version, archivelog mode.
    i have changed the tnsnames.ora and the listener.ora manually with the new ip.
    I am able to connect to sqlplus "/as sysdba" (since authentiacetion services is NTS)
    But i am not able to connect to 'sqlplus sys/password@sid as sysdba'
    it is throwing the error of
    ERROR:
    ORA-12560: TNS:protocol adapter error
    pls help...

    tnsping sid:
    E:\>tnsping ORCL
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 28-FEB-2
    012 19:11:53
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    E:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.184.1
    32.101)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)
    TNS-12560: TNS:protocol adapter error
    E:\>
    lsnrctl status
    E:\>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 28-FEB-2012 19:13
    :13
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.184.132.101)(PORT=152
    1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 61: Unknown error
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    listener.ora
    # listener.ora Network Configuration File: E:\app\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = E:\app\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:E:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.184.132.101)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    ADR_BASE_LISTENER = E:\app
    ipconfig
    E:\>ipconfig
    Windows IP Configuration
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 10.184.132.101
    Subnet Mask . . . . . . . . . . . : 255.255.252.0
    Default Gateway . . . . . . . . . : 10.184.132.1
    i have changed the ip 10.184.132.101 manually as per the new ip.

  • Website with audio recording + uploading to server

    Hi,
    I am quite new to creating websites with use of java.
    I am trying to create a sound recorder so that some audio can be recorded via a website, which can then be uploaded to a web server.
    I was thinking of just coding away a sound recorder in java, but i have no idea of how that would be integrated so that it can be used on a website.
    I just want to record a file using a web based interface and upload it to the server. I would appreciate if someone could start me off. Thanks in advance for your replies.

    Hi,
    I'm new to the JavaSound API too and am working on some similar ideas. So far I have a crude little capture and playback utility that can launch from Web Start. It doesn't do much but you are welcome to the code if you are interested (it's mostly ripped from jsresource samples anyway ;) ).
    There's a compiled version at http://jamspace.com/java/ , click the link on that page. I've tried this from a few windows systems and it worked on all but one, it might be an older JRE on that machine, I'm not sure.
    Let me know if you'd like me to send you source.
    Cheers,
    jam

  • Help with Crystal Reports changing SQL Server

    I am doing a web site cutover to a new server for a client and have the server up and running using crystal reports server xi r2 sp2 under windows server 2003r2 32bit.
    When I run a report via the webpage it generates a blank page.
    I've edited the old web developers crystal report files and updated the database path howerver when i type in the new SQL server and authenticate to it using the SA account  it then pops up a window asking me to enter values
    has items such as
    @sUserID
    @sSubUserID
    @iSessionID
    etc
    the only way i can continue through this is to check a box for each value 'set to null' which i dont' think is correct.
    What values should I be putting in these areas or should I be getting this infomation from the previous developer?
    much appreciated

    Hello,
    I don't recognize those variables as CR ones so it's likely something the original developer is setting in code.
    You'll have to discuss with that person.
    If your have SDK issues then post your question to one of the .NET or Java SDK forums.
    Thank you
    Don

  • (Advanced)DataGrid with selectable columns

    Hello -
    I'm trying to make a Flex (Advanced)DataGrid component with some mechanism where the user can toggle the visibility of the columns.  I've crudely implemented this by reading in the columns into the right-click menu, and when a column name is selected here, the visibility is toggled.  It works, but it's not the most elegant solution.
    Specifically, I'm trying to emulate the "datagrid" that Mozilla Thunderbird uses to display emails.  Here is an image:
    In the upper right, there is an icon over the scroll bar.  If there is no scrollbar, the icon remains in the same place.  When clicking the icon, it opens up a menu that shows all the possible columns, with the visible ones having a check mark next to them, like this:
    Also, the scroll bar always appears under this button, never "pushing" it over into it's own column.
    I'd like to re-create this in Flex.  I believe the menu part and creating a column with a button headerRendered is easy enough.  But I can't figure out how (if at all possible) to do this with the scrollbar, because the scrollbar always seems to be "its own column".  Any ideas or help would be appreciated.  Thank you.
      - Ian

    This blog post seems to answer your question:
    http://blog.flexgeek.in/2007/06/tips-tricks-adding-a-combobox-to-a-datagrid-header-as-head errenderer/
    http://omalraj.com/2009/06/flex-datagrid-header-with-a-combobox-filter/
    http://franto.com/custom-header-in-datagrid-part-2/
    http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

  • Pagination in Advanced Datagrid ..

    I need to use pagination for Flex advanced datagrid...how should i get the length of the groupingcollection for calculating my page size....
    For the Flex datagrid i have it working as I have the length of dataprovider which will be my page size....
    Any ideas...or can anyone post an example of advanced datagrid with pagination...Will be of great help...
    Thanks

    have a look @ this http://www.adobe.com/devnet/flex/articles/flashbuilder4_datapaging_php.html

  • Keeping Entity EJBs synchronized with Database

    Is it possible that container managed persistance takes care of synchronizing entity beans' states with database record even if there is some external non-Java application that changes the state of the records straigth at database?
    For example:
    1. I map CMP entity bean to a database table's row and query it's state from J2EE client
    2. I modify some data releted to that particular bean in the database: change some values by command line (SQL+ at the case of Oracle) on the row in the table in the database
    3. I query again the same bean's state
    Now, is the state I will get at the section 3 the same I got at section 1? If so, then CMP hasn't synchronized the bean's state and I get wrong value when reading it at second time.
    Can I automatize this synchronization task some how? This is very important issue when trying to take J2EE architecture in use on old legacy database systems which still have their own non-J2EE clients running.

    So if the entity bean is not used in a transaction it's state will not be re-read from the database, correct?There is no such thing.... if you invoke an entity bean in an unspecified transaction context I believe the spec defines it as a non-deterministic situation but in general the state will be re-read(but why would you want to do that?).
    Has the container do a database query for each read of B bean state?This is a vendor specific issue.... it depends on your EJB container provider, I know some vendors have all kinds of configurations to optimize these situations.
    Which are all the situations when an entity bean's state is (re-)read from the database?In general the state will be re-read at the first time a bean is invoked in a single transaction, but vendors offer a lot of mechanisms to configure all kinds of "sunchronization strategies".
    Do you really mean that every time I read a bean's state it will be the same with the database?
    Is there any exceptions? The important thing to notice is that we have to assume that state of the database
    changes all the time by non-J2EE legacy clients. You should be able to control this with the locking mechanisms(as mentioned before) that your container and RDBMS provides. in your situation, it sounds like pessimistic concurrency control would be appropriate.

  • PLEASE HELP!! Need some way to read header text in advanced datagrid using QTP

    I am writing a function to read column names in advanced data
    grid. There is no operation for that and any of the properties that
    I can use to read the column names.
    Please suggest any way that I can get the names of columns in
    the advanced data grid.
    Thanks

    I hope to hear something from adobe folks...I am providing
    more info.....
    I am using QTP 9.2 and Flex 3 add-in available from Adobe.
    My application has flex Advanced datagrid object and I am
    trying to read column names for the datagrid.
    I have contacted developers and they told me that column
    names for flex advanced datagrid are stored in "Header Text"
    I have tried reading "Header Text" using
    GetROProperty("HeaderText") but it doesn't return anything.
    I have tried the following code:
    x =
    Browser("app").FlexApplication("flexapp").FlexCanvas("Canvas").FlexAdvancedDatagrid("esti mategridid").GetROProperty("Header
    Text")
    msgbox x
    I have also tried getting value for column names using other
    available properties for webtables like outerhtml, outertext, alt
    etc. but I don't get any data.
    Part of the problem may be because none of the above
    mentioned properties are supported by Flex Advanced datagrid.
    I have also tried getting child objects but I always get the
    data in datagrid as values but not the column names.
    My primary reason for getting column names is to write a
    function to update cell in datagrid independent of application. So,
    I want to pass column name as a parameter to the function and get
    the corresponding columnIndex in the function by comparing the
    parameter value against column names.
    Thanks to all for you help...

  • Displaying database records in a  Web Pag

    I have built a static web site (1st in 5 years) using CS5 and the DW-CIB course.  My database is ASA11 and I have it configured so php can talk to it.   Before I start building many pages I would like to know which is the best approach to take.
    1) Should I use Spry?
    2) Will Zend be a better approach?
    3) Will learning JavaScript or jquery help?
    I have worked out that spry needs data in either xml or an HTMLDataset so I created a text file with <html> <body> <table> etc. tags plus the data. I can link this file into my web page (manually but not yet dynamically) but somehow I am not convinced this is the correct approach.
    As DW does not support ASA11 I have decided to code in PHP.
    Can someone shed some light on getting good-looking and highly functional dynamic pages?
    TIA Ephraim

    EffyRuby wrote:
    I have built a static web site (1st in 5 years) using CS5 and the DW-CIB course.  My database is ASA11 and I have it configured so php can talk to it.   Before I start building many pages I would like to know which is the best approach to take.
    1) Should I use Spry?
    2) Will Zend be a better approach?
    3) Will learning JavaScript or jquery help?
    I have worked out that spry needs data in either xml or an HTMLDataset so I created a text file with <html> <body> <table> etc. tags plus the data. I can link this file into my web page (manually but not yet dynamically) but somehow I am not convinced this is the correct approach.
    As DW does not support ASA11 I have decided to code in PHP.
    Can someone shed some light on getting good-looking and highly functional dynamic pages?
    TIA Ephraim
    1.  This has nothing to do with database records.  Spry is good and there are also good alternatives like Project Seven for menus and JQuery for effects.  It's about how you use the tools that matter.
    2. Not sure how to answer this one just yet.
    3.  See #1.
    I looked up SQL Anywhere based on the previous post and came across this ( http://m.sybase.com/detail?id=1019698 ).  That is the PHP module for SQL Anywhere databases from Sybase.    I recommend installing that on your server if it is not already installed.  This will give you the functionality to have PHP interact with the database and process as necessary.
    However, as stated in other posts, DW does not support SQL Anywhere (at least to my knowledge).  Because of this, the pre-build functions for querying a database may not work, meaning you will have to manually write queries.  This is not necessarily a bad thing, just involves a little more work.  If there are other PHP functions that you need to use within DW, they should work as advertised.  The reason I held off on answering the Zend question is because it is a completely different beast then Dreamweaver.  Depending on the application you are trying to develop and your knowledge of PHP will determine whether the Zend Studio is right for you. 

  • Populating selectItems with database values

    I'm looking for an example of how to populate a combo box using the selectItems tag with database records. I'd like to be able to populate the item value and item label. I am able to build an array to populate this way, but can not find a good database example. Could someone point me in the right direction?
    Thanks

    public class SQLView {
    private SQLView() { } //Prevents instantiation
    public class Field {
    public static final String id = "id";
    public static final String name = "name";
    public class ProductCategory {
    public static final String select =
    "select id, name from ProductCategory order by name";
    DataAccess.java
    public DataAccess(String confEnvName, String dataSourceName) throws Exception {
    try {
    InitialContext ic = new InitialContext();
    Context envCtx = (Context) ic.lookup(confEnvName);
    DataSource ds = (DataSource)envCtx.lookup(dataSourceName);
    name = confEnvName + '/' + dataSourceName;
    con = ds.getConnection();
    } catch (Exception ex) {
    throw new Exception("Couldn't open connection to database: " +
    dataSourceName + ' ' + ex.getMessage());
    public ResultSet getResultSet(String statement) throws SQLException {
    PreparedStatement st = con.prepareStatement(statement);
    ResultSet rs = st.executeQuery();
    return rs;
    public List resultSetToSelectItems(String statement) throws SQLException {
    List list = new ArrayList();
    ResultSet rs = getResultSet(statement);
    try {
    while (rs.next()) {
    list.add(new SelectItem(new Integer(rs.getInt(SQLView.Field.id)),
    rs.getString(SQLView.Field.name)));
    finally {
    rs.close();
    return list;
    Catalog.java
    public synchronized List getCategoryList() throws SQLException {
    if (categoryList == null) {
    categoryList = dataAccess.resultSetToSelectItems(SQLView.ProductCategory.select);
    if (!categoryList.isEmpty()) {
    categoryId = (Integer)((SelectItem)(categoryList.get(0))).getValue();
    else {
    categoryId = new Integer(0);
    return categoryList;

Maybe you are looking for