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.

Need to display page parm on DW

3 posts in PowerSite specific Last posting was on 2001-02-01 20:55:11.0Z
lichn Posted on 2001-01-31 14:42:56.0Z
Newsgroups: sybase.public.powersite
From: Lichn
Date: Wed, 31 Jan 2001 09:42:56 -0500
Subject: Need to display page parm on DW
Lines: 43
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <382_3380B646BD7E632E0050D5E8852569E5.0050D60B852569E5@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powersite:306
Article PK: 862692

Newbie to Powersite/PowerDynamo and have exhausted my brain. Have tried
several newsgroup solution to no avail. Need to display passed page
parameters or a session variable on a new HTML DW. Some background - I
created a new employee record and need to pass some of the fields and
display them on several other HTML DW.

This is how I built the htlm redirect:

psDocument.WriteLn("<SCRIPT language=JavaScript>");
psDocument.WriteLn("{");
psDocument.WriteLn("var sSSN = dwData.GetItem( 1, 'ssn');");
psDocument.WriteLn("var LName = dwData.GetItem( 1, 'lname');");
psDocument.WriteLn("URL =
'assignment_detail.htm?rowid=0&ssn='+sSSN+'&name='+LName;");
psDocument.WriteLn("window.location.href = URL");
psDocument.WriteLn("}");
psDocument.WriteLn("</SCRIPT>");

This works fine for passing the fields as page parameters.

Now how do I get them displayed on the next HTML datawindow?
I have tried this after my generate but I can't see the fields:
//Generate HTML based on HTML DW
psDocument.WriteLn(dwData.generate());

psDocument.WriteLn("<SCRIPT language=JavaScript>");
psDocument.WriteLn("{");
psDocument.WriteLn("var vSSN = ('" + sSSN + "')");
psDocument.WriteLn("var vName = ( '" + sName + "')");
psDocument.WriteLn("dwData.SetItem( 1, 'ssn', ('" + sSSN + "'))");
psDocument.WriteLn("dwData.SetItem( 1, 'name', ( '" + sName + "'))");
psDocument.WriteLn("}");
psDocument.WriteLn("</SCRIPT>");

When I use this code before the generate it then tells me that dwData is
undefined.

I have also attempted to create Text fields on the HTML page to display
these items, that too has been futile.

Any help is greatly appreciated.


Larry Cermak [Team Sybase] Posted on 2001-01-31 17:58:08.0Z
Newsgroups: sybase.public.powersite
From: "Larry Cermak [Team Sybase]" <lcermak@ctpartners.com>
Subject: Re: Need to display page parm on DW
Date: Wed, 31 Jan 2001 10:58:08 -0700
Lines: 59
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: node-64-248-206-25.dslspeed.zyan.com 64.248.206.25
Message-ID: <382_VPhOOl6iAHA.302@forums.sybase.com>
References: <382_3380B646BD7E632E0050D5E8852569E5.0050D60B852569E5@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powersite:305
Article PK: 840543

What I would suggest is customizing the component and making a SetItem
method where you can pass a field name and value to set.

--

Larry Cermak [Team Sybase]
Corporate Technology Partners, Inc

Coming soon: Web DataWindow Book

Web DataWindow Articles: http://my.sybase.com/detail?id=1003371

<Lichn> wrote in message
news:3380B646BD7E632E0050D5E8852569E5.0050D60B852569E5@webforums...
> Newbie to Powersite/PowerDynamo and have exhausted my brain. Have tried
> several newsgroup solution to no avail. Need to display passed page
> parameters or a session variable on a new HTML DW. Some background - I
> created a new employee record and need to pass some of the fields and
> display them on several other HTML DW.
>
> This is how I built the htlm redirect:
>
> psDocument.WriteLn("<SCRIPT language=JavaScript>");
> psDocument.WriteLn("{");
> psDocument.WriteLn("var sSSN = dwData.GetItem( 1, 'ssn');");
> psDocument.WriteLn("var LName = dwData.GetItem( 1, 'lname');");
> psDocument.WriteLn("URL =
> 'assignment_detail.htm?rowid=0&ssn='+sSSN+'&name='+LName;");
> psDocument.WriteLn("window.location.href = URL");
> psDocument.WriteLn("}");
> psDocument.WriteLn("</SCRIPT>");
>
> This works fine for passing the fields as page parameters.
>
> Now how do I get them displayed on the next HTML datawindow?
> I have tried this after my generate but I can't see the fields:
> file://Generate HTML based on HTML DW
> psDocument.WriteLn(dwData.generate());
>
> psDocument.WriteLn("<SCRIPT language=JavaScript>");
> psDocument.WriteLn("{");
> psDocument.WriteLn("var vSSN = ('" + sSSN + "')");
> psDocument.WriteLn("var vName = ( '" + sName + "')");
> psDocument.WriteLn("dwData.SetItem( 1, 'ssn', ('" + sSSN + "'))");
> psDocument.WriteLn("dwData.SetItem( 1, 'name', ( '" + sName + "'))");
> psDocument.WriteLn("}");
> psDocument.WriteLn("</SCRIPT>");
>
> When I use this code before the generate it then tells me that dwData is
> undefined.
>
> I have also attempted to create Text fields on the HTML page to display
> these items, that too has been futile.
>
> Any help is greatly appreciated.
>
>


lichn Posted on 2001-02-01 20:55:11.0Z
Newsgroups: sybase.public.powersite
From: lichn
Date: Thu, 1 Feb 2001 15:55:11 -0500
Subject: Re: Need to display page parm on DW
Lines: 1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <382_120DC53D9F27CD770072EA6C852569E6.00515891852569E5@webforums>
References: <382_3380B646BD7E632E0050D5E8852569E5.0050D60B852569E5@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powersite:304
Article PK: 862691

Never mind. I figured it out.