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_OPERATOR,csSession.get("NumCliente"));

  csConectado.setValue(new CSpString("0"));
  doConectado.execute();
  return (PROCEED);
 }

THANK YOU VERY MUCH !!
begin:vcard 
n:Nikolov Popov Karadjov;Gueorgui
tel;pager:5-1715984
tel;home:5-6436595
tel;work:3250505 ext. 2322
x-mozilla-html:TRUE
org:Grupo Financiero Inbursa;Sistemas - Internet / Intranet
adr:;;Av Insurgentes Sur 3500. Col. Pe�a Pobre;Mexico;Mexico D.F.;14060;Mexico
version:2.1
email;internet:[EMAIL PROTECTED]
title:Lic.
fn:Gueorgui Nikolov Popov Karadjov
end:vcard

Reply via email to