can't get serverside dw functions to work: "Object doesn't support this property or method"

This is a multi-part message in MIME format.

------=_NextPart_000_00D7_01BF98D3.2B917E60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

When the user hits update, I want to display a blank row.   To do that I =
have this code in my page:

if (dwMine_action + "" !=3D "undefined")=20
   {=20
   retVal =3D dwMine.SetAction (dwMine_action, dwMine_context);=20
   Response.Write(dwMine_action); // for testing=20
   if (dwMine_action =3D=3D "Update") {dwMine.InsertRow(0);}=20
   }
 Response.Write( dwMine.Generate() );

The script is bombing on the InsertRow(0); call.  IE says "object =
doesn't support this property or method".  However I'm using InsertRow =
successfully earlier on in my ASP page without any problem:
<BODY  onload=3D"if (dwMine.RowCount() =3D=3D0)
    {
    dwMine.InsertRow(0);
    }">

So what do I have to do to get it to work serverside?    I recall Larry =
C. telling me once that you can't call InsertRow on the server side =
without modifying some PB pbd's somehow...   Can Larry or someone else =
give me details on how to get this to work? =20

Thanks for any help,
Jay Shohet    ash477@hotmail.com =20

------=_NextPart_000_00D7_01BF98D3.2B917E60
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>When the user hits =
update, I want to=20
display a blank row.&nbsp;&nbsp; To do that I have this code in my=20
page:</FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2>if (dwMine_action + "" =
!=3D=20
"undefined") </FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp; { =
</FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp; retVal =3D =

dwMine.SetAction (dwMine_action, dwMine_context); </FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp;=20
Response.Write(dwMine_action); // for testing </FONT></DIV>
<DIV><FONT color=3D#0000ff><FONT face=3DArial size=3D2>&nbsp;&nbsp; =
<FONT=20
color=3D#ff0000>if (dwMine_action =3D=3D "Update")=20
{dwMine.InsertRow(0);</FONT></FONT></FONT><FONT color=3D#ff0000 =
face=3DArial=20
size=3D2>} </FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp; =
}</FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;Response.Write(=20
dwMine.Generate() );</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The script is bombing on the =
InsertRow(0);=20
call.&nbsp; IE says <STRONG>"object doesn't support this property or=20
method".&nbsp; </STRONG>However I'm using InsertRow successfully earlier =
on in=20
my ASP page without any problem:</FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2>&lt;BODY&nbsp; =
onload=3D"if=20
(dwMine.RowCount()=20
=3D=3D0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;dwMine.I=
nsertRow(0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;}"&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>So&nbsp;what&nbsp;do I have to do to =
get it to work=20
serverside?&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;recall Larry C. telling me =
once that=20
you can't call InsertRow on the server side without modifying some PB =
pbd's=20
somehow...&nbsp;&nbsp; Can Larry or someone else give me details on how =
to get=20
this to work?&nbsp; </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for any help,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Jay Shohet&nbsp;&nbsp;&nbsp; <A=20
href=3D"mailto:ash477@hotmail.com">ash477@hotmail.com</A>&nbsp;=20
</FONT></DIV></BODY></HTML>

------=_NextPart_000_00D7_01BF98D3.2B917E60--

0
Jay
3/28/2000 9:32:12 PM
sybase.easerver 11371 articles. 0 followers. Follow

6 Replies
837 Views

Similar Articles

[PageSpeed] 50

This is a multi-part message in MIME format.

------=_NextPart_000_000B_01BF98E5.2EEA4120
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Jay,

The message error you're getting says that there isn't a object at =
client-side that supports that method or property talking about =
javascript, the language used for catching events at client side.

are you trying to invoke a component's method from inside a JavaScript =
client-side script?, if so? you just can't do that. You must invoke your =
component's method from inside powerdynamo script( server-side scripts), =
so you must reload the page in order to execute the component method you =
want.

Besides your component must have that method as part of its interface.
  Jay S. <ash477@hotmail.com> wrote in message =
news:MwVIV2Pm$GA.201@forums.sybase.com...
  When the user hits update, I want to display a blank row.   To do that =
I have this code in my page:
  =20
  if (dwMine_action + "" !=3D "undefined")=20
     {=20
     retVal =3D dwMine.SetAction (dwMine_action, dwMine_context);=20
     Response.Write(dwMine_action); // for testing=20
     if (dwMine_action =3D=3D "Update") {dwMine.InsertRow(0);}=20
     }
   Response.Write( dwMine.Generate() );

  The script is bombing on the InsertRow(0); call.  IE says "object =
doesn't support this property or method".  However I'm using InsertRow =
successfully earlier on in my ASP page without any problem:
  <BODY  onload=3D"if (dwMine.RowCount() =3D=3D0)
      {
      dwMine.InsertRow(0);
      }">
  =20
  So what do I have to do to get it to work serverside?    I recall =
Larry C. telling me once that you can't call InsertRow on the server =
side without modifying some PB pbd's somehow...   Can Larry or someone =
else give me details on how to get this to work? =20

  Thanks for any help,
  Jay Shohet    ash477@hotmail.com =20

------=_NextPart_000_000B_01BF98E5.2EEA4120
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Jay,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>The message error you're getting says that there =
isn't a=20
object at client-side that supports that method or property talking =
about=20
javascript, the language used for catching events at client =
side.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>are you trying to invoke a component's method from =
inside a=20
JavaScript client-side script?, if so? you just can't do that. You must =
invoke=20
your component's method from inside powerdynamo script( server-side =
scripts), so=20
you must reload the page in order to execute the component method you=20
want.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Besides your component must have that method as part =
of its=20
interface.</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV>Jay S. &lt;<A =
href=3D"mailto:ash477@hotmail.com">ash477@hotmail.com</A>&gt;=20
  wrote in message <A=20
  =
href=3D"news:MwVIV2Pm$GA.201@forums.sybase.com">news:MwVIV2Pm$GA.201@foru=
ms.sybase.com</A>...</DIV>
  <DIV><FONT color=3D#000000 face=3DArial size=3D2>When the user hits =
update, I want=20
  to display a blank row.&nbsp;&nbsp; To do that I have this code in my=20
  page:</FONT></DIV>
  <DIV><FONT color=3D#0000ff face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT color=3D#0000ff face=3DArial size=3D2>if (dwMine_action + =
"" !=3D=20
  "undefined") </FONT></DIV>
  <DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp; { =
</FONT></DIV>
  <DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp; retVal =
=3D=20
  dwMine.SetAction (dwMine_action, dwMine_context); </FONT></DIV>
  <DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp;=20
  Response.Write(dwMine_action); // for testing </FONT></DIV>
  <DIV><FONT color=3D#0000ff><FONT face=3DArial size=3D2>&nbsp;&nbsp; =
<FONT=20
  color=3D#ff0000>if (dwMine_action =3D=3D "Update")=20
  {dwMine.InsertRow(0);</FONT></FONT></FONT><FONT color=3D#ff0000 =
face=3DArial=20
  size=3D2>} </FONT></DIV>
  <DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp; =
}</FONT></DIV>
  <DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;Response.Write( =

  dwMine.Generate() );</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>The script is bombing on the =
InsertRow(0);=20
  call.&nbsp; IE says <STRONG>"object doesn't support this property or=20
  method".&nbsp; </STRONG>However I'm using InsertRow successfully =
earlier on in=20
  my ASP page without any problem:</FONT></DIV>
  <DIV><FONT color=3D#0000ff face=3DArial size=3D2>&lt;BODY&nbsp; =
onload=3D"if=20
  (dwMine.RowCount()=20
  =
=3D=3D0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;dwMine.I=
nsertRow(0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;}"&gt;</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>So&nbsp;what&nbsp;do I have to do to =
get it to=20
  work serverside?&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;recall Larry C. telling =
me once=20
  that you can't call InsertRow on the server side without modifying =
some PB=20
  pbd's somehow...&nbsp;&nbsp; Can Larry or someone else give me details =
on how=20
  to get this to work?&nbsp; </FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks for any help,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Jay Shohet&nbsp;&nbsp;&nbsp; <A=20
  href=3D"mailto:ash477@hotmail.com">ash477@hotmail.com</A>&nbsp;=20
</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000B_01BF98E5.2EEA4120--

0
Jorge
3/28/2000 11:41:08 PM
This is a multi-part message in MIME format.

------=_NextPart_000_000B_01BF9937.F1946AF0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

'dwMine' below is the instance of the htmldw.  It IS most definately =
Serverside javascript  in my ASP page.  In ASP, anything within the <% =
%> brackets denotes that it gets executed on the server, and the snippet =
of code you see below is within those quotes. =20

Maybe I can ask the ng how to do the following:   after the user hits =
'Update' [I'm thinking of changing the name to Submit],  I want to =
display a single, new record.  Not the one that got updated -- I want =
just a new blank record.  I'm trying to emulate a typical 'form' on the =
internet that has a submit button.  After you hit Submit, the form =
should clear. =20

Thanks,
Jay Shohet
  are you trying to invoke a component's method from inside a JavaScript =
client-side script?, if so? you just can't do that. You must invoke your =
component's method from inside powerdynamo script( server-side scripts), =
so you must reload the page in order to execute the component method you =
want.

  Besides your component must have that method as part of its interface.
    When the user hits update, I want to display a blank row.   To do =
that I have this code in my page:
    =20
    if (dwMine_action + "" !=3D "undefined")=20
       {=20
       retVal =3D dwMine.SetAction (dwMine_action, dwMine_context);=20
       Response.Write(dwMine_action); // for testing=20
       if (dwMine_action =3D=3D "Update") {dwMine.InsertRow(0);}=20
       }
     Response.Write( dwMine.Generate() );

    The script is bombing on the InsertRow(0); call.  IE says "object =
doesn't support this property or method".  So what do I have to do to =
get it to work serverside?    I recall Larry C. telling me once that you =
can't call InsertRow on the server side without modifying some PB pbd's =
somehow...   Can Larry or someone else give me details on how to get =
this to work? =20

    Thanks for any help,
    Jay Shohet    ash477@hotmail.com =20

------=_NextPart_000_000B_01BF9937.F1946AF0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>'dwMine' below is the instance of the =
htmldw.&nbsp;=20
It IS most definately&nbsp;Serverside javascript&nbsp; in&nbsp;my ASP=20
page.&nbsp; In ASP, anything within the &lt;% %&gt; brackets denotes =
that it=20
gets executed on the server, and the snippet of code you see below is =
within=20
those quotes.&nbsp; </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Maybe&nbsp;I can ask the ng how to do =
the=20
following:&nbsp;&nbsp; after the user hits 'Update' [I'm thinking of =
changing=20
the name to Submit],&nbsp; I want to display a single, new record.&nbsp; =
Not the=20
one that got updated -- I want just a new blank record.&nbsp; I'm trying =
to=20
emulate a typical 'form' on the internet that has a submit button.&nbsp; =
After=20
you hit Submit, the form should clear.&nbsp; </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Jay Shohet</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV><FONT size=3D2>are you trying to invoke a component's method from =
inside a=20
  JavaScript client-side script?, if so? you just can't do that. You =
must invoke=20
  your component's method from inside powerdynamo script( server-side =
scripts),=20
  so you must reload the page in order to execute the component method =
you=20
  want.</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT size=3D2>Besides your component must have that method as =
part of its=20
  interface.</FONT></DIV>
  <BLOCKQUOTE=20
  style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; =
MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
    <DIV><FONT color=3D#000000 face=3DArial size=3D2>When the user hits =
update, I want=20
    to display a blank row.&nbsp;&nbsp; To do that I have this code in =
my=20
    page:</FONT></DIV>
    <DIV><FONT color=3D#0000ff face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT color=3D#0000ff face=3DArial size=3D2>if (dwMine_action + =
"" !=3D=20
    "undefined") </FONT></DIV>
    <DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp; { =
</FONT></DIV>
    <DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp; retVal =
=3D=20
    dwMine.SetAction (dwMine_action, dwMine_context); </FONT></DIV>
    <DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp;=20
    Response.Write(dwMine_action); // for testing </FONT></DIV>
    <DIV><FONT color=3D#0000ff><FONT face=3DArial size=3D2>&nbsp;&nbsp; =
<FONT=20
    color=3D#ff0000>if (dwMine_action =3D=3D "Update")=20
    {dwMine.InsertRow(0);</FONT></FONT></FONT><FONT color=3D#ff0000 =
face=3DArial=20
    size=3D2>} </FONT></DIV>
    <DIV><FONT color=3D#0000ff face=3DArial size=3D2>&nbsp;&nbsp; =
}</FONT></DIV>
    <DIV><FONT color=3D#0000ff face=3DArial =
size=3D2>&nbsp;Response.Write(=20
    dwMine.Generate() );</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>The script is bombing on the =
InsertRow(0);=20
    call.&nbsp; IE says <STRONG>"object doesn't support this property or =

    method".&nbsp; </STRONG></FONT><FONT face=3DArial =
size=3D2>So&nbsp;what&nbsp;do=20
    I have to do to get it to work=20
    serverside?&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;recall Larry C. telling me =
once=20
    that you can't call InsertRow on the server side without modifying =
some PB=20
    pbd's somehow...&nbsp;&nbsp; Can Larry or someone else give me =
details on=20
    how to get this to work?&nbsp; </FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Thanks for any help,</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>Jay Shohet&nbsp;&nbsp;&nbsp; <A=20
    href=3D"mailto:ash477@hotmail.com">ash477@hotmail.com</A>&nbsp;=20
  </FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000B_01BF9937.F1946AF0--

0
Jay
3/29/2000 9:33:34 AM
Jay,

You are correct in your recollection that the HTMLGenerator component does
not support the InsertRow method.  If you want to be able to insert a row
from a server side script, you need to modify the HTMLGenerator component
and add an InsertRow method.  The source for the HTMLGenerator component can
be found in pbdwrmt.pbl in the \Code Examples\Htmldw\ directory in your
PowerBuilder installation.

Steve Finck
Corporate Technology Partners
www.ctpartners.com

Sybase J2EE Whistle Stop Tour
April 11 - Boston
April 13 - Denver


Jay S. <ash477@hotmail.com> wrote in message
news:FfUTyNWm$GA.290@forums.sybase.com...
'dwMine' below is the instance of the htmldw.  It IS most definately
Serverside javascript  in my ASP page.  In ASP, anything within the <% %>
brackets denotes that it gets executed on the server, and the snippet of
code you see below is within those quotes.

Maybe I can ask the ng how to do the following:   after the user hits
'Update' [I'm thinking of changing the name to Submit],  I want to display a
single, new record.  Not the one that got updated -- I want just a new blank
record.  I'm trying to emulate a typical 'form' on the internet that has a
submit button.  After you hit Submit, the form should clear.

Thanks,
Jay Shohet
  are you trying to invoke a component's method from inside a JavaScript
client-side script?, if so? you just can't do that. You must invoke your
component's method from inside powerdynamo script( server-side scripts), so
you must reload the page in order to execute the component method you want.

  Besides your component must have that method as part of its interface.
    When the user hits update, I want to display a blank row.   To do that I
have this code in my page:

    if (dwMine_action + "" != "undefined")


       retVal = dwMine.SetAction (dwMine_action, dwMine_context);
       Response.Write(dwMine_action); // for testing
       if (dwMine_action == "Update") {dwMine.InsertRow(0);}
       }
     Response.Write( dwMine.Generate() );

    The script is bombing on the InsertRow(0); call.  IE says "object
doesn't support this property or method".  So what do I have to do to get it
to work serverside?    I recall Larry C. telling me once that you can't call
InsertRow on the server side without modifying some PB pbd's somehow...
Can Larry or someone else give me details on how to get this to work?

    Thanks for any help,
    Jay Shohet    ash477@hotmail.com



0
Steve
3/29/2000 1:10:26 PM
hi Steve, can you verify this directory and file?  I can't find pbdwrmt.pbl
anywhere on my machine, which DOES have PB 7 on it.  Also I can't find a
htmldw folder either.

Jay Shohet


"Steve Finck" <stevefinck@spam.mindspring.com> wrote in message
news:sR3ANDYm$GA.52@forums.sybase.com...
> Jay,
>
> You are correct in your recollection that the HTMLGenerator component does
> not support the InsertRow method.  If you want to be able to insert a row
> from a server side script, you need to modify the HTMLGenerator component
> and add an InsertRow method.  The source for the HTMLGenerator component
can
> be found in pbdwrmt.pbl in the \Code Examples\Htmldw\ directory in your
> PowerBuilder installation.
>
> Steve Finck
> Corporate Technology Partners
> www.ctpartners.com
>
> Sybase J2EE Whistle Stop Tour
> April 11 - Boston
> April 13 - Denver
>
>
> Jay S. <ash477@hotmail.com> wrote in message
> news:FfUTyNWm$GA.290@forums.sybase.com...
> 'dwMine' below is the instance of the htmldw.  It IS most definately
> Serverside javascript  in my ASP page.  In ASP, anything within the <% %>
> brackets denotes that it gets executed on the server, and the snippet of
> code you see below is within those quotes.
>
> Maybe I can ask the ng how to do the following:   after the user hits
> 'Update' [I'm thinking of changing the name to Submit],  I want to display
a
> single, new record.  Not the one that got updated -- I want just a new
blank
> record.  I'm trying to emulate a typical 'form' on the internet that has a
> submit button.  After you hit Submit, the form should clear.
>
> Thanks,
> Jay Shohet
>   are you trying to invoke a component's method from inside a JavaScript
> client-side script?, if so? you just can't do that. You must invoke your
> component's method from inside powerdynamo script( server-side scripts),
so
> you must reload the page in order to execute the component method you
want.
>
>   Besides your component must have that method as part of its interface.
>     When the user hits update, I want to display a blank row.   To do that
I
> have this code in my page:
>
>     if (dwMine_action + "" != "undefined")
>
>
>        retVal = dwMine.SetAction (dwMine_action, dwMine_context);
>        Response.Write(dwMine_action); // for testing
>        if (dwMine_action == "Update") {dwMine.InsertRow(0);}
>        }
>      Response.Write( dwMine.Generate() );
>
>     The script is bombing on the InsertRow(0); call.  IE says "object
> doesn't support this property or method".  So what do I have to do to get
it
> to work serverside?    I recall Larry C. telling me once that you can't
call
> InsertRow on the server side without modifying some PB pbd's somehow...
> Can Larry or someone else give me details on how to get this to work?
>
>     Thanks for any help,
>     Jay Shohet    ash477@hotmail.com
>
>
>


0
Jay
3/29/2000 7:33:00 PM
He mentioned the correct directory.  When you installed PB did you install
the example applications?  That's what installs it.

--

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)

Web DataWindow Training
EAServer Training

"Jay S." <ash477@hotmail.com> wrote in message
news:$LQ$ZYbm$GA.298@forums.sybase.com...
> hi Steve, can you verify this directory and file?  I can't find
pbdwrmt.pbl
> anywhere on my machine, which DOES have PB 7 on it.  Also I can't find a
> htmldw folder either.
>
> Jay Shohet
>
>
> "Steve Finck" <stevefinck@spam.mindspring.com> wrote in message
> news:sR3ANDYm$GA.52@forums.sybase.com...
> > Jay,
> >
> > You are correct in your recollection that the HTMLGenerator component
does
> > not support the InsertRow method.  If you want to be able to insert a
row
> > from a server side script, you need to modify the HTMLGenerator
component
> > and add an InsertRow method.  The source for the HTMLGenerator component
> can
> > be found in pbdwrmt.pbl in the \Code Examples\Htmldw\ directory in your
> > PowerBuilder installation.
> >
> > Steve Finck
> > Corporate Technology Partners
> > www.ctpartners.com
> >
> > Sybase J2EE Whistle Stop Tour
> > April 11 - Boston
> > April 13 - Denver
> >
> >
> > Jay S. <ash477@hotmail.com> wrote in message
> > news:FfUTyNWm$GA.290@forums.sybase.com...
> > 'dwMine' below is the instance of the htmldw.  It IS most definately
> > Serverside javascript  in my ASP page.  In ASP, anything within the <%
%>
> > brackets denotes that it gets executed on the server, and the snippet of
> > code you see below is within those quotes.
> >
> > Maybe I can ask the ng how to do the following:   after the user hits
> > 'Update' [I'm thinking of changing the name to Submit],  I want to
display
> a
> > single, new record.  Not the one that got updated -- I want just a new
> blank
> > record.  I'm trying to emulate a typical 'form' on the internet that has
a
> > submit button.  After you hit Submit, the form should clear.
> >
> > Thanks,
> > Jay Shohet
> >   are you trying to invoke a component's method from inside a JavaScript
> > client-side script?, if so? you just can't do that. You must invoke your
> > component's method from inside powerdynamo script( server-side scripts),
> so
> > you must reload the page in order to execute the component method you
> want.
> >
> >   Besides your component must have that method as part of its interface.
> >     When the user hits update, I want to display a blank row.   To do
that
> I
> > have this code in my page:
> >
> >     if (dwMine_action + "" != "undefined")
> >
> >
> >        retVal = dwMine.SetAction (dwMine_action, dwMine_context);
> >        Response.Write(dwMine_action); // for testing
> >        if (dwMine_action == "Update") {dwMine.InsertRow(0);}
> >        }
> >      Response.Write( dwMine.Generate() );
> >
> >     The script is bombing on the InsertRow(0); call.  IE says "object
> > doesn't support this property or method".  So what do I have to do to
get
> it
> > to work serverside?    I recall Larry C. telling me once that you can't
> call
> > InsertRow on the server side without modifying some PB pbd's somehow...
> > Can Larry or someone else give me details on how to get this to work?
> >
> >     Thanks for any help,
> >     Jay Shohet    ash477@hotmail.com
> >
> >
> >
>
>


0
Larry
3/30/2000 1:48:14 AM
oh sh**, I just remembered, I never install the example application... guess
I gotta go back and install it.  Thanks.
Jay Shohet

"Larry Cermak[Team Sybase]" <lcermak@ctpartners.com> wrote in message
news:DNJyMuem$GA.290@forums.sybase.com...
> He mentioned the correct directory.  When you installed PB did you install
> the example applications?  That's what installs it.
>
> --
>
> 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)
>
> Web DataWindow Training
> EAServer Training
>
> "Jay S." <ash477@hotmail.com> wrote in message
> news:$LQ$ZYbm$GA.298@forums.sybase.com...
> > hi Steve, can you verify this directory and file?  I can't find
> pbdwrmt.pbl
> > anywhere on my machine, which DOES have PB 7 on it.  Also I can't find a
> > htmldw folder either.
> >
> > Jay Shohet
> >
> >
> > "Steve Finck" <stevefinck@spam.mindspring.com> wrote in message
> > news:sR3ANDYm$GA.52@forums.sybase.com...
> > > Jay,
> > >
> > > You are correct in your recollection that the HTMLGenerator component
> does
> > > not support the InsertRow method.  If you want to be able to insert a
> row
> > > from a server side script, you need to modify the HTMLGenerator
> component
> > > and add an InsertRow method.  The source for the HTMLGenerator
component
> > can
> > > be found in pbdwrmt.pbl in the \Code Examples\Htmldw\ directory in
your
> > > PowerBuilder installation.
> > >
> > > Steve Finck
> > > Corporate Technology Partners
> > > www.ctpartners.com
> > >
> > > Sybase J2EE Whistle Stop Tour
> > > April 11 - Boston
> > > April 13 - Denver
> > >
> > >
> > > Jay S. <ash477@hotmail.com> wrote in message
> > > news:FfUTyNWm$GA.290@forums.sybase.com...
> > > 'dwMine' below is the instance of the htmldw.  It IS most definately
> > > Serverside javascript  in my ASP page.  In ASP, anything within the <%
> %>
> > > brackets denotes that it gets executed on the server, and the snippet
of
> > > code you see below is within those quotes.
> > >
> > > Maybe I can ask the ng how to do the following:   after the user hits
> > > 'Update' [I'm thinking of changing the name to Submit],  I want to
> display
> > a
> > > single, new record.  Not the one that got updated -- I want just a new
> > blank
> > > record.  I'm trying to emulate a typical 'form' on the internet that
has
> a
> > > submit button.  After you hit Submit, the form should clear.
> > >
> > > Thanks,
> > > Jay Shohet
> > >   are you trying to invoke a component's method from inside a
JavaScript
> > > client-side script?, if so? you just can't do that. You must invoke
your
> > > component's method from inside powerdynamo script( server-side
scripts),
> > so
> > > you must reload the page in order to execute the component method you
> > want.
> > >
> > >   Besides your component must have that method as part of its
interface.
> > >     When the user hits update, I want to display a blank row.   To do
> that
> > I
> > > have this code in my page:
> > >
> > >     if (dwMine_action + "" != "undefined")
> > >
> > >
> > >        retVal = dwMine.SetAction (dwMine_action, dwMine_context);
> > >        Response.Write(dwMine_action); // for testing
> > >        if (dwMine_action == "Update") {dwMine.InsertRow(0);}
> > >        }
> > >      Response.Write( dwMine.Generate() );
> > >
> > >     The script is bombing on the InsertRow(0); call.  IE says "object
> > > doesn't support this property or method".  So what do I have to do to
> get
> > it
> > > to work serverside?    I recall Larry C. telling me once that you
can't
> > call
> > > InsertRow on the server side without modifying some PB pbd's
somehow...
> > > Can Larry or someone else give me details on how to get this to work?
> > >
> > >     Thanks for any help,
> > >     Jay Shohet    ash477@hotmail.com
> > >
> > >
> > >
> >
> >
>
>


0
Jay
3/30/2000 11:39:09 AM
Reply:

Similar Artilces:

Custom JS class gets "Object doesn't support this property or method" when invoking custom event handler.
I'm creating a custom keyboard handler and want to raise events for specific keys.  I've created an enumeration for the function keys and a class that registers to the document's onkeydown event using $addHandler.  This event is handled just fine.  I've modeled my JS code on the behavior code from the ASP.Net Ajax Toolkit, so I expect it to work as reliably.  Unfortunately, when I call handler(this, eventArgs) I get the error in the $addHandler function of all places.  Here's the problematic code: // Copyright 2009, HCA// Written by Payton Byrd/...

"Object doesn't support this property or method"
IE5.5SP2 - javascript error as above. Can't fathom this - M$KB no help at all. Web pages OK from another computer, so it's this machine. Anyone got any clues? -- Geraldo [reply only to ng] Geraldo, > IE5.5SP2 - javascript error as above. > Looks like JS developed for Netscape was encountered. I see a lot fo these. psy On Sat, 16 Feb 2002 Psychomation <resmonet@cswebmail.com> wrote: >Geraldo, > >> IE5.5SP2 - javascript error as above. >> >Looks like JS developed for Netscape was encountered. I see a lot fo >these. ...

"object doesn't support this property or method" on postback?
Hi, I'm getting that error when I postback the page, butit seems like if the page doesn't go to the server and return.. I'm using Ajax and an automatic popup... And in the page.beginrequest I show the popup. The code I use is: <script type="text/javascript">   Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);  function beginRequest(sender, args){     try     {     $find('<%= mdlPopup.ClientID %>').show();      }  &nb...

Won't work: Keep getting "can't retrieve your data" messages
Name: scott Product: eBay Companion Summary: Won't work: Keep getting "can't retrieve your data" messages Comments: Install was fine, but every time I click the Connect to eBay in the sidebar, and after filling in my ID and PW in a new tab, a drop down message says "The eBay Companion is not able to retrieve your data. Please try to connect again." It's done that 4 times. Browser Details: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 ...

I can't get no cache, I can't get no cache. 'Cause I try and I try and I try and, I can't get no, I can't get no cache.
I have fiddled out for days tinkering with the setting in about:config trying to get FireFox 12 to use the disk cache. I have NOT found the trick. This One Trick Pony ain't doing it like it used to up until recently. Pray tell anyone, What information can I share that will point a knowledgeable person to aid me in getting FF to disk.cache? I have also tried restarting FF with add-ons disabled, (There were NOT too many to do this to, so it was quick and easy) Here is my stab at trying to convey the information that MIGHT govern matters Using about:cache Informatio...

Re: I can't get no cache, I can't get no cache. ' Cause I try and I try and I try and, I can't get no, I can't get no cache.
<div>please com e see me about htis<br /> <br /> ------- Original Message f= rom the Global Relay Archive -------<br /> From: Hp &lt;ferd@farkel.net&gt;= <br /> To: "support-firefox@lists.mozilla.org" &lt;support-firefox@lists.mo= zilla.org&gt;<br /> Sent: Sun, 27 May 2012 18:30:18 -0700<br /> Subject: I = can't get no cache, I can't get no cache. 'Cause I try and I try and I try = and, I can't get no, I can't get no cache.<br /> <br /></div> <pre class=3D"gr-maex-body-pre&qu...

Can't locate object method "get" via package "LWP::UserAgent"
#!/usr/bin/perl use strict; use URI; #use HTTP::Request::Common qw(GET); use LWP; #use HTTP::Response; my $browser = LWP::UserAgent->new; $browser->env_proxy(); my $response=$browser->get('http://finance.yahoo.com/d/quotes.csv?s=msft&f=sl1d1t1c1ohgv'); print $response->content; Can someone please tell me how to solve this error message when i type perl test.pl at the prompt. test.pl is the filename Can't locate object method "get" via package "LWP::UserAgent" I haven't seen where you said: use LWP::UserAgent; Jo...

"Object doesn't support this property or method" error when using FilteredTextboxExtender
I am trying to use the filteredtextboxextender in my project and continue to get an "Object doesn't support this property or method" javascript error when I type a letter in the textbox and tab off the control. It occurs on this line in the "_onchange" of the FilteredTextboxBehavior script:var text = this.control.get_text();I declared the extender like this:<CC1:FILTEREDTEXTBOXEXTENDER id="extFilters1" runat="server"><CC1:FILTEREDTEXTBOXPROPERTIES targetcontrolid="txtHomePhone" filtertype="Custom, Numbers" validchars=&q...

Can't get away from: "Could not open in Design View. Quote values differently inside a '<% ... "value" ... %>' block."
I keep getting this error message when I try to switch to design view. This is the code that is causing it. OnClick="javascript:void(0);ToggleRowDisplay(this,'row<%# DataBinder.Eval(Container.DataItem, "Equipment_ID") %>');" When I take out this section I can go into design view without a problem. Any ideas?? is the word row has to be there?mess with the best...die like the rest...

When exiting a video playing with .wmv, you click the upper right "x" and you don't get back to the web homepage, you get stuck with a white, empty page. Explorer doesn't do that. It's an irritant f
Name: David Morgan Email: Dave_at_NewsCarsonCity.com Product: Firefox Summary: When exiting a video playing with .wmv, you click the upper right "x" and you don't get back to the web homepage, you get stuck with a white, empty page. Explorer doesn't do that. It's an irritant for those of us who want to use Mozilla, period. Comments: See summary. Browser Details: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ...

Using "New" for "Object reference not set to an instance of an object" error doesn't work...
Hi, I'm trying to build a sql insert statement by reading through each textbox the footer of a DataGrid control. Here's my datagrid code:<asp:DataGrid ID="Datagrid1" runat="server" OnPageIndexChanged="dgPersonnelType_PageChanger" AutoGenerateColumns="False" CellPadding="4" AlternatingItemStyle-BackColor="#FFFFBB" AllowPaging="True" PageSize="20" ShowFooter="True"> <ItemStyle BackColor="WhiteSmoke" Font-Names="verdana" Font-Size="10px" /> <Columns> <asp:TemplateColumn HeaderText="Insert"> <HeaderStyle BackColor="#CCCC99" Font-Bold="true" ...

"Can't locate object method "epath" via package "URI::http""
Greetings, I've been trying to debug why I can't issue a form -> click and finally started debugging it as a standalone script (as opposed to viewing CGI output in a browser, duh) I get the following error msg when I issue the form->click ..... Can't locate object method "epath" via package "URI::http" at /usr/local/lib/perl5/site_perl/5.005/HTTP/Cookies.pm I'm using the same User Agent that I defined earlier in my script that was used to pull several pages (including the form I'm trying to submit) using cookies. My latest scrip...

Describe("DataWindow.Objects") Functionality for Report DataWindow object Doesn't Work
Hello there. I want to change the nested report object(s) attributes. I had used Describe() function to get objects -("DataWindow.Objects"). After removing the tab spaces I was able to get the object name within that DW. By checking the Attributes -(ls_obj + ".Attributes") I came to know by finding "nested_argument" that the current object is (nested) report. Now if I assigned this object to the DDDWChild/Any variable it gives error either at compilation or at run time. If I created a datastore locally & assigned the dataobject of the current ...

meaning of `Can't locate object method "(null)"'
Does `(null)' in the method position of `Can't locate object method "method"' have a known meaning? I'm getting it in an XML::Parser client: $xml && $xml->getChildNodes->getLength == 1 && $xml->getFirstChild->getTagName eq "authenticate-response" && $xml->getFirstChild->getAttribute( "label" ); where $xml is an XML::DOM::Element object. Perl is 5.005_03. XML::Parser is 2.29. ...

Web resources about - can't get serverside dw functions to work: "Object doesn't support this property or method" - sybase.easerver

Resources last updated: 12/18/2015 9:40:50 AM