I write this Script, after Datawindow object and  desugner Control:

retVal = dwMine2.SetDWObject("C:/NT_practice/library_emergencia.pbl", "ajustar_dw2")
TestError(retVal, "SetDWObject")
dwMine2.SetSelfLink(document.name,"ajustar_emerg_test.htm")
dwMine2.SetHTMLObjectName("ajustar_dw2");
dwMine2.SetBrowser(document.GetServerVariable("HTTP_USER_AGENT"));

LOGON = psSession.GetValue("weblogin");
psDocument.WriteLn("<BR>" + LOGON);
ajustar_dw2.SetItem(1,"revision_officer_id", LOGON);            (line 119)
FECHA = new Date();
psDocument.WriteLn("<BR>" + FECHA);
dwMine2.setItem(1,"update_date",FECHA);                            (line 123)

HAVE THIS ERROR:  (In the browser)
Warning: undefined variable ajustar_dw2 near line 119 in "/ajustar_emerg_test.htm"
Warning: undefined variable ajustar_dw2.SetItem[SetItem] near line 119 in "/ajustar_emerg_test.htm"
Not allowed to create dwMine2.setItem[setItem] near line 123 in "/ajustar_emerg_test.htm"

THANKS!!!!

Catherine