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.

Help - ButtonClicked client side script

2 posts in General Discussion (old) Last posting was on 2000-03-13 15:56:44.0Z
Jerry Leckness Posted on 2000-03-13 14:41:35.0Z
Newsgroups: sybase.public.easerver
From: "Jerry Leckness" <jleckness@protective.com>
Subject: Help - ButtonClicked client side script
Date: Mon, 13 Mar 2000 08:41:35 -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: proxy2.protective.com 204.17.150.155
Message-ID: <347_ZFpOSsPj$GA.111@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26556
Article PK: 157569

How do I get retrieval arguments back to the HTML Generator. At the end of
the attached script is a function that is fired when the user clicks the
Search button. I get the ssan from the input field. At that point I want to
redisplay the same page but for a different ssan. How do I get the ssan to
the server so It will requery the Db and regen the page.

<--SCRIPT
dwLocal = java.CreateComponent("DataWindow/HTMLGenerator",
"iiop://localhost:9000", "jagadmin", "", "DataWindow/HTMLGenerator");

retVal = dwLocal.SetDWObject ("c:\\dcbweb\\dcbweb.pbl", "d_memberinfo")
if (retVal == 1)
{
dwLocal.SetBrowser(document.GetServerVariable("HTTP_USER_AGENT"));
dwLocal.SetHTMLObjectName ("dwMine");
dwLocal.SetTrans("SYJ","CacheName='TLSQL2'", "", "", "", "", "");

var dwMine_action = GetParam("dwMine_action");
var dwMine_context = GetParam("dwMine_context");

dwLocal.SetSelfLink (document.name, "");
dwLocal.SetWeight (true, true, true, true, true)
document.Write( dwLocal.Generate() );

}
-->

<SCRIPT Language=Javascript>

function dwMine_ButtonClicked(row, objName)
{
if (objName == "b_search")
dwMine.AcceptText();
ls_ssn = dwMine.GetItem(row,"ssan");
dwMine.Retrieve();
}
}

</SCRIPT>


Jorge Luzarraga C. Posted on 2000-03-13 15:56:44.0Z
Newsgroups: sybase.public.easerver
From: "Jorge Luzarraga C." <jluzarra@alboradasystems.com>
Subject: Re: Help - ButtonClicked client side script
Date: Mon, 13 Mar 2000 10:56:44 -0500
Lines: 51
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: 209.170.68.205
Message-ID: <347_uxf45hQj$GA.111@forums.sybase.com>
References: <347_ZFpOSsPj$GA.111@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26535
Article PK: 157549

you gotta send the argument in a function of your component.So your retrieve
method must accept argument or you must use retrieveex

Jerry Leckness <jleckness@protective.com> wrote in message
news:ZFpOSsPj$GA.111@forums.sybase.com...
> How do I get retrieval arguments back to the HTML Generator. At the end of
> the attached script is a function that is fired when the user clicks the
> Search button. I get the ssan from the input field. At that point I want
to
> redisplay the same page but for a different ssan. How do I get the ssan to
> the server so It will requery the Db and regen the page.
>
> <--SCRIPT
> dwLocal = java.CreateComponent("DataWindow/HTMLGenerator",
> "iiop://localhost:9000", "jagadmin", "", "DataWindow/HTMLGenerator");
>
> retVal = dwLocal.SetDWObject ("c:\\dcbweb\\dcbweb.pbl", "d_memberinfo")
> if (retVal == 1)
> {
> dwLocal.SetBrowser(document.GetServerVariable("HTTP_USER_AGENT"));
> dwLocal.SetHTMLObjectName ("dwMine");
> dwLocal.SetTrans("SYJ","CacheName='TLSQL2'", "", "", "", "", "");
>
> var dwMine_action = GetParam("dwMine_action");
> var dwMine_context = GetParam("dwMine_context");
>
> dwLocal.SetSelfLink (document.name, "");
> dwLocal.SetWeight (true, true, true, true, true)
> document.Write( dwLocal.Generate() );
>
> }
> -->
>
> <SCRIPT Language=Javascript>
>
> function dwMine_ButtonClicked(row, objName)
> {
> if (objName == "b_search")
> dwMine.AcceptText();
> ls_ssn = dwMine.GetItem(row,"ssan");
> dwMine.Retrieve();
> }
> }
>
> </SCRIPT>
>
>
>
>