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.

Delete+Update in HTML Datawindow Component

3 posts in General Discussion (old) Last posting was on 2000-02-29 03:57:37.0Z
Gene Dvoretsky Posted on 2000-02-27 22:01:55.0Z
Newsgroups: sybase.public.easerver
Date: Sun, 27 Feb 2000 17:01:55 -0500
From: Gene Dvoretsky <gene@appcs.com>
Organization: Applied Computer Sciences, Inc.
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Delete+Update in HTML Datawindow Component
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 28
NNTP-Posting-Host: appcs.iwaynet.net 206.244.44.89
Message-ID: <347_38B99ED3.A864064@appcs.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27705
Article PK: 159067

Alex Whitney <awhitney@dyn-data.com> wrote in an earlier post:

"Given the design of the stock HTMLDW component, you would not be able
to
accomplish this since the DeleteRow() causes a roundtrip to the server.
You
would have to either recode the JavaScript to perform all of the steps
taken
by the deleterow (this is needed to ensure that the context field is
properly filled out) and then call performaction passing it 'update'; OR

develop your own component that can recognize that when it sees a
'delete'
it needs to do an update BEFORE returning."

Are there any plans to release a standard HTML Datawindow (jaguar)
component that would work like the PB counterpart (albeit thru the web
interface)? Alternatively , can someone post a techpaper outlining
creating custom components and also provide more documentation on how
the out-of-the-box HTML Datawindow component works (context field,
perform action and all).

Of course, we could always code Servlets to do the job, but that would
detract from the value of the almighty DataWindow!!

Thanks
JT


Dean Jones [Team Sybase] Posted on 2000-02-29 03:57:37.0Z
Newsgroups: sybase.public.easerver
From: "Dean Jones [Team Sybase]" <dean_no_spam_@powerobjects.com>
Subject: Re: Delete+Update in HTML Datawindow Component
Date: Mon, 28 Feb 2000 21:57:37 -0600
Lines: 57
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_ePw4lnmg$GA.201@forums.sybase.com>
References: <347_38B99ED3.A864064@appcs.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27578
Article PK: 158956

We have a simple example on our site that shows you have to write a
component that returns an HTML DW.

It's important to know that any DataWindow or datastore can return a HTML
DW.

You can grab the HTML from a DataWindow simply by calling
dw_1.object.datawindow.data.html

Open any PB application, paste a Command button on the screen with a
DataWindow, retrieve the DataWindow, and display output in messagebox().

You will need to make sure HTML DW property is set on the dataobject.

dw_1.Object.DataWindow.HTMLDW = 'yes'

HTH
--

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

Gene Dvoretsky <gene@appcs.com> wrote in message
news:38B99ED3.A864064@appcs.com...
> Alex Whitney <awhitney@dyn-data.com> wrote in an earlier post:
>
> "Given the design of the stock HTMLDW component, you would not be able
> to
> accomplish this since the DeleteRow() causes a roundtrip to the server.
> You
> would have to either recode the JavaScript to perform all of the steps
> taken
> by the deleterow (this is needed to ensure that the context field is
> properly filled out) and then call performaction passing it 'update'; OR
>
> develop your own component that can recognize that when it sees a
> 'delete'
> it needs to do an update BEFORE returning."
>
> Are there any plans to release a standard HTML Datawindow (jaguar)
> component that would work like the PB counterpart (albeit thru the web
> interface)? Alternatively , can someone post a techpaper outlining
> creating custom components and also provide more documentation on how
> the out-of-the-box HTML Datawindow component works (context field,
> perform action and all).
>
> Of course, we could always code Servlets to do the job, but that would
> detract from the value of the almighty DataWindow!!
>
> Thanks
> JT
>


Adam Simmonds Posted on 2000-02-28 09:20:50.0Z
Newsgroups: sybase.public.easerver
Date: Mon, 28 Feb 2000 20:20:50 +1100
From: Adam Simmonds <asimmond@mail.usyd.edu.au>
Organization: University of Syndey
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Delete+Update in HTML Datawindow Component
Content-Type: multipart/mixed; boundary="------------83B661E185C7F8F172E06E24"
Lines: 61
NNTP-Posting-Host: pc-70.sis.usyd.edu.au 129.78.248.198
Message-ID: <347_38BA3DF2.A6CA473D@mail.usyd.edu.au>
References: <347_38B99ED3.A864064@appcs.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27684
Article PK: 159048

Gene,
I have found that just generating a HTML datawindow and then viewing the
source it produces is a good start at working out how it all works, its
actually quite interesting ( well I think so and I am easily pleased <g> )

As for doco on creating custom objects
1. Have a look at www.dyn-data.com, they have a framework that extensively
extends the HTMLdw to provide 3-tier and web capabilities. Very good! You
will have to register though to get the code.
2. Larry Cermak has a lot of articles. Check the sybase SDN site.
www.sybase.com/sdn

Rgds
Adam

Gene Dvoretsky wrote:

> Alex Whitney <awhitney@dyn-data.com> wrote in an earlier post:
>
> "Given the design of the stock HTMLDW component, you would not be able
> to
> accomplish this since the DeleteRow() causes a roundtrip to the server.
> You
> would have to either recode the JavaScript to perform all of the steps
> taken
> by the deleterow (this is needed to ensure that the context field is
> properly filled out) and then call performaction passing it 'update'; OR
>
> develop your own component that can recognize that when it sees a
> 'delete'
> it needs to do an update BEFORE returning."
>
> Are there any plans to release a standard HTML Datawindow (jaguar)
> component that would work like the PB counterpart (albeit thru the web
> interface)? Alternatively , can someone post a techpaper outlining
> creating custom components and also provide more documentation on how
> the out-of-the-box HTML Datawindow component works (context field,
> perform action and all).
>
> Of course, we could always code Servlets to do the job, but that would
> detract from the value of the almighty DataWindow!!
>
> Thanks
> JT


Download VCard asimmond.vcf