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. To do that I have this code in my=20 page:</FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2></FONT> </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> { = </FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2> retVal =3D = dwMine.SetAction (dwMine_action, dwMine_context); </FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2> =20 Response.Write(dwMine_action); // for testing </FONT></DIV> <DIV><FONT color=3D#0000ff><FONT face=3DArial size=3D2> = <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> = }</FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2> Response.Write(=20 dwMine.Generate() );</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>The script is bombing on the = InsertRow(0);=20 call. IE says <STRONG>"object doesn't support this property or=20 method". </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><BODY = onload=3D"if=20 (dwMine.RowCount()=20 =3D=3D0)<BR> {<BR> dwMine.I= nsertRow(0);<BR> }"></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>So what do I have to do to = get it to work=20 serverside? I 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... Can Larry or someone else give me details on how = to get=20 this to work? </FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for any help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Jay Shohet <A=20 href=3D"mailto:ash477@hotmail.com">ash477@hotmail.com</A> =20 </FONT></DIV></BODY></HTML> ------=_NextPart_000_00D7_01BF98D3.2B917E60--
![]() |
0 |
![]() |
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> </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> </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> </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. <<A = href=3D"mailto:ash477@hotmail.com">ash477@hotmail.com</A>>=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. To do that I have this code in my=20 page:</FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2></FONT> </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> { = </FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2> retVal = =3D=20 dwMine.SetAction (dwMine_action, dwMine_context); </FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2> =20 Response.Write(dwMine_action); // for testing </FONT></DIV> <DIV><FONT color=3D#0000ff><FONT face=3DArial size=3D2> = <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> = }</FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2> Response.Write( = dwMine.Generate() );</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>The script is bombing on the = InsertRow(0);=20 call. IE says <STRONG>"object doesn't support this property or=20 method". </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><BODY = onload=3D"if=20 (dwMine.RowCount()=20 = =3D=3D0)<BR> {<BR> dwMine.I= nsertRow(0);<BR> }"></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>So what do I have to do to = get it to=20 work serverside? I 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... Can Larry or someone else give me details = on how=20 to get this to work? </FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for any help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Jay Shohet <A=20 href=3D"mailto:ash477@hotmail.com">ash477@hotmail.com</A> =20 </FONT></DIV></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_000B_01BF98E5.2EEA4120--
![]() |
0 |
![]() |
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. =20 It IS most definately Serverside javascript in my ASP=20 page. In ASP, anything within the <% %> brackets denotes = that it=20 gets executed on the server, and the snippet of code you see below is = within=20 those quotes. </FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Maybe I can ask the ng how to do = the=20 following: after the user hits 'Update' [I'm thinking of = changing=20 the name to Submit], I want to display a single, new record. = Not the=20 one that got updated -- I want just a new blank record. I'm trying = to=20 emulate a typical 'form' on the internet that has a submit button. = After=20 you hit Submit, the form should clear. </FONT></DIV> <DIV> </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> </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. To do that I have this code in = my=20 page:</FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2></FONT> </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> { = </FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2> retVal = =3D=20 dwMine.SetAction (dwMine_action, dwMine_context); </FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2> =20 Response.Write(dwMine_action); // for testing </FONT></DIV> <DIV><FONT color=3D#0000ff><FONT face=3DArial size=3D2> = <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> = }</FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial = size=3D2> Response.Write(=20 dwMine.Generate() );</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>The script is bombing on the = InsertRow(0);=20 call. IE says <STRONG>"object doesn't support this property or = method". </STRONG></FONT><FONT face=3DArial = size=3D2>So what do=20 I have to do to get it to work=20 serverside? I 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... Can Larry or someone else give me = details on=20 how to get this to work? </FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for any help,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Jay Shohet <A=20 href=3D"mailto:ash477@hotmail.com">ash477@hotmail.com</A> =20 </FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_000B_01BF9937.F1946AF0--
![]() |
0 |
![]() |
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 |
![]() |
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 |
![]() |
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 |
![]() |
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 |
![]() |