I guess you won't be able to addDynamicCriterion in the
onSessionExpiringEvent since DynamicCriterion is kept in UserSessionObjects,
and ND may be in no mood to put something in UserSession when the Session is
on its deathbed.

I would do an executeImmediate instead.


Aby

> -----Original Message-----
> From: Gueorgui Nikolov Popov [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 31, 1999 11:01 AM
> To:   NetDynamics Forum
> Subject:      [ND] Problem on onSessionExpiringEvent
> 
> We want to make a database update on the onSessionExpiringEvent and we
> received a warning that says
> 
> 27      May 31, 1999 at 08:48:01.125    Warning CNdPEGC CPService
> Inbursa.doConectado:c:927924514707:w:927924514467:constructDefaultUp
> dateDBRequest: This CSpUpdate does not allow entire table updating. You
> must add Dynamic Criteria or turn the 'EnableEntireTableUpdate' flag
>  on !
> 
> we add addDynamicCriteria and we don't want to update all the table !
> Here is the code that we have in the onSessionExpiringEvent
> 
>  public int this_onSessionExpiringEvent(CSpProjectSessionEvent event)
>  {
>   CSpSession csSession = event.getActiveSession();
>   CSpUpdate doConectado =
> (CSpUpdate)CSpider.getDataObject("doConectado");
>   CSpDataField csConectado =
> doConectado.getDataField("dbo_CLUSUARIOS_Cli_Conectado");
> 
> doConectado.addDynamicCriterion(1,CSpCriteriaSQLObject.EQUAL_TO_STR_OPERAT
> OR,csSession.get("NumCliente"));
> 
>   csConectado.setValue(new CSpString("0"));
>   doConectado.execute();
>   return (PROCEED);
>  }
> 
> THANK YOU VERY MUCH !! << File: Card for Gueorgui Nikolov Popov >> 
_________________________________________________________________________

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