Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartClient 6.0 Patch for DB Config save functionality breakage in AdminConsole

    In the 6.0 build, the Admin Console configuration "save" functionality errors out. To fix the issue, please paste the entirety of the following code into the /tools/adminConsole.jsp file between the <SCRIPT> tag and the line that reads "DBConsole.create({".

    Note that if you're currently using the Admin Console from the Developer Console, you'll need to instead using the standalone version (/tools/adminConsole.jsp).

    Note: AdminConsole functionality is only present in builds that include the SmartClient server.

    Code:
    //----------------------------------------------------------------------------
    // Isomorphic SmartClient v6.0 patch
    // Purpose: Fix for error when saving Database configuration in AdminConsole
    // 
    // Applies to SmartClient version 6.0 only
    //----------------------------------------------------------------------------
    if (window.isc && isc.version.startsWith("6.0/")){ 
    isc.DBConfigurator.addProperties({
    saveDB : function () {
        if (!this.dbForm.validate()) return;
        // do the save and dbConfig fetch in one operation to refresh the list of databases
        isc.RPCManager.startQueue();
        this.adminConsole.performOperation("saveDBConfig", this.dbForm.getValues(), this.getID()+".saveDBCallback(data)");    
        this.getDefinedDatabases();
        isc.RPCManager.sendQueue();
    }
    });
    } else if (window.isc) {
      isc.Log.logWarn("Patch for SmartClient 6.0 included in this application. " +
                "'. This patch is not compatible with this build and will have no effect. " +
                "It should be removed from your application source.");
    }
    Last edited by Isomorphic; 13 Nov 2007, 13:56.
Working...
X