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.

AcceptText not reflecting new values of a check box

3 posts in General Discussion (old) Last posting was on 2000-03-16 03:46:22.0Z
Peter Kuit Posted on 2000-03-15 04:39:58.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Peter Kuit" <peterkuit@hotmail.com>
From: "Peter Kuit" <peterkuit@hotmail.com>
Subject: AcceptText not reflecting new values of a check box
Date: Wed, 15 Mar 2000 12:39:58 +0800
Lines: 45
Organization: Peter Kuit
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: brk-21-40.tm.net.my 202.188.21.40
Message-ID: <347_4JlIDdjj$GA.151@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26398
Article PK: 157065

hi to all,

i got HTML DW with datasource from a table returning 4 columns inclusive of
1 computed column initialized to 0. i only display 2 columns, 'ingot_no' and
the computed column 'cc_selected' presented as 'check box'.

the user has to mark which 'ingot_no' to process via 'cc_selected' column
(values: 1 or 0).

below is the client-side script:
=================
<SCRIPT Language=JavaScript>
function dwMine_ButtonClicked(row, objName)
{
if (objName == "b_generate")
{
var s_ingot = "";
var i = 0;
dwMine.AcceptText();
for(var i=1;i<=dwMine.RowCount();i++) {
i_selected = dwMine.GetItem( i, "cc_selected");
if (i_selected == 1)
{
s_ingot += dwMine.GetItem( i,"ingot_no")+";";
}
}
s_link = "module_reports_frequency.htm?ingot_no="+s_ingot;
parent.right.location.href = s_link;
}
}
======================

but the s_ingot variable is not getting the new values selected by the user.
i tried to set the s_ingot variable to contain the i_selected for all rows
just to check the values of the check box. all showing 0 and not 1, though i
tried selecting all, or other combination.

what have i missed? i tried the dwMine.Retrieve(); immediately after
dwMine.AcceptText() but still it doesnt seem to work.

tia,
orisoft


Adam Simmonds Posted on 2000-03-15 22:36:47.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 16 Mar 2000 09:36:47 +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: AcceptText not reflecting new values of a check box
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 42
NNTP-Posting-Host: pc-70.sis.usyd.edu.au 129.78.248.198
Message-ID: <347_38D0107F.4BF52EBD@mail.usyd.edu.au>
References: <347_4JlIDdjj$GA.151@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26331
Article PK: 157000

Peter,
Check boxes do not work in the htmldw, you could use radio buttons but they also
have some problems within Netscape Navigator.

Until this is fixed I have used a drop down list box with Yes/No options.

Adam

Peter Kuit wrote:

> hi to all,
>
> i got HTML DW with datasource from a table returning 4 columns inclusive of
> 1 computed column initialized to 0. i only display 2 columns, 'ingot_no' and
> the computed column 'cc_selected' presented as 'check box'.
>
> the user has to mark which 'ingot_no' to process via 'cc_selected' column
> (values: 1 or 0).
>
> below is the client-side script:
> =================
> <SCRIPT Language=JavaScript>
> function dwMine_ButtonClicked(row, objName)
> {
> if (objName == "b_generate")
> {
> var s_ingot = "";
> var i = 0;
> dwMine.AcceptText();
> for(var i=1;i<=dwMine.RowCount();i++) {
> i_selected = dwMine.GetItem( i, "cc_selected");
> if (i_selected == 1)
> {
> s_ingot += dwMine.GetItem( i,"ingot_no")+";";
> }
> }
> s_link = "module_reports_frequency.htm?ingot_no="+s_ingot;
> parent.right.location.href = s_link;
> }
> }
> ======================
>
> but the s_ingot variable is not getting the new values selected by the user.
> i tried to set the s_ingot variable to contain the i_selected for all rows
> just to check the values of the check box. all showing 0 and not 1, though i
> tried selecting all, or other combination.
>
> what have i missed? i tried the dwMine.Retrieve(); immediately after
> dwMine.AcceptText() but still it doesnt seem to work.
>
> tia,
> orisoft


Peter Kuit Posted on 2000-03-16 03:46:22.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Peter Kuit" <peterkuit@hotmail.com>
From: "Peter Kuit" <peterkuit@hotmail.com>
Subject: Re: AcceptText not reflecting new values of a check box
Date: Thu, 16 Mar 2000 11:46:22 +0800
Lines: 66
Organization: Peter Kuit
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: jrc-195-166.tm.net.my 202.188.195.166
Message-ID: <347_lJrfFjvj$GA.111@forums.sybase.com>
References: <347_4JlIDdjj$GA.151@forums.sybase.com> <347_38D0107F.4BF52EBD@mail.usyd.edu.au>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26321
Article PK: 156990

thanks a lot Adam, i will try doing that too.

Adam Simmonds <asimmond@mail.usyd.edu.au> wrote in message
news:38D0107F.4BF52EBD@mail.usyd.edu.au...
> Peter,
> Check boxes do not work in the htmldw, you could use radio buttons but
they also
> have some problems within Netscape Navigator.
>
> Until this is fixed I have used a drop down list box with Yes/No options.
>
> Adam
>
> Peter Kuit wrote:
>
> > hi to all,
> >
> > i got HTML DW with datasource from a table returning 4 columns inclusive
of
> > 1 computed column initialized to 0. i only display 2 columns, 'ingot_no'
and
> > the computed column 'cc_selected' presented as 'check box'.
> >
> > the user has to mark which 'ingot_no' to process via 'cc_selected'
column
> > (values: 1 or 0).
> >
> > below is the client-side script:
> > =================
> > <SCRIPT Language=JavaScript>
> > function dwMine_ButtonClicked(row, objName)
> > {
> > if (objName == "b_generate")
> > {
> > var s_ingot = "";
> > var i = 0;
> > dwMine.AcceptText();
> > for(var i=1;i<=dwMine.RowCount();i++) {
> > i_selected = dwMine.GetItem( i, "cc_selected");
> > if (i_selected == 1)
> > {
> > s_ingot += dwMine.GetItem( i,"ingot_no")+";";
> > }
> > }
> > s_link = "module_reports_frequency.htm?ingot_no="+s_ingot;
> > parent.right.location.href = s_link;
> > }
> > }
> > ======================
> >
> > but the s_ingot variable is not getting the new values selected by the
user.
> > i tried to set the s_ingot variable to contain the i_selected for all
rows
> > just to check the values of the check box. all showing 0 and not 1,
though i
> > tried selecting all, or other combination.
> >
> > what have i missed? i tried the dwMine.Retrieve(); immediately after
> > dwMine.AcceptText() but still it doesnt seem to work.
> >
> > tia,
> > orisoft
>