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.

How to return message to show if update success ?

2 posts in General Discussion (old) Last posting was on 2000-03-01 23:14:17.0Z
michael Posted on 2000-03-01 13:58:06.0Z
Newsgroups: sybase.public.easerver
From: "michael" <michael@khmail.fast.com.tw>
Subject: How to return message to show if update success ?
Date: Wed, 1 Mar 2000 21:58:06 +0800
Lines: 10
X-Newsreader: Microsoft Outlook Express 4.72.3612.1700
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
NNTP-Posting-Host: 203.73.26.1
Message-ID: <347_TrKw1Z4g$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:27433
Article PK: 158831

Hi!

when updating html datawindow, it doesn't return any message, except error
occur,

how can I judge if the update success or not and return correct message?

thanks for anybody's any idea !!


Larry Cermak[Team Sybase] Posted on 2000-03-01 23:14:17.0Z
Newsgroups: sybase.public.easerver
From: "Larry Cermak[Team Sybase]" <lcermak@ctpartners.com>
Subject: Re: How to return message to show if update success ?
Date: Wed, 1 Mar 2000 17:14:17 -0600
Lines: 43
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_bmpfIU9g$GA.251@forums.sybase.com>
References: <347_TrKw1Z4g$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:27377
Article PK: 158783

Check the return code from the SetAction.

var dwLocal_action = GetParam("dwMine_action");
var dwLocal_context = GetParam("dwMine_context");
if ("undefined" != "" + dwLocal_action)
{
retVal = dwLocal.setaction (dwLocal_action,dwLocal_context);
if (dwLocal_action == "Update" && retVal == -1)
{
// this failed
document.redirect = "s_message.html?messageid=15"
}
if (dwLocal_action == "Update" & retVal == 1)
{
// this was successful
ls_link = "s_renew_summary.html"
document.redirect = ls_link
}
}

--

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)

"michael" <michael@khmail.fast.com.tw> wrote in message
news:TrKw1Z4g$GA.251@forums.sybase.com...
> Hi!
>
> when updating html datawindow, it doesn't return any message, except
error
> occur,
>
> how can I judge if the update success or not and return correct message?
>
> thanks for anybody's any idea !!
>
>