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.

Prevent changing row with tab key

3 posts in DataWindow Last posting was on 2008-05-01 09:06:45.0Z
Gwydion Posted on 2008-04-30 12:05:51.0Z
From: Gwydion <gwydion@oletros.info>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Prevent changing row with tab key
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4818609f@forums-1-dub>
Date: 30 Apr 2008 05:05:51 -0700
X-Trace: forums-1-dub 1209557151 10.22.241.152 (30 Apr 2008 05:05:51 -0700)
X-Original-Trace: 30 Apr 2008 05:05:51 -0700, vip152.sybase.com
Lines: 7
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86752
Article PK: 416011

When I press TAB key on last field of a datawindow it changes the row. I
need to cicle and go to the first field in the same row

How can I make this behavior?

Best regards,
Iñaki


"Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_ Posted on 2008-04-30 14:47:06.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_@_teamsybase.com>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Prevent changing row with tab key
References: <4818609f@forums-1-dub>
In-Reply-To: <4818609f@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4818866a$1@forums-1-dub>
Date: 30 Apr 2008 07:47:06 -0700
X-Trace: forums-1-dub 1209566826 10.22.241.152 (30 Apr 2008 07:47:06 -0700)
X-Original-Trace: 30 Apr 2008 07:47:06 -0700, vip152.sybase.com
Lines: 26
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86755
Article PK: 416014

You'll probably want to start in the RowFocusChanging event. You have
the option of preventing the change based on the return value you specify.

Gwydion wrote:
> When I press TAB key on last field of a datawindow it changes the row. I
> need to cicle and go to the first field in the same row
>
> How can I make this behavior?
>
> Best regards,
> Iñaki

--
Off topic:
Sybase has been reviewing NNTP availability and is looking at
alternative ways to build a user community. As a test-bed /
proof-of-concept, I have personally created a community on Ning
(http://powerbuilder.ning.com). While Ning certainly doesn't offer all
of the features that I'd like to see Sybase eventually implement, I am
trying to foster some community involvement on that site. Several of the
TeamSybase members have joined already and are available to answer
questions there.

Please sign up; give it a try. My hope is that it evolves into more than
just a Q&A database, but it won't get there without your participation.


shashi Posted on 2008-05-01 09:06:45.0Z
From: shashi <gogia7@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Prevent changing row with tab key
Date: Thu, 1 May 2008 02:06:45 -0700 (PDT)
Organization: http://groups.google.com
Lines: 53
Message-ID: <49c37ad8-a0bf-435e-94c7-5f978f94abf0@m1g2000pre.googlegroups.com>
References: <4818609f@forums-1-dub> <4818866a$1@forums-1-dub>
NNTP-Posting-Host: 59.180.30.86
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1209632805 32578 127.0.0.1 (1 May 2008 09:06:45 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 1 May 2008 09:06:45 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m1g2000pre.googlegroups.com; posting-host=59.180.30.86; posting-account=mY9CiAoAAABxoNLAQxxv-hZcQZtLM6pE
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!m1g2000pre.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86757
Article PK: 416015

On Apr 30, 7:47 pm, "Jason 'Bug' Fenter [TeamSybase]"

<NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> You'll probably want to start in the RowFocusChanging event. You have
> the option of preventing the change based on the return value you specify.
>
> Gwydion wrote:
> > When I press TAB key on last field of a datawindow it changes the row. I
> > need to cicle and go to the first field in the same row
>
> > How can I make this behavior?
>
> > Best regards,
> > Iñaki
>
> --
> Off topic:
> Sybase has been reviewing NNTP availability and is looking at
> alternative ways to build a user community. As a test-bed /
> proof-of-concept, I have personally created a community on Ning
> (http://powerbuilder.ning.com). While Ning certainly doesn't offer all
> of the features that I'd like to see Sybase eventually implement, I am
> trying to foster some community involvement on that site. Several of the
> TeamSybase members have joined already and are available to answer
> questions there.
>
> Please sign up; give it a try. My hope is that it evolves into more than
> just a Q&A database, but it won't get there without your participation.

I have using this code since ages. This also deactivates the pagedown
and pageup keys - important if your DataWindow is of the freefrom type
// Create a userevent called 'keypressed' in the same or base
datawindow object
//user event - activated thru pbm_dwnkey
Choose Case Key

Case KeyPageUp!, KeyPageDown!
This.acceptText() //do nothing
Return 1
Case KeyTab!
//if the scrollvalue is changed - return to original
This.SetRedraw(FALSE)
This.Post Function ScrolltoRow(This.GetRow())
This.Post Function SetRedraw(True)
Case KeySpaceBar!, KeyDelete!, KeyBack!, KeyHome!, KeyEnd!, &
KeyLeftArrow!, KeyRightArrow!, Key5!, KeyEnter!,KeyDownArrow!,
KeyUpArrow!

// CASE eLSE
// I used to use these for other functions but now most of that has
been shifted to the editchanged event -
End Choose