Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

AGAIN: Have problem with my SetItem to HTMLDW

3 posts in General Discussion (old) Last posting was on 2000-03-09 14:21:31.0Z
Catherine Valentin Posted on 2000-03-07 15:40:05.0Z
Newsgroups: sybase.public.easerver
Date: Tue, 07 Mar 2000 11:40:05 -0400
From: Catherine Valentin <catherinev@edp.ssspr.com>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
Subject: AGAIN: Have problem with my SetItem to HTMLDW
Content-Type: multipart/alternative; boundary="------------9807D4DF99503CD094704788"
Lines: 372
NNTP-Posting-Host: 209.100.234.125
Message-ID: <347_38C522D5.3C559D32@edp.ssspr.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26987
Article PK: 157931

 This is my HTML (I'm copy this sources from PowerDynamo)

  <!--SCRIPT PSOBJMOD=TRUE
      import( site.GetRootDocument().location + "/ObjMod.ssc" );
      session.active = true;
      InitObjects(session);
  -->

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
  <HTML>
  <HEAD>
      <META NAME=SERVERLANGUAGE CONTENT=JavaScript HTTP-EQUIV=PowerSiteData>
      <META content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
      <META name=GENERATOR content='"MSHTML 4.72.3110.7"'>
      <META objectParams="ajustar_dw:claim_id,User_inf_HTMLDW:claim_id,htmlDW:pp_claim_id" name=PSPageParams>
  </HEAD>
  <BODY background="Images/CottonDreamBack.gif">
  <P align=center>
  <STRONG><EM>
  <FONT size=6>
      <FONT face="Times New Roman">
          <FONT color=maroon>
              P&aacute;gina de Ajustes de Emergencias&nbsp;&nbsp;
              <IMG id=IMG1 height=80 style="HEIGHT: 80px; WIDTH: 82px" src="Images/1-AID-021.gif" align=middle width=82>
          </FONT>
      </FONT>
  </FONT>
  </EM></STRONG>
  <P align=center>
  <DIV align=center>
      <HR id=HR1>
 
      <!--METADATA TYPE="DesignerControl" startspan
  <OBJECT id=OBJECT1 name="ajustar_dw2" classid="CLSID:C77CAE91-7F08-11D2-BF7B-00C04F79FC8E">
          <PARAM VALUE="C:\NT_practice\library_emergencia.pbl" NAME=SourceFileName></PARAM>
          <PARAM VALUE="ajustar_dw2" NAME=DataWindowObject></PARAM>
          <PARAM VALUE="" NAME=StandaloneDataWindow></PARAM>
          <PARAM VALUE=1 NAME=AbsoluteLibPath></PARAM>
          <PARAM VALUE="Emergencia_Connection" NAME=DataConnection></PARAM>
          <PARAM VALUE=0 NAME=EnableWeightSettings></PARAM>
          <PARAM VALUE=1 NAME=EnableNameOverride></PARAM>
          <PARAM VALUE=0 NAME=EnableRowsOverride></PARAM>
          <PARAM VALUE=1 NAME=AllowDataEntry></PARAM>
          <PARAM VALUE=1 NAME=Events></PARAM>
          <PARAM VALUE=1 NAME=Validation></PARAM>
          <PARAM VALUE=1 NAME=Formatting></PARAM>
          <PARAM VALUE=1 NAME=Scripting></PARAM>
          <PARAM VALUE=0 NAME=ServerStateManagement></PARAM>
          <PARAM VALUE="ajustar_dw2" NAME=Name></PARAM>
          <PARAM VALUE=1 NAME=PageSize></PARAM>
          <PARAM VALUE="PageParam:claim_id" NAME=RetrievalArgValues></PARAM>
          <PARAM VALUE="claim_id" NAME=PageParameters></PARAM>
          <PARAM VALUE=",list_emerg_test.htm?pp_prov_id=Column:provider_id,,,,,,,,,,,,,,," NAME=ColumnLink></PARAM>
          <PARAM VALUE=",,,,,,,,,,,,,,,," NAME=ColumnLinkTarget></PARAM>
          <PARAM VALUE="claim_id" NAME=UserPageParameters></PARAM>
          <PARAM VALUE="Triplec002:9000" NAME=ServerName></PARAM>
          <PARAM VALUE=jagadmin NAME=UserID></PARAM>
          <PARAM VALUE="" NAME=Passwd></PARAM>
          <PARAM VALUE="DataWindow/HTMLGenerator" NAME=ComponentName></PARAM>
          <PARAM VALUE=0 NAME=OneTrip></PARAM>
          <PARAM VALUE=1 NAME=EnableJaguar></PARAM>
 
  </OBJECT>
  -->
  <!--SCRIPT

  jagConn = new PSJaguarConnection("Triplec002:9000", "jagadmin", "", "DataWindow/HTMLGenerator", false);
  dwSource = new PSDataWindowSourceClass("C:/NT_practice/library_emergencia.pbl", "ajustar_dw2");
  dbConn = new SConnectionParmsClass("ConnectString='DSN=sys_revisiones;  SRVR=appccc1s1;DB=revisiones;;UID=userassign;PWD=passwdrev',ConnectOption='SQL_DRIVER_CONNECT,SQL_DRIVER_NOPROMPT'");

  dwMine = new PSDataWindowClass("ajustar_dw2", false, jagConn, dwSource, dbConn);
  dwMine.SetColumnLink("provider_name", "list_emerg_test.htm", "pp_prov_id='provider_id + \"\"'", "");
  dwMine.RetrievalArgs[0] = psDocument.GetParam("claim_id");
  dwMine.Generate("claim_id");
  -->
  <!--SCRIPT
      LOGON = psSession.GetValue("weblogin");
      psDocument.WriteLn(LOGON);
      ajustar_dw2.SetItem (1,"revision_officer_id", LOGON);
      var FECHA = new Date();
      psDocument.WriteLn(FECHA);
      ajustar_dw2.SetItem (1,"update_date",FECHA);
  -->
  <!--METADATA TYPE="DesignerControl" endspan-->
  </DIV>
  <P align=center><HR id=HR2>
  <P></P>
  </BODY>
  </HTML>
And I Try  this:
 <!--SCRIPT
var LOGON = psSession.GetValue("weblogin");
psDocument.WriteLn(LOGON);
var FECHA = new Date();
psDocument.WriteLn(FECHA);
DataReturn = "SELECT update_date, revision_officer_id FROM Emergencia_Urgencia_Rev"
DataReturn.update_date = FECHA
DataReturn.revision_officer_id =LOGON
DataReturn.updaterow("Emergencia_Urgencia_Rev");
-->
Catherine


Larry Cermak[Team Sybase] Posted on 2000-03-07 21:50:35.0Z
Newsgroups: sybase.public.easerver
From: "Larry Cermak[Team Sybase]" <lcermak@ctpartners.com>
Subject: Re: AGAIN: Have problem with my SetItem to HTMLDW
Date: Tue, 7 Mar 2000 15:50:35 -0600
Lines: 428
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_008A_01BF884C.E0593D20"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: node6.dhcpchi.dslspeed.zyan.com 208.41.199.6
Message-ID: <347_PKcBlBIi$GA.74@forums.sybase.com>
References: <347_38C522D5.3C559D32@edp.ssspr.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26945
Article PK: 154467

What does SetItem return?  Also, do you have client-scripting enabled?

--

Larry Cermak [Team Sybase]
Corporate Technology Partners, Inc.
www.ctpartners.com
Web DataWindow Articles
(http://sdn.sybase.com/sdn/appdev/get_doc.stm?loc=1001708)
 
 
"Catherine Valentin" <catherinev@edp.ssspr.com> wrote in message news:38C522D5.3C559D32@edp.ssspr.com...
 This is my HTML (I'm copy this sources from PowerDynamo)

  <!--SCRIPT PSOBJMOD=TRUE
      import( site.GetRootDocument().location + "/ObjMod.ssc" );
      session.active = true;
      InitObjects(session);
  -->

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
  <HTML>
  <HEAD>
      <META NAME=SERVERLANGUAGE CONTENT=JavaScript HTTP-EQUIV=PowerSiteData>
      <META content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
      <META name=GENERATOR content='"MSHTML 4.72.3110.7"'>
      <META objectParams="ajustar_dw:claim_id,User_inf_HTMLDW:claim_id,htmlDW:pp_claim_id" name=PSPageParams>
  </HEAD>
  <BODY background="Images/CottonDreamBack.gif">
  <P align=center>
  <STRONG><EM>
  <FONT size=6>
      <FONT face="Times New Roman">
          <FONT color=maroon>
              P&aacute;gina de Ajustes de Emergencias&nbsp;&nbsp;
              <IMG id=IMG1 height=80 style="HEIGHT: 80px; WIDTH: 82px" src="Images/1-AID-021.gif" align=middle width=82>
          </FONT>
      </FONT>
  </FONT>
  </EM></STRONG>
  <P align=center>
  <DIV align=center>
      <HR id=HR1>
 
      <!--METADATA TYPE="DesignerControl" startspan
  <OBJECT id=OBJECT1 name="ajustar_dw2" classid="CLSID:C77CAE91-7F08-11D2-BF7B-00C04F79FC8E">
          <PARAM VALUE="C:\NT_practice\library_emergencia.pbl" NAME=SourceFileName></PARAM>
          <PARAM VALUE="ajustar_dw2" NAME=DataWindowObject></PARAM>
          <PARAM VALUE="" NAME=StandaloneDataWindow></PARAM>
          <PARAM VALUE=1 NAME=AbsoluteLibPath></PARAM>
          <PARAM VALUE="Emergencia_Connection" NAME=DataConnection></PARAM>
          <PARAM VALUE=0 NAME=EnableWeightSettings></PARAM>
          <PARAM VALUE=1 NAME=EnableNameOverride></PARAM>
          <PARAM VALUE=0 NAME=EnableRowsOverride></PARAM>
          <PARAM VALUE=1 NAME=AllowDataEntry></PARAM>
          <PARAM VALUE=1 NAME=Events></PARAM>
          <PARAM VALUE=1 NAME=Validation></PARAM>
          <PARAM VALUE=1 NAME=Formatting></PARAM>
          <PARAM VALUE=1 NAME=Scripting></PARAM>
          <PARAM VALUE=0 NAME=ServerStateManagement></PARAM>
          <PARAM VALUE="ajustar_dw2" NAME=Name></PARAM>
          <PARAM VALUE=1 NAME=PageSize></PARAM>
          <PARAM VALUE="PageParam:claim_id" NAME=RetrievalArgValues></PARAM>
          <PARAM VALUE="claim_id" NAME=PageParameters></PARAM>
          <PARAM VALUE=",list_emerg_test.htm?pp_prov_id=Column:provider_id,,,,,,,,,,,,,,," NAME=ColumnLink></PARAM>
          <PARAM VALUE=",,,,,,,,,,,,,,,," NAME=ColumnLinkTarget></PARAM>
          <PARAM VALUE="claim_id" NAME=UserPageParameters></PARAM>
          <PARAM VALUE="Triplec002:9000" NAME=ServerName></PARAM>
          <PARAM VALUE=jagadmin NAME=UserID></PARAM>
          <PARAM VALUE="" NAME=Passwd></PARAM>
          <PARAM VALUE="DataWindow/HTMLGenerator" NAME=ComponentName></PARAM>
          <PARAM VALUE=0 NAME=OneTrip></PARAM>
          <PARAM VALUE=1 NAME=EnableJaguar></PARAM>
 
  </OBJECT>
  -->
  <!--SCRIPT

  jagConn = new PSJaguarConnection("Triplec002:9000", "jagadmin", "", "DataWindow/HTMLGenerator", false);
  dwSource = new PSDataWindowSourceClass("C:/NT_practice/library_emergencia.pbl", "ajustar_dw2");
  dbConn = new SConnectionParmsClass("ConnectString='DSN=sys_revisiones;  SRVR=appccc1s1;DB=revisiones;;UID=userassign;PWD=passwdrev',ConnectOption='SQL_DRIVER_CONNECT,SQL_DRIVER_NOPROMPT'");

  dwMine = new PSDataWindowClass("ajustar_dw2", false, jagConn, dwSource, dbConn);
  dwMine.SetColumnLink("provider_name", "list_emerg_test.htm", "pp_prov_id='provider_id + \"\"'", "");
  dwMine.RetrievalArgs[0] = psDocument.GetParam("claim_id");
  dwMine.Generate("claim_id");
  -->
  <!--SCRIPT
      LOGON = psSession.GetValue("weblogin");
      psDocument.WriteLn(LOGON);
      ajustar_dw2.SetItem (1,"revision_officer_id", LOGON);
      var FECHA = new Date();
      psDocument.WriteLn(FECHA);
      ajustar_dw2.SetItem (1,"update_date",FECHA);
  -->
  <!--METADATA TYPE="DesignerControl" endspan-->
  </DIV>
  <P align=center><HR id=HR2>
  <P></P>
  </BODY>
  </HTML>
And I Try  this:
 <!--SCRIPT
var LOGON = psSession.GetValue("weblogin");
psDocument.WriteLn(LOGON);
var FECHA = new Date();
psDocument.WriteLn(FECHA);
DataReturn = "SELECT update_date, revision_officer_id FROM Emergencia_Urgencia_Rev"
DataReturn.update_date = FECHA
DataReturn.revision_officer_id =LOGON
DataReturn.updaterow("Emergencia_Urgencia_Rev");
-->
Catherine


Catherine Valentin Posted on 2000-03-09 14:21:31.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 09 Mar 2000 10:21:31 -0400
From: Catherine Valentin <catherinev@edp.ssspr.com>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
Subject: Re: AGAIN: Have problem with my SetItem to HTMLDW
Content-Type: multipart/alternative; boundary="------------831C5A5C096403A0D1D325EC"
Lines: 467
NNTP-Posting-Host: 209.100.234.125
Message-ID: <347_38C7B36B.5E608BD1@edp.ssspr.com>
References: <347_38C522D5.3C559D32@edp.ssspr.com> <347_PKcBlBIi$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26805
Article PK: 157777

I have Client Scripting enable in my DataWindow Builder.

This is the error in my browser:
Warning: undefined variable ajustar_dw2 near line 78 in "/ajustar_emerg_test.htm"
Warning: undefined variable ajustar_dw2.SetItem[SetItem] near line 81 in "/ajustar_emerg_test.htm"

I try :
dwMine.SetHTMLObjectName(ajustar_dw2);    or
SetHTMLObjectName(ajustar_dw2);
Have this error:
Warning: undefined variable SetHTMLObjectName near line 78 in "/ajustar_emerg_test.htm"

I make this script in PowerSite (server script)
I copy in the message the source from y Power Dynamo.

Catherine

Larry Cermak[Team Sybase] wrote:

  What does SetItem return?  Also, do you have client-scripting enabled?

--

Larry Cermak [Team Sybase]
Corporate Technology Partners, Inc.
www.ctpartners.com
Web DataWindow Articles
(http://sdn.sybase.com/sdn/appdev/get_doc.stm?loc=1001708)  

"Catherine Valentin" <catherinev@edp.ssspr.com> wrote in message news:38C522D5.3C559D32@edp.ssspr.com... This is my HTML (I'm copy this sources from PowerDynamo)

  <!--SCRIPT PSOBJMOD=TRUE
      import( site.GetRootDocument().location + "/ObjMod.ssc" );
      session.active = true;
      InitObjects(session);
  -->

  <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
  <HTML>
  <HEAD>
      <META NAME=SERVERLANGUAGE CONTENT=JavaScript HTTP-EQUIV=PowerSiteData>
      <META content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
      <META name=GENERATOR content='"MSHTML 4.72.3110.7"'>
      <META objectParams="ajustar_dw:claim_id,User_inf_HTMLDW:claim_id,htmlDW:pp_claim_id" name=PSPageParams>
  </HEAD>
  <BODY background="Images/CottonDreamBack.gif">
  <P align=center>
  <STRONG><EM>
  <FONT size=6>
      <FONT face="Times New Roman">
          <FONT color=maroon>
              P&aacute;gina de Ajustes de Emergencias&nbsp;&nbsp;
              <IMG id=IMG1 height=80 style="HEIGHT: 80px; WIDTH: 82px" src="Images/1-AID-021.gif" align=middle width=82>
          </FONT>
      </FONT>
  </FONT>
  </EM></STRONG>
  <P align=center>
  <DIV align=center>
      <HR id=HR1>
 
      <!--METADATA TYPE="DesignerControl" startspan
  <OBJECT id=OBJECT1 name="ajustar_dw2" classid="CLSID:C77CAE91-7F08-11D2-BF7B-00C04F79FC8E">
          <PARAM VALUE="C:\NT_practice\library_emergencia.pbl" NAME=SourceFileName></PARAM>
          <PARAM VALUE="ajustar_dw2" NAME=DataWindowObject></PARAM>
          <PARAM VALUE="" NAME=StandaloneDataWindow></PARAM>
          <PARAM VALUE=1 NAME=AbsoluteLibPath></PARAM>
          <PARAM VALUE="Emergencia_Connection" NAME=DataConnection></PARAM>
          <PARAM VALUE=0 NAME=EnableWeightSettings></PARAM>
          <PARAM VALUE=1 NAME=EnableNameOverride></PARAM>
          <PARAM VALUE=0 NAME=EnableRowsOverride></PARAM>
          <PARAM VALUE=1 NAME=AllowDataEntry></PARAM>
          <PARAM VALUE=1 NAME=Events></PARAM>
          <PARAM VALUE=1 NAME=Validation></PARAM>
          <PARAM VALUE=1 NAME=Formatting></PARAM>
          <PARAM VALUE=1 NAME=Scripting></PARAM>
          <PARAM VALUE=0 NAME=ServerStateManagement></PARAM>
          <PARAM VALUE="ajustar_dw2" NAME=Name></PARAM>
          <PARAM VALUE=1 NAME=PageSize></PARAM>
          <PARAM VALUE="PageParam:claim_id" NAME=RetrievalArgValues></PARAM>
          <PARAM VALUE="claim_id" NAME=PageParameters></PARAM>
          <PARAM VALUE=",list_emerg_test.htm?pp_prov_id=Column:provider_id,,,,,,,,,,,,,,," NAME=ColumnLink></PARAM>
          <PARAM VALUE=",,,,,,,,,,,,,,,," NAME=ColumnLinkTarget></PARAM>
          <PARAM VALUE="claim_id" NAME=UserPageParameters></PARAM>
          <PARAM VALUE="Triplec002:9000" NAME=ServerName></PARAM>
          <PARAM VALUE=jagadmin NAME=UserID></PARAM>
          <PARAM VALUE="" NAME=Passwd></PARAM>
          <PARAM VALUE="DataWindow/HTMLGenerator" NAME=ComponentName></PARAM>
          <PARAM VALUE=0 NAME=OneTrip></PARAM>
          <PARAM VALUE=1 NAME=EnableJaguar></PARAM>
 
  </OBJECT>
  -->
  <!--SCRIPT

  jagConn = new PSJaguarConnection("Triplec002:9000", "jagadmin", "", "DataWindow/HTMLGenerator", false);
  dwSource = new PSDataWindowSourceClass("C:/NT_practice/library_emergencia.pbl", "ajustar_dw2");
  dbConn = new SConnectionParmsClass("ConnectString='DSN=sys_revisiones;  SRVR=appccc1s1;DB=revisiones;;UID=userassign;PWD=passwdrev',ConnectOption='SQL_DRIVER_CONNECT,SQL_DRIVER_NOPROMPT'");

  dwMine = new PSDataWindowClass("ajustar_dw2", false, jagConn, dwSource, dbConn);
  dwMine.SetColumnLink("provider_name", "list_emerg_test.htm", "pp_prov_id='provider_id + \"\"'", "");
  dwMine.RetrievalArgs[0] = psDocument.GetParam("claim_id");
  dwMine.Generate("claim_id");
  -->
  <!--SCRIPT
      LOGON = psSession.GetValue("weblogin");
      psDocument.WriteLn(LOGON);
      ajustar_dw2.SetItem (1,"revision_officer_id", LOGON);
      var FECHA = new Date();
      psDocument.WriteLn(FECHA);
      ajustar_dw2.SetItem (1,"update_date",FECHA);
  -->
  <!--METADATA TYPE="DesignerControl" endspan-->
  </DIV>
  <P align=center><HR id=HR2>
  <P></P>
  </BODY>
  </HTML>
And I Try  this:
 <!--SCRIPT
var LOGON = psSession.GetValue("weblogin");
psDocument.WriteLn(LOGON);
var FECHA = new Date();
psDocument.WriteLn(FECHA);
DataReturn = "SELECT update_date, revision_officer_id FROM Emergencia_Urgencia_Rev"
DataReturn.update_date = FECHA
DataReturn.revision_officer_id =LOGON
DataReturn.updaterow("Emergencia_Urgencia_Rev");
-->
Catherine