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.

GetItem at client-side again!

2 posts in General Discussion (old) Last posting was on 2000-03-22 05:18:06.0Z
Jorge Luzarraga C. Posted on 2000-03-21 19:57:31.0Z
Newsgroups: sybase.public.easerver
From: "Jorge Luzarraga C." <jluzarra@alboradasystems.com>
Subject: GetItem at client-side again!
Date: Tue, 21 Mar 2000 14:57:31 -0500
Lines: 952
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_l2RJ3Q3k$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25978
Article PK: 154370

Hi guys,

I've checked up past post about this issue but I can't make this work.
Obviously I don't have it clear yet. I need to get some values from a web
datawindow to send them as parameters to another page but whenever I use the
GetItem function I get this error:

Line 242
this.cols.length is not an object

my page is:

<HTML>
<TITLE>Datos del Vehiculo</TITLE>
<script language=JavaScript>
function dwMine2_ItemChanged(row,colName,newValue)
{

}

function dwMine2_Clicked(row, objName)
{
if (objName == 'cam_seg_clas_1' || objName == 'cam_seg_fab' ||
objName == 'cam_seg_version' || objName == 'cam_seg_cil' ||
objName == 'cam_seg_iny' || objName == 'cam_seg_tran' ||
objName == 'cam_seg_npue' || objName == 'cam_seg_fre' ||
objName == 'cam_seg_qcoc' || objName == 'cam_seg_bol' ||
objName == 'cam_seg_bol' || objName == 'cam_seg_cat' ||
objName == 'cam_seg_grupo' || objName == 'cam_seg_compute_0011'
||
objName == 'cam_filtro_ac' || objName == 'cam_seg_sec'){
alert(dwMine2.GetItem(row,objName));//for debugging purposes
link = "dw4.stm?rowSelected="+row
parent.topright.location.href = link

}
}

</script>
<BODY>
<!--SCRIPT
dwMine2 =
java.CreateComponent("Generator/HTMLGenerator","iiop://myserver:9000",
"jagadmin","","Generator/HTMLGenerator");
if ( dwMine2 != null ){
dwMine2.setdwobject("web.pbl","d_seg_get_veh6") ;
dwMine2.sethtmlobjectname("dwMine2");
dwMine2.setbrowser(document.GetServerVariable("HTTP_USER_AGENT"));

dwMine2.settrans("ODBC","ConnectString='DSN=myprofile;UID=password;PWD=passw
ord;',StripParmNames='Yes'","","","","","");

dwMine2.retrieveex(document.value.tabla+'\n'+document.value.aniofab+'\n'+doc
ument.value.fecha

+'\n'+document.value.clasif+'\n'+document.value.codfab+'\n'+document.value.t
ipveh+'\n');
dwMine2.retrieve3();
dwMine2.setselflink(document.name,"");
dwMine2.setweight(true,true,true,true,true);
document.write(dwMine2.generate());
}
else{
document.writeln("No se pudo crear el componente deseado");
}
-->
</BODY>
</HTML>

I'm using powerbuilder 7.02, jaguar cts 3.5, powerdynamo3.0.I attached the
generated code.

Thanks in advance for the help!
--
Ing. Jorge Luzarraga C.
Analista de Sistemas
Alborada Systems, S.A.
www.alboradasystems.com


Larry Cermak[Team Sybase] Posted on 2000-03-22 05:18:06.0Z
Newsgroups: sybase.public.easerver
From: "Larry Cermak[Team Sybase]" <lcermak@ctpartners.com>
Subject: Re: GetItem at client-side again!
Date: Tue, 21 Mar 2000 23:18:06 -0600
Lines: 102
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_dMNeu97k$GA.298@forums.sybase.com>
References: <347_l2RJ3Q3k$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25954
Article PK: 154365

You need to have at least 1 editable column and the error will go away.
Another option is to have a read-only column.

--

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)

"Jorge Luzarraga C." <jluzarra@alboradasystems.com> wrote in message
news:l2RJ3Q3k$GA.201@forums.sybase.com...
> Hi guys,
>
> I've checked up past post about this issue but I can't make this work.
> Obviously I don't have it clear yet. I need to get some values from a web
> datawindow to send them as parameters to another page but whenever I use
the
> GetItem function I get this error:
>
> Line 242
> this.cols.length is not an object
>
> my page is:
>
> <HTML>
> <TITLE>Datos del Vehiculo</TITLE>
> <script language=JavaScript>
> function dwMine2_ItemChanged(row,colName,newValue)
> {
>
> }
>
> function dwMine2_Clicked(row, objName)
> {
> if (objName == 'cam_seg_clas_1' || objName == 'cam_seg_fab' ||
> objName == 'cam_seg_version' || objName == 'cam_seg_cil' ||
> objName == 'cam_seg_iny' || objName == 'cam_seg_tran' ||
> objName == 'cam_seg_npue' || objName == 'cam_seg_fre' ||
> objName == 'cam_seg_qcoc' || objName == 'cam_seg_bol' ||
> objName == 'cam_seg_bol' || objName == 'cam_seg_cat' ||
> objName == 'cam_seg_grupo' || objName ==
'cam_seg_compute_0011'
> ||
> objName == 'cam_filtro_ac' || objName == 'cam_seg_sec'){
> alert(dwMine2.GetItem(row,objName));//for debugging purposes
> link = "dw4.stm?rowSelected="+row
> parent.topright.location.href = link
>
> }
> }
>
> </script>
> <BODY>
> <!--SCRIPT
> dwMine2 =
> java.CreateComponent("Generator/HTMLGenerator","iiop://myserver:9000",
> "jagadmin","","Generator/HTMLGenerator");
> if ( dwMine2 != null ){
> dwMine2.setdwobject("web.pbl","d_seg_get_veh6") ;
> dwMine2.sethtmlobjectname("dwMine2");
> dwMine2.setbrowser(document.GetServerVariable("HTTP_USER_AGENT"));
>
>
dwMine2.settrans("ODBC","ConnectString='DSN=myprofile;UID=password;PWD=passw
> ord;',StripParmNames='Yes'","","","","","");
>
>
dwMine2.retrieveex(document.value.tabla+'\n'+document.value.aniofab+'\n'+doc
> ument.value.fecha
>
>
+'\n'+document.value.clasif+'\n'+document.value.codfab+'\n'+document.value.t
> ipveh+'\n');
> dwMine2.retrieve3();
> dwMine2.setselflink(document.name,"");
> dwMine2.setweight(true,true,true,true,true);
> document.write(dwMine2.generate());
> }
> else{
> document.writeln("No se pudo crear el componente deseado");
> }
> -->
> </BODY>
> </HTML>
>
> I'm using powerbuilder 7.02, jaguar cts 3.5, powerdynamo3.0.I attached the
> generated code.
>
> Thanks in advance for the help!
> --
> Ing. Jorge Luzarraga C.
> Analista de Sistemas
> Alborada Systems, S.A.
> www.alboradasystems.com
>
>
>