I am trying to dynamically set the RuntimeUserID and RuntimePassword to a specific 
datasource depending upon the user.  
I have tried the following:
1.  To set the datasource parameters in the onBefor ExecuteEvent of the dataobject
using the set runtimeUserID and setRuntimeUserPassword.  This does not work 
consitently with multiple users.    
CSpDBConnection dcThis = request.getDBConnection();
        CSpDataSource dsTest2 = dcThis.getDataSource();
        EC_Mall.log("DatSOurce UerName: " +  dsTest2.getRuntimeUserID() + " Password: 
" + dsTest2.getRuntimePassword()); 
        CSpDataSource dsIntershop = EC_Mall.getDataSource(dsTest2, 
EC_Platform.getAssociationID());
        EC_Mall.log("DatSOurce UerName: " +  dsIntershop.getRuntimeUserID() + " 
Password: " + dsIntershop.getRuntimePassword());
        dcThis.setDataSource(dsIntershop);
        
                
                //adding code to change fetch from curser to memory table.  ND bug 
with Sybase
                
request.getDBExecuteControl().setFetchMethod(CSpDBExecuteControl.MEMORY_TABLE_FETCH_METHOD);
        
        request.setDBConnection(dcThis);
        CSpDBConnection dcTest = request.getDBConnection();
        CSpDataSource dsTest = dcTest.getDataSource();

2.To set the CSpLogin element in the 
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to