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.

HTML DataWindow --> Set Item or Value

10 posts in General Discussion (old) Last posting was on 2000-03-03 13:12:04.0Z
Catherine Valentin Posted on 2000-02-28 20:23:56.0Z
Newsgroups: sybase.public.easerver
Date: Mon, 28 Feb 2000 16:23:56 -0400
From: Catherine Valentin <catherinev@edp.ssspr.com>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
Subject: HTML DataWindow --> Set Item or Value
Content-Type: multipart/alternative; boundary="------------F7A62873C801785E17CCF968"
Lines: 64
NNTP-Posting-Host: 209.100.234.125
Message-ID: <347_38BAD95C.3E7C2316@edp.ssspr.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27632
Article PK: 159002

I need to GET Value in some Variable and "past" or "write" this
VALUE to my HTML DW.

I use this script:
LOGON = psSession.GetValue("weblogin");
htmlDW.SetItem(1,"user_id", LOGON);
var T_DATE = new Date();
htmlDW.SetItem(1,"update_date", T_DATE);

When I use:  psDocument.Writeln(LOGON);   psDocument.Writeln(T_DATE);
Have the correct value in thats variables.

Name of Colum in my table: "user_id" and "update_data"
Name of my HTMLDW Object : ajustar_dw

This is the ERROR in my HTML PAGE (Browser)
Warning: undefined variable ajustar_dw2 near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable ajustar_dw2.SetItem[SetItem] near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW near line 83 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW.SetItem[SetItem] near line 83 in "/ajustar_emerg_test.htm"

This is the SECOND Message, Please I need resolve this problem.....

Thanks :-)


Tim Nesham Posted on 2000-02-28 22:54:56.0Z
Newsgroups: sybase.public.easerver
From: "Tim Nesham" <tim.nesham@born.com>
Subject: Re: HTML DataWindow --> Set Item or Value
Date: Mon, 28 Feb 2000 14:54:56 -0800
Lines: 98
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0036_01BF81FB.C702FF20"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: kashyyyk-2-116.mdm.mke.execpc.com 169.207.131.244
Message-ID: <347_aqpTv4ig$GA.201@forums.sybase.com>
References: <347_38BAD95C.3E7C2316@edp.ssspr.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27629
Article PK: 154565

Check to see if your dw object supports client scripting.
Catherine Valentin <catherinev@edp.ssspr.com> wrote in message news:38BAD95C.3E7C2316@edp.ssspr.com...
I need to GET Value in some Variable and "past" or "write" this
VALUE to my HTML DW.

I use this script:
LOGON = psSession.GetValue("weblogin");
htmlDW.SetItem(1,"user_id", LOGON);
var T_DATE = new Date();
htmlDW.SetItem(1,"update_date", T_DATE);

When I use:  psDocument.Writeln(LOGON);   psDocument.Writeln(T_DATE);
Have the correct value in thats variables.

Name of Colum in my table: "user_id" and "update_data"
Name of my HTMLDW Object : ajustar_dw

This is the ERROR in my HTML PAGE (Browser)
Warning: undefined variable ajustar_dw2 near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable ajustar_dw2.SetItem[SetItem] near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW near line 83 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW.SetItem[SetItem] near line 83 in "/ajustar_emerg_test.htm"

This is the SECOND Message, Please I need resolve this problem.....

Thanks :-)


Catherine Valentin Posted on 2000-02-29 12:33:50.0Z
Newsgroups: sybase.public.easerver
Date: Tue, 29 Feb 2000 08:33:50 -0400
From: Catherine Valentin <catherinev@edp.ssspr.com>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
Subject: Re: HTML DataWindow --> Set Item or Value
Content-Type: multipart/alternative; boundary="------------C82CCB525461AE6FDC25B755"
Lines: 92
NNTP-Posting-Host: 209.100.234.125
Message-ID: <347_38BBBCAE.CA07B1F5@edp.ssspr.com>
References: <347_38BAD95C.3E7C2316@edp.ssspr.com> <347_aqpTv4ig$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27540
Article PK: 154554

YES  my object have supports client scripting

Tim Nesham wrote:

  Check to see if your dw object supports client scripting.
Catherine Valentin <catherinev@edp.ssspr.com> wrote in message news:38BAD95C.3E7C2316@edp.ssspr.com...I need to GET Value in some Variable and "past" or "write" this
VALUE to my HTML DW.

I use this script:
LOGON = psSession.GetValue("weblogin");
htmlDW.SetItem(1,"user_id", LOGON);
var T_DATE = new Date();
htmlDW.SetItem(1,"update_date", T_DATE);

When I use:  psDocument.Writeln(LOGON);   psDocument.Writeln(T_DATE);
Have the correct value in thats variables.

Name of Colum in my table: "user_id" and "update_data"
Name of my HTMLDW Object : ajustar_dw

This is the ERROR in my HTML PAGE (Browser)
Warning: undefined variable ajustar_dw2 near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable ajustar_dw2.SetItem[SetItem] near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW near line 83 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW.SetItem[SetItem] near line 83 in "/ajustar_emerg_test.htm"

This is the SECOND Message, Please I need resolve this problem.....

Thanks :-)

 


Larry Cermak[Team Sybase] Posted on 2000-03-01 05:23:50.0Z
Newsgroups: sybase.public.easerver
From: "Larry Cermak[Team Sybase]" <lcermak@ctpartners.com>
Subject: Re: HTML DataWindow --> Set Item or Value
Date: Tue, 29 Feb 2000 23:23:50 -0600
Lines: 143
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_015F_01BF830C.092B92C0"
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_Xjza99zg$GA.251@forums.sybase.com>
References: <347_38BAD95C.3E7C2316@edp.ssspr.com> <347_aqpTv4ig$GA.201@forums.sybase.com> <347_38BBBCAE.CA07B1F5@edp.ssspr.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27459
Article PK: 158853

Are you sure that the SetDWObject and SetHTMLObjectName method calls are successful?  It looks like something failed.

--

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:38BBBCAE.CA07B1F5@edp.ssspr.com...
YES  my object have supports client scripting

Tim Nesham wrote:

  Check to see if your dw object supports client scripting.
Catherine Valentin <catherinev@edp.ssspr.com> wrote in message news:38BAD95C.3E7C2316@edp.ssspr.com...I need to GET Value in some Variable and "past" or "write" this
VALUE to my HTML DW.

I use this script:
LOGON = psSession.GetValue("weblogin");
htmlDW.SetItem(1,"user_id", LOGON);
var T_DATE = new Date();
htmlDW.SetItem(1,"update_date", T_DATE);

When I use:  psDocument.Writeln(LOGON);   psDocument.Writeln(T_DATE);
Have the correct value in thats variables.

Name of Colum in my table: "user_id" and "update_data"
Name of my HTMLDW Object : ajustar_dw

This is the ERROR in my HTML PAGE (Browser)
Warning: undefined variable ajustar_dw2 near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable ajustar_dw2.SetItem[SetItem] near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW near line 83 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW.SetItem[SetItem] near line 83 in "/ajustar_emerg_test.htm"

This is the SECOND Message, Please I need resolve this problem.....

Thanks :-)

 


Catherine Valentin Posted on 2000-03-01 15:58:25.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 01 Mar 2000 11:58:25 -0400
From: Catherine Valentin <catherinev@edp.ssspr.com>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
Subject: Re: HTML DataWindow --> Set Item or Value
Content-Type: multipart/alternative; boundary="------------530F786E3DE534FF7C6A5399"
Lines: 492
NNTP-Posting-Host: 209.100.234.125
Message-ID: <347_38BD3E21.78BCD177@edp.ssspr.com>
References: <347_38BAD95C.3E7C2316@edp.ssspr.com> <347_aqpTv4ig$GA.201@forums.sybase.com> <347_38BBBCAE.CA07B1F5@edp.ssspr.com> <347_Xjza99zg$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27425
Article PK: 158827

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>
 

Larry Cermak[Team Sybase] wrote:

 Are you sure that the SetDWObject and SetHTMLObjectName method calls are successful?  It looks like something failed.

--

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:38BBBCAE.CA07B1F5@edp.ssspr.com...YES  my object have supports client scripting

Tim Nesham wrote:

  Check to see if your dw object supports client scripting.
Catherine Valentin <catherinev@edp.ssspr.com> wrote in message news:38BAD95C.3E7C2316@edp.ssspr.com...I need to GET Value in some Variable and "past" or "write" this
VALUE to my HTML DW.

I use this script:
LOGON = psSession.GetValue("weblogin");
htmlDW.SetItem(1,"user_id", LOGON);
var T_DATE = new Date();
htmlDW.SetItem(1,"update_date", T_DATE);

When I use:  psDocument.Writeln(LOGON);   psDocument.Writeln(T_DATE);
Have the correct value in thats variables.

Name of Colum in my table: "user_id" and "update_data"
Name of my HTMLDW Object : ajustar_dw

This is the ERROR in my HTML PAGE (Browser)
Warning: undefined variable ajustar_dw2 near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable ajustar_dw2.SetItem[SetItem] near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW near line 83 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW.SetItem[SetItem] near line 83 in "/ajustar_emerg_test.htm"

This is the SECOND Message, Please I need resolve this problem.....

Thanks :-)

 
 


Steve Finck Posted on 2000-02-29 03:06:01.0Z
Newsgroups: sybase.public.easerver
From: "Steve Finck" <stevefinck@spam.mindspring.com>
Subject: Re: HTML DataWindow --> Set Item or Value
Date: Mon, 28 Feb 2000 20:06:01 -0700
Lines: 54
Organization: Coporate Technology Partners
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: dialup-206-26-107-149.mho.net 206.26.107.149
Message-ID: <347_jXf4yJmg$GA.295@forums.sybase.com>
References: <347_38BAD95C.3E7C2316@edp.ssspr.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27605
Article PK: 158979

The variable psSession is Server Side JavaScript, whereas interacting with
the htmlDW is Client Side JavaScript. You're mixing the two, which isn't
possible. To do what you are trying, you would need to pass the user id as
a page parameter, and then after the page is loaded, do an htmlDW.SetItem().
Your other option is to modify the Web DataWindow component so that you can
insert rows and use SetItem. You would then use Server Side JavaScript to
call the Insert and SetItem methods on the Web DataWindow component.

--
Steve Finck
Corporate Technology Partners
www.ctpartners.com

Check out CTP at
Sybase Build The Future Sybase J2EE Whistle Stop
Tour
April 21 - Scottsdale, AZ March 14 - New York
March 23 - Stamford, CT March 16 - Chicago
April
11 - Boston
April
13 - Denver

Catherine Valentin <catherinev@edp.ssspr.com> wrote in message
news:38BAD95C.3E7C2316@edp.ssspr.com...
> I need to GET Value in some Variable and "past" or "write" this
> VALUE to my HTML DW.
>
> I use this script:
> LOGON = psSession.GetValue("weblogin");
> htmlDW.SetItem(1,"user_id", LOGON);
> var T_DATE = new Date();
> htmlDW.SetItem(1,"update_date", T_DATE);
>
> When I use: psDocument.Writeln(LOGON); psDocument.Writeln(T_DATE);
> Have the correct value in thats variables.
>
> Name of Colum in my table: "user_id" and "update_data"
> Name of my HTMLDW Object : ajustar_dw
>
> This is the ERROR in my HTML PAGE (Browser)
> Warning: undefined variable ajustar_dw2 near line 80 in
> "/ajustar_emerg_test.htm" Warning: undefined variable
> ajustar_dw2.SetItem[SetItem] near line 80 in "/ajustar_emerg_test.htm"
> Warning: undefined variable htmlDW near line 83 in
> "/ajustar_emerg_test.htm" Warning: undefined variable
> htmlDW.SetItem[SetItem] near line 83 in "/ajustar_emerg_test.htm"
>
> This is the SECOND Message, Please I need resolve this problem.....
>
> Thanks :-)
>


Catherine Valentin Posted on 2000-02-29 17:56:21.0Z
Newsgroups: sybase.public.easerver
Date: Tue, 29 Feb 2000 13:56:21 -0400
From: Catherine Valentin <catherinev@edp.ssspr.com>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
Subject: Re: HTML DataWindow --> Set Item or Value
Content-Type: multipart/alternative; boundary="------------1FB6D93F8B515BCA1BCBCDC6"
Lines: 172
NNTP-Posting-Host: 209.100.234.125
Message-ID: <347_38BC0845.3605EF6@edp.ssspr.com>
References: <347_38BAD95C.3E7C2316@edp.ssspr.com> <347_jXf4yJmg$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27488
Article PK: 158880

Steve:
  I use Page Parameter in Power Site when I define in my DataWindow builder.
But I don't know how I pass a variable in parameter.
The  variable have the value, but the Datawindow not get (or set the value)

Catherine
 

Steve Finck wrote:

The variable psSession is Server Side JavaScript, whereas interacting with
the htmlDW is Client Side JavaScript.  You're mixing the two, which isn't
possible.  To do what you are trying, you would need to pass the user id as
a page parameter, and then after the page is loaded, do an htmlDW.SetItem().
Your other option is to modify the Web DataWindow component so that you can
insert rows and use SetItem.  You would then use Server Side JavaScript to
call the Insert and SetItem methods on the Web DataWindow component.

--
Steve Finck
Corporate Technology Partners
www.ctpartners.com

Check out CTP at
Sybase Build The Future                             Sybase J2EE Whistle Stop
Tour
April 21 - Scottsdale, AZ                            March 14 - New York
March 23  - Stamford, CT                          March 16 - Chicago
                                                                   April
11 - Boston
                                                                   April
13 - Denver

Catherine Valentin <catherinev@edp.ssspr.com> wrote in message
news:38BAD95C.3E7C2316@edp.ssspr.com...
> I need to GET Value in some Variable and "past" or "write" this
> VALUE to my HTML DW.
>
> I use this script:
> LOGON = psSession.GetValue("weblogin");
> htmlDW.SetItem(1,"user_id", LOGON);
> var T_DATE = new Date();
> htmlDW.SetItem(1,"update_date", T_DATE);
>
> When I use:  psDocument.Writeln(LOGON);   psDocument.Writeln(T_DATE);
> Have the correct value in thats variables.
>
> Name of Colum in my table: "user_id" and "update_data"
> Name of my HTMLDW Object : ajustar_dw
>
> This is the ERROR in my HTML PAGE (Browser)
> Warning: undefined variable ajustar_dw2 near line 80 in
> "/ajustar_emerg_test.htm" Warning: undefined variable
> ajustar_dw2.SetItem[SetItem] near line 80 in "/ajustar_emerg_test.htm"
> Warning: undefined variable htmlDW near line 83 in
> "/ajustar_emerg_test.htm" Warning: undefined variable
> htmlDW.SetItem[SetItem] near line 83 in "/ajustar_emerg_test.htm"
>
> This is the SECOND Message, Please I need resolve this problem.....
>
> Thanks :-)
>

 


Dean Jones [Team Sybase] Posted on 2000-02-29 03:00:57.0Z
Newsgroups: sybase.public.easerver
From: "Dean Jones [Team Sybase]" <dean_no_spam_@powerobjects.com>
Subject: Re: HTML DataWindow --> Set Item or Value
Date: Mon, 28 Feb 2000 21:00:57 -0600
Lines: 121
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0073_01BF822E.E8CD2C10"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: dsl131.outtech.com 216.207.145.131
Message-ID: <347_yycX7Hmg$GA.201@forums.sybase.com>
References: <347_38BAD95C.3E7C2316@edp.ssspr.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27606
Article PK: 158983

If you don't do the two setitems does the page run?
 
JavaScript is case sensitive... is the name of the DaataWindow object exact?

--

Dean Jones, CPD Professional
Team Sybase
PowerTeam, Inc.
http://www.powerobjects.com
 
 
Catherine Valentin <catherinev@edp.ssspr.com> wrote in message news:38BAD95C.3E7C2316@edp.ssspr.com...
I need to GET Value in some Variable and "past" or "write" this
VALUE to my HTML DW.

I use this script:
LOGON = psSession.GetValue("weblogin");
htmlDW.SetItem(1,"user_id", LOGON);
var T_DATE = new Date();
htmlDW.SetItem(1,"update_date", T_DATE);

When I use:  psDocument.Writeln(LOGON);   psDocument.Writeln(T_DATE);
Have the correct value in thats variables.

Name of Colum in my table: "user_id" and "update_data"
Name of my HTMLDW Object : ajustar_dw

This is the ERROR in my HTML PAGE (Browser)
Warning: undefined variable ajustar_dw2 near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable ajustar_dw2.SetItem[SetItem] near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW near line 83 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW.SetItem[SetItem] near line 83 in "/ajustar_emerg_test.htm"

This is the SECOND Message, Please I need resolve this problem.....

Thanks :-)


Catherine Valentin Posted on 2000-03-03 13:12:04.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 03 Mar 2000 09:12:04 -0400
From: Catherine Valentin <catherinev@edp.ssspr.com>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: "Dean Jones [Team Sybase]" <dean_no_spam_@powerobjects.com>
Subject: Re: HTML DataWindow --> Set Item or Value
Content-Type: multipart/alternative; boundary="------------BB46943A674726A3B42BB6AD"
Lines: 490
NNTP-Posting-Host: 209.100.234.125
Message-ID: <347_38BFBA24.45F51457@edp.ssspr.com>
References: <347_38BAD95C.3E7C2316@edp.ssspr.com> <347_yycX7Hmg$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27242
Article PK: 158152

 

 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");

-->
 
 

Dean Jones [Team Sybase] wrote:

  If you don't do the two setitems does the page run? JavaScript is case sensitive... is the name of the DaataWindow object exact?

--

Dean Jones, CPD Professional
Team Sybase
PowerTeam, Inc.
http://www.powerobjects.com  

Catherine Valentin <catherinev@edp.ssspr.com> wrote in message news:38BAD95C.3E7C2316@edp.ssspr.com...I need to GET Value in some Variable and "past" or "write" this
VALUE to my HTML DW.

I use this script:
LOGON = psSession.GetValue("weblogin");
htmlDW.SetItem(1,"user_id", LOGON);
var T_DATE = new Date();
htmlDW.SetItem(1,"update_date", T_DATE);

When I use:  psDocument.Writeln(LOGON);   psDocument.Writeln(T_DATE);
Have the correct value in thats variables.

Name of Colum in my table: "user_id" and "update_data"
Name of my HTMLDW Object : ajustar_dw

This is the ERROR in my HTML PAGE (Browser)
Warning: undefined variable ajustar_dw2 near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable ajustar_dw2.SetItem[SetItem] near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW near line 83 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW.SetItem[SetItem] near line 83 in "/ajustar_emerg_test.htm"

This is the SECOND Message, Please I need resolve this problem.....

Thanks :-)

 


Catherine Valentin Posted on 2000-02-29 12:52:20.0Z
Newsgroups: sybase.public.easerver
Date: Tue, 29 Feb 2000 08:52:20 -0400
From: Catherine Valentin <catherinev@edp.ssspr.com>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
Subject: Re: HTML DataWindow --> Set Item or Value
Content-Type: multipart/alternative; boundary="------------E6EE5BBC9F3312886130160C"
Lines: 107
NNTP-Posting-Host: 209.100.234.125
Message-ID: <347_38BBC104.7FBF770D@edp.ssspr.com>
References: <347_38BAD95C.3E7C2316@edp.ssspr.com> <347_yycX7Hmg$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27538
Article PK: 158919

 I check, the name of  script is the same of DataWindow.  And this page have a UPDATE Botton.

Catherine

Dean Jones [Team Sybase] wrote:

  If you don't do the two setitems does the page run? JavaScript is case sensitive... is the name of the DataWindow object exact?

--

Dean Jones, CPD Professional
Team Sybase
PowerTeam, Inc.
http://www.powerobjects.com

Catherine Valentin <catherinev@edp.ssspr.com> wrote in message news:38BAD95C.3E7C2316@edp.ssspr.com...I need to GET Value in some Variable and "past" or "write" this
VALUE to my HTML DW.

I use this script:
LOGON = psSession.GetValue("weblogin");
htmlDW.SetItem(1,"user_id", LOGON);
var T_DATE = new Date();
htmlDW.SetItem(1,"update_date", T_DATE);

When I use:  psDocument.Writeln(LOGON);   psDocument.Writeln(T_DATE);
Have the correct value in thats variables.

Name of Colum in my table: "user_id" and "update_data"
Name of my HTMLDW Object : ajustar_dw

This is the ERROR in my HTML PAGE (Browser)
Warning: undefined variable ajustar_dw2 near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable ajustar_dw2.SetItem[SetItem] near line 80 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW near line 83 in "/ajustar_emerg_test.htm" Warning: undefined variable htmlDW.SetItem[SetItem] near line 83 in "/ajustar_emerg_test.htm"

This is the SECOND Message, Please I need resolve this problem.....

Thanks :-)