Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: GetFirstItem DDDW

2 views
Skip to first unread message

Larry Cermak [Team Sybase]

unread,
Sep 30, 2007, 9:35:05 AM9/30/07
to
Do you mean setting a value in the column? That can be done either in the
server component before the HTML is generated or in client-side JS. If you
enable all client-side functionality and set the HTMLObjectName (it is case
sensitive) then you can call SetItem. Assume the name is dwClient.

dwClient.SetItem(1,"columnname","set_this_value");

You could call this function in the onload event in the browser. I think
I've got examples of this on my web site.

--

Larry Cermak [Team Sybase]
Branick Consulting, Inc.
www.branick-inc.com
EAServer & PowerBuilder Consulting & Training
EAServer and PowerBuilder Computer Based Training Courses


"Maurizio" <m...@nsit.it> wrote in message news:46fcbd0c$1@forums-1-dub...
> Hi All,
> I have to set the first item on DDDW on Web Datawindow...Could You help me
> ? Mey it possible in Javascript ?
>
> Thanks
>
> Maurizio


Adam Simmonds [TeamSybase]

unread,
Oct 1, 2007, 7:34:26 PM10/1/07
to
Do this in the server side code.
You would simply set the item value for that column before generating
the html.
a.

Jim Egan

unread,
Oct 1, 2007, 11:04:44 PM10/1/07
to
m...@nsit.it wrote...

> Hi All,
> I have to set the first item on DDDW on Web Datawindow...Could You help
> me ? Mey it possible in Javascript ?

Just checking to make sure I understand what you want. The first item of a DDDW should be
selected when the user views the row in the browser. This would be for a new row. Is that
correct? If I have it right then as Larry and Adam said it would be easiest to do on the
server side. But if you have to do on the browser it is possible to do it with JavaScript,
but it is going to be more than a simple couple of lines of code.
--
Jim Egan [TeamSybase]

Larry Cermak [Team Sybase]

unread,
Oct 4, 2007, 4:44:43 PM10/4/07
to
Jim is totally correct it is MUCH easier to do in the server if possible.
Plus if it's your first jump into doing client-side JS and with the WebDW
then it will take you some time to figure out the correct syntax. I did a
bunch of trial and error when i first started doing this stuff. Yes you can
do some pretty cool things in client-side JS but it's a lot of code.

--

Larry Cermak [Team Sybase]
Branick Consulting, Inc.
www.branick-inc.com
EAServer & PowerBuilder Consulting & Training
EAServer and PowerBuilder Computer Based Training Courses


"Jim Egan" <eganjp...@compuserve.com> wrote in message
news:4701b54c$1@forums-1-dub...

0 new messages