(btw most Americans are at la playa today, on the way myself)
1. This probably doesn't have anything to do with the immediate problem,
but you should call clearDynamicCriteria to get rid of any criteria that
might be hanging around from last time, before setting your new criterion.
2. Make sure that your getSessionObject name ("NumCliente") is correct and
that it is not returning null. I would think that an addDynamicCriterion
statement with a null argument might not be processed.
-- Curt Springer, Team ND
At 09:01 AM 5/31/99 -0600, Gueorgui Nikolov Popov wrote:
>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_OPERATO
R,csSession.get("NumCliente"));
>
> csConectado.setValue(new CSpString("0"));
> doConectado.execute();
> return (PROCEED);
> }
>
>THANK YOU VERY MUCH !!
>
>
_________________________________________________________________________
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]