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.

pbm_enchange

13 posts in DataWindow Last posting was on 2009-02-14 02:04:17.0Z
mykhuzaimi Posted on 2009-02-11 06:50:10.0Z
From: mykhuzaimi <mykhuzaimi@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: pbm_enchange
Date: Tue, 10 Feb 2009 22:50:10 -0800 (PST)
Organization: http://groups.google.com
Lines: 15
Message-ID: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com>
NNTP-Posting-Host: 202.170.57.251
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1234335011 24339 127.0.0.1 (11 Feb 2009 06:50:11 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 11 Feb 2009 06:50:11 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: k36g2000pri.googlegroups.com; posting-host=202.170.57.251; posting-account=Dtr27goAAADhMHeRbeGJEoEcV2yA2t1F
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729),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!k36g2000pri.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88759
Article PK: 418014

smartcard card reader program passing code into sle_1.text='12345' in
powerbuilder program. example:12345

i use pbm_enchange to passing from sle_1 to insertrow into datawindow
dw_1

the problem is pbm_enchange insertrow by capture from sle_1 with per
character. example:
12345
1234
123
12
1

the valid code is 12345.


"Paul Horan[Sybase]" <phoran_remove Posted on 2009-02-11 13:53:45.0Z
From: "Paul Horan[Sybase]" <phoran_remove@remove_sybase.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com>
Subject: Re: pbm_enchange
Lines: 38
Organization: Sybase
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4992d869$1@forums-1-dub>
Date: 11 Feb 2009 05:53:45 -0800
X-Trace: forums-1-dub 1234360425 10.22.241.152 (11 Feb 2009 05:53:45 -0800)
X-Original-Trace: 11 Feb 2009 05:53:45 -0800, vip152.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88766
Article PK: 418019

Let me see if I can figure this out... In the pbm_enchange event, you're
calling dw_1.insertRow() and setting the current text into the inserted row.
Therefore, if the content being scanned is 5 characters long, that results
in 5 inserted rows.

This is a coding exercise for you, not a bug in PB. Here's a quick idea for
you:

pbm_enchange event
If dw_1.rowCount() = 0 then
dw_1.insertRow()
End if

dw_1.setItem( 1, 'yourColumn', sle_1.text )

--
Paul Horan[Sybase]
paulhoran.pbdjmagazine.com

"mykhuzaimi" <mykhuzaimi@gmail.com> wrote in message
news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
> smartcard card reader program passing code into sle_1.text='12345' in
> powerbuilder program. example:12345
>
> i use pbm_enchange to passing from sle_1 to insertrow into datawindow
> dw_1
>
> the problem is pbm_enchange insertrow by capture from sle_1 with per
> character. example:
> 12345
> 1234
> 123
> 12
> 1
>
> the valid code is 12345.


Roland Smith [TeamSybase] Posted on 2009-02-11 17:24:32.0Z
From: "Roland Smith [TeamSybase]" <rsmith_at_trusthss_dot_com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com>
Subject: Re: pbm_enchange
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <499309d0$1@forums-1-dub>
Date: 11 Feb 2009 09:24:32 -0800
X-Trace: forums-1-dub 1234373072 10.22.241.152 (11 Feb 2009 09:24:32 -0800)
X-Original-Trace: 11 Feb 2009 09:24:32 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88769
Article PK: 418022

When typing in a sle, the enchange event is triggered for each character.
The modified event is triggered when you tab out of the sle. The same thing
happens with your reader.

You could try putting your code in the modified event. The modified event
would occur later when you click on a button or in another control.

You could try Paul's suggestion as well. It would be calling SetItem 5 times
but it shouldn't make a noticeable difference in runtime speed.

"mykhuzaimi" <mykhuzaimi@gmail.com> wrote in message
news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
> smartcard card reader program passing code into sle_1.text='12345' in
> powerbuilder program. example:12345
>
> i use pbm_enchange to passing from sle_1 to insertrow into datawindow
> dw_1
>
> the problem is pbm_enchange insertrow by capture from sle_1 with per
> character. example:
> 12345
> 1234
> 123
> 12
> 1
>
> the valid code is 12345.


mykhuzaimi Posted on 2009-02-12 00:42:05.0Z
From: mykhuzaimi <mykhuzaimi@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: pbm_enchange
Date: Wed, 11 Feb 2009 16:42:05 -0800 (PST)
Organization: http://groups.google.com
Lines: 51
Message-ID: <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com>
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com> <499309d0$1@forums-1-dub>
NNTP-Posting-Host: 202.170.57.251
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1234399326 1262 127.0.0.1 (12 Feb 2009 00:42:06 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 12 Feb 2009 00:42:06 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: v5g2000prm.googlegroups.com; posting-host=202.170.57.251; posting-account=Dtr27goAAADhMHeRbeGJEoEcV2yA2t1F
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729),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!newsfeed.news2me.com!news.glorb.com!postnews.google.com!v5g2000prm.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88774
Article PK: 418027

On Feb 12, 1:24 am, "Roland Smith [TeamSybase]"

<rsmith_at_trusthss_dot_com> wrote:
> When typing in a sle, the enchange event is triggered for each character.
> The modified event is triggered when you tab out of the sle. The same thing
> happens with your reader.
>
> You could try putting your code in the modified event. The modified event
> would occur later when you click on a button or in another control.
>
> You could try Paul's suggestion as well. It would be calling SetItem 5 times
> but it shouldn't make a noticeable difference in runtime speed.
>
> "mykhuzaimi" <mykhuza...@gmail.com> wrote in message
>
> news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
>
> > smartcard card reader program passing code into sle_1.text='12345' in
> > powerbuilder program. example:12345
>
> > i use pbm_enchange to passing from sle_1 to insertrow into datawindow
> > dw_1
>
> > the problem is pbm_enchange insertrow by capture from sle_1 with per
> > character. example:
> > 12345
> > 1234
> > 123
> > 12
> > 1
>
> > the valid code is 12345.

Paul Horan: your code work for me tq. in pbm_enchange event the sle_1
not clear '' after setitem.

i have 2 alternative, pbm_enchange and pbm_keydown. the keydown
function work: this is my keydown:-

if keydown(keyenter!) then
If dw_1.rowCount() = 0 then
dw_1.insertRow(1)
End if

dw_1.setItem( 1, 'column1', sle_1.text )
sle_1.text=''
end if

for pbm_enchange the sle_1 not clearing. possible pbm_enchange have if
statement before run event like if keydown(keyenter!) then


"Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_ Posted on 2009-02-12 15:14:32.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_@_teamsybase.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: pbm_enchange
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com> <499309d0$1@forums-1-dub> <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com>
In-Reply-To: <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49943cd8$1@forums-1-dub>
Date: 12 Feb 2009 07:14:32 -0800
X-Trace: forums-1-dub 1234451672 10.22.241.152 (12 Feb 2009 07:14:32 -0800)
X-Original-Trace: 12 Feb 2009 07:14:32 -0800, vip152.sybase.com
Lines: 56
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88780
Article PK: 418032

The pbm_enchange event fires *before* the display is updated. So even
though you set sle_1.text='', it gets updated after that with the
previous contents.

The more I follow this thread, the more I think you should be using the
modified event. Have you explored that option yet?

mykhuzaimi wrote:
> On Feb 12, 1:24 am, "Roland Smith [TeamSybase]"
> <rsmith_at_trusthss_dot_com> wrote:
>> When typing in a sle, the enchange event is triggered for each character.
>> The modified event is triggered when you tab out of the sle. The same thing
>> happens with your reader.
>>
>> You could try putting your code in the modified event. The modified event
>> would occur later when you click on a button or in another control.
>>
>> You could try Paul's suggestion as well. It would be calling SetItem 5 times
>> but it shouldn't make a noticeable difference in runtime speed.
>>
>> "mykhuzaimi" <mykhuza...@gmail.com> wrote in message
>>
>> news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
>>
>>> smartcard card reader program passing code into sle_1.text='12345' in
>>> powerbuilder program. example:12345
>>> i use pbm_enchange to passing from sle_1 to insertrow into datawindow
>>> dw_1
>>> the problem is pbm_enchange insertrow by capture from sle_1 with per
>>> character. example:
>>> 12345
>>> 1234
>>> 123
>>> 12
>>> 1
>>> the valid code is 12345.
>
> Paul Horan: your code work for me tq. in pbm_enchange event the sle_1
> not clear '' after setitem.
>
> i have 2 alternative, pbm_enchange and pbm_keydown. the keydown
> function work: this is my keydown:-
>
> if keydown(keyenter!) then
> If dw_1.rowCount() = 0 then
> dw_1.insertRow(1)
> End if
>
> dw_1.setItem( 1, 'column1', sle_1.text )
> sle_1.text=''
> end if
>
> for pbm_enchange the sle_1 not clearing. possible pbm_enchange have if
> statement before run event like if keydown(keyenter!) then


mykhuzaimi Posted on 2009-02-12 16:03:58.0Z
From: mykhuzaimi <mykhuzaimi@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: pbm_enchange
Date: Thu, 12 Feb 2009 08:03:58 -0800 (PST)
Organization: http://groups.google.com
Lines: 66
Message-ID: <be92b4ea-02d3-426c-8608-114bd1dcbc90@p2g2000prf.googlegroups.com>
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com> <499309d0$1@forums-1-dub> <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com> <49943cd8$1@forums-1-dub>
NNTP-Posting-Host: 60.53.190.200
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1234454638 23454 127.0.0.1 (12 Feb 2009 16:03:58 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 12 Feb 2009 16:03:58 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: p2g2000prf.googlegroups.com; posting-host=60.53.190.200; posting-account=Dtr27goAAADhMHeRbeGJEoEcV2yA2t1F
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6,gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!novia!novia!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!p2g2000prf.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88782
Article PK: 418035

On Feb 12, 11:14 pm, "Jason 'Bug' Fenter [TeamSybase]"

<NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> The pbm_enchange event fires *before* the display is updated. So even
> though you set sle_1.text='', it gets updated after that with the
> previous contents.
>
> The more I follow this thread, the more I think you should be using the
> modified event. Have you explored that option yet?
>
> mykhuzaimi wrote:
> > On Feb 12, 1:24 am, "Roland Smith [TeamSybase]"
> > <rsmith_at_trusthss_dot_com> wrote:
> >> When typing in a sle, the enchange event is triggered for each character.
> >> The modified event is triggered when you tab out of the sle. The same thing
> >> happens with your reader.
>
> >> You could try putting your code in the modified event. The modified event
> >> would occur later when you click on a button or in another control.
>
> >> You could try Paul's suggestion as well. It would be calling SetItem 5 times
> >> but it shouldn't make a noticeable difference in runtime speed.
>
> >> "mykhuzaimi" <mykhuza...@gmail.com> wrote in message
>
> >>news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
>
> >>> smartcard card reader program passing code into sle_1.text='12345' in
> >>> powerbuilder program. example:12345
> >>> i use pbm_enchange to passing from sle_1 to insertrow into datawindow
> >>> dw_1
> >>> the problem is pbm_enchange insertrow by capture from sle_1 with per
> >>> character. example:
> >>> 12345
> >>> 1234
> >>> 123
> >>> 12
> >>> 1
> >>> the valid code is 12345.
>
> > Paul Horan: your code work for me tq. in pbm_enchange event the sle_1
> > not clear '' after setitem.
>
> > i have 2 alternative, pbm_enchange and pbm_keydown. the keydown
> > function work: this is my keydown:-
>
> > if keydown(keyenter!) then
> >  If dw_1.rowCount() = 0 then
> >    dw_1.insertRow(1)
> > End if
>
> > dw_1.setItem( 1, 'column1', sle_1.text )
> > sle_1.text=''
> > end if
>
> > for pbm_enchange the sle_1 not clearing. possible pbm_enchange have if
> > statement before run event like if keydown(keyenter!) then

Jason: the situation is when smartcard reader passing 12345 then it
appear at sle_1.text then i want sle_1 passing to dw_1 or dw_1 get
from sle_1 but sle_1 must clear '' after passing to dw_1


"Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_ Posted on 2009-02-12 17:34:52.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_@_teamsybase.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: pbm_enchange
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com> <499309d0$1@forums-1-dub> <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com> <49943cd8$1@forums-1-dub> <be92b4ea-02d3-426c-8608-114bd1dcbc90@p2g2000prf.googlegroups.com>
In-Reply-To: <be92b4ea-02d3-426c-8608-114bd1dcbc90@p2g2000prf.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49945dbc$1@forums-1-dub>
Date: 12 Feb 2009 09:34:52 -0800
X-Trace: forums-1-dub 1234460092 10.22.241.152 (12 Feb 2009 09:34:52 -0800)
X-Original-Trace: 12 Feb 2009 09:34:52 -0800, vip152.sybase.com
Lines: 60
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88784
Article PK: 418036

Again, it looks like you want the modified event. The smartcard reader
should be passing '12345' to your sle, triggering pbm_enchange after
each character. it should also be triggering the "modified" event
*after* entering all of the text. In the "modified" event, you would
manipulate the datawindow and then clear the sle. This was Roland's
suggestion and I don't see that you tried it.

mykhuzaimi wrote:
> On Feb 12, 11:14 pm, "Jason 'Bug' Fenter [TeamSybase]"
> <NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
>> The pbm_enchange event fires *before* the display is updated. So even
>> though you set sle_1.text='', it gets updated after that with the
>> previous contents.
>>
>> The more I follow this thread, the more I think you should be using the
>> modified event. Have you explored that option yet?
>>
>> mykhuzaimi wrote:
>>> On Feb 12, 1:24 am, "Roland Smith [TeamSybase]"
>>> <rsmith_at_trusthss_dot_com> wrote:
>>>> When typing in a sle, the enchange event is triggered for each character.
>>>> The modified event is triggered when you tab out of the sle. The same thing
>>>> happens with your reader.
>>>> You could try putting your code in the modified event. The modified event
>>>> would occur later when you click on a button or in another control.
>>>> You could try Paul's suggestion as well. It would be calling SetItem 5 times
>>>> but it shouldn't make a noticeable difference in runtime speed.
>>>> "mykhuzaimi" <mykhuza...@gmail.com> wrote in message
>>>> news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
>>>>> smartcard card reader program passing code into sle_1.text='12345' in
>>>>> powerbuilder program. example:12345
>>>>> i use pbm_enchange to passing from sle_1 to insertrow into datawindow
>>>>> dw_1
>>>>> the problem is pbm_enchange insertrow by capture from sle_1 with per
>>>>> character. example:
>>>>> 12345
>>>>> 1234
>>>>> 123
>>>>> 12
>>>>> 1
>>>>> the valid code is 12345.
>>> Paul Horan: your code work for me tq. in pbm_enchange event the sle_1
>>> not clear '' after setitem.
>>> i have 2 alternative, pbm_enchange and pbm_keydown. the keydown
>>> function work: this is my keydown:-
>>> if keydown(keyenter!) then
>>> If dw_1.rowCount() = 0 then
>>> dw_1.insertRow(1)
>>> End if
>>> dw_1.setItem( 1, 'column1', sle_1.text )
>>> sle_1.text=''
>>> end if
>>> for pbm_enchange the sle_1 not clearing. possible pbm_enchange have if
>>> statement before run event like if keydown(keyenter!) then
>
> Jason: the situation is when smartcard reader passing 12345 then it
> appear at sle_1.text then i want sle_1 passing to dw_1 or dw_1 get
> from sle_1 but sle_1 must clear '' after passing to dw_1


Jeremy Lakeman Posted on 2009-02-12 23:45:09.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: pbm_enchange
Date: Thu, 12 Feb 2009 15:45:09 -0800 (PST)
Organization: http://groups.google.com
Lines: 74
Message-ID: <fbafa6c3-8687-4d83-a4ae-9ee406c55c99@a12g2000yqm.googlegroups.com>
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com> <499309d0$1@forums-1-dub> <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com> <49943cd8$1@forums-1-dub> <be92b4ea-02d3-426c-8608-114bd1dcbc90@p2g2000prf.googlegroups.com> <49945dbc$1@forums-1-dub>
NNTP-Posting-Host: 203.122.242.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1234482309 7770 127.0.0.1 (12 Feb 2009 23:45:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 12 Feb 2009 23:45:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: a12g2000yqm.googlegroups.com; posting-host=203.122.242.105; posting-account=euaBtgoAAAC_vDxfsxmpMKlBxHaHpmRS
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 fly.essential.com.au:3128 (squid/2.5.STABLE8), 1.0 asp.essential.intranet:3128 (squid/2.5.STABLE8)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!novia!novia!news-out.readnews.com!transit3.readnews.com!postnews.google.com!a12g2000yqm.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88786
Article PK: 418038

On Feb 13, 3:34 am, "Jason 'Bug' Fenter [TeamSybase]"

<NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> Again, it looks like you want the modified event. The smartcard reader
> should be passing '12345' to your sle, triggering pbm_enchange after
> each character. it should also be triggering the "modified" event
> *after* entering all of the text. In the "modified" event, you would
> manipulate the datawindow and then clear the sle. This was Roland's
> suggestion and I don't see that you tried it.
>
> mykhuzaimi wrote:
> > On Feb 12, 11:14 pm, "Jason 'Bug' Fenter [TeamSybase]"
> > <NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> >> The pbm_enchange event fires *before* the display is updated. So even
> >> though you set sle_1.text='', it gets updated after that with the
> >> previous contents.
>
> >> The more I follow this thread, the more I think you should be using the
> >> modified event. Have you explored that option yet?
>
> >> mykhuzaimi wrote:
> >>> On Feb 12, 1:24 am, "Roland Smith [TeamSybase]"
> >>> <rsmith_at_trusthss_dot_com> wrote:
> >>>> When typing in a sle, the enchange event is triggered for each character.
> >>>> The modified event is triggered when you tab out of the sle. The same thing
> >>>> happens with your reader.
> >>>> You could try putting your code in the modified event. The modified event
> >>>> would occur later when you click on a button or in another control.
> >>>> You could try Paul's suggestion as well. It would be calling SetItem 5 times
> >>>> but it shouldn't make a noticeable difference in runtime speed.
> >>>> "mykhuzaimi" <mykhuza...@gmail.com> wrote in message
> >>>>news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
> >>>>> smartcard card reader program passing code into sle_1.text='12345' in
> >>>>> powerbuilder program. example:12345
> >>>>> i use pbm_enchange to passing from sle_1 to insertrow into datawindow
> >>>>> dw_1
> >>>>> the problem is pbm_enchange insertrow by capture from sle_1 with per
> >>>>> character. example:
> >>>>> 12345
> >>>>> 1234
> >>>>> 123
> >>>>> 12
> >>>>> 1
> >>>>> the valid code is 12345.
> >>> Paul Horan: your code work for me tq. in pbm_enchange event the sle_1
> >>> not clear '' after setitem.
> >>> i have 2 alternative, pbm_enchange and pbm_keydown. the keydown
> >>> function work: this is my keydown:-
> >>> if keydown(keyenter!) then
> >>>  If dw_1.rowCount() = 0 then
> >>>    dw_1.insertRow(1)
> >>> End if
> >>> dw_1.setItem( 1, 'column1', sle_1.text )
> >>> sle_1.text=''
> >>> end if
> >>> for pbm_enchange the sle_1 not clearing. possible pbm_enchange have if
> >>> statement before run event like if keydown(keyenter!) then
>
> > Jason: the situation is when smartcard reader passing 12345 then it
> > appear at sle_1.text then i want sle_1 passing to dw_1 or dw_1 get
> > from sle_1 but sle_1 must clear '' after passing to dw_1

Why do you need an sle *and* a datawindow control?
And even if you do, why not put the sle in front of the datawindow
control so the user can't visually tell the difference between them.


mykhuzaimi Posted on 2009-02-13 04:52:10.0Z
From: mykhuzaimi <mykhuzaimi@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: pbm_enchange
Date: Thu, 12 Feb 2009 20:52:10 -0800 (PST)
Organization: http://groups.google.com
Lines: 84
Message-ID: <32c95a69-2313-4892-97a3-0f4ed7720103@w35g2000yqm.googlegroups.com>
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com> <499309d0$1@forums-1-dub> <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com> <49943cd8$1@forums-1-dub> <be92b4ea-02d3-426c-8608-114bd1dcbc90@p2g2000prf.googlegroups.com> <49945dbc$1@forums-1-dub> <fbafa6c3-8687-4d83-a4ae-9ee406c55c99@a12g2000yqm.googlegroups.com>
NNTP-Posting-Host: 202.170.57.251
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1234500730 953 127.0.0.1 (13 Feb 2009 04:52:10 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 13 Feb 2009 04:52:10 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: w35g2000yqm.googlegroups.com; posting-host=202.170.57.251; posting-account=Dtr27goAAADhMHeRbeGJEoEcV2yA2t1F
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!w35g2000yqm.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88789
Article PK: 418052


On Feb 13, 7:45 am, Jeremy Lakeman <jeremy.lake...@gmail.com> wrote:
> On Feb 13, 3:34 am, "Jason 'Bug' Fenter [TeamSybase]"
>
>
>
> <NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> > Again, it looks like you want the modified event. The smartcard reader
> > should be passing '12345' to your sle, triggering pbm_enchange after
> > each character. it should also be triggering the "modified" event
> > *after* entering all of the text. In the "modified" event, you would
> > manipulate the datawindow and then clear the sle. This was Roland's
> > suggestion and I don't see that you tried it.
>
> > mykhuzaimi wrote:
> > > On Feb 12, 11:14 pm, "Jason 'Bug' Fenter [TeamSybase]"
> > > <NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> > >> The pbm_enchange event fires *before* the display is updated. So even
> > >> though you set sle_1.text='', it gets updated after that with the
> > >> previous contents.
>
> > >> The more I follow this thread, the more I think you should be using the
> > >> modified event. Have you explored that option yet?
>
> > >> mykhuzaimi wrote:
> > >>> On Feb 12, 1:24 am, "Roland Smith [TeamSybase]"
> > >>> <rsmith_at_trusthss_dot_com> wrote:
> > >>>> When typing in a sle, the enchange event is triggered for each character.
> > >>>> The modified event is triggered when you tab out of the sle. The same thing
> > >>>> happens with your reader.
> > >>>> You could try putting your code in the modified event. The modified event
> > >>>> would occur later when you click on a button or in another control.
> > >>>> You could try Paul's suggestion as well. It would be calling SetItem 5 times
> > >>>> but it shouldn't make a noticeable difference in runtime speed.
> > >>>> "mykhuzaimi" <mykhuza...@gmail.com> wrote in message
> > >>>>news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
> > >>>>> smartcard card reader program passing code into sle_1.text='12345' in
> > >>>>> powerbuilder program. example:12345
> > >>>>> i use pbm_enchange to passing from sle_1 to insertrow into datawindow
> > >>>>> dw_1
> > >>>>> the problem is pbm_enchange insertrow by capture from sle_1 with per
> > >>>>> character. example:
> > >>>>> 12345
> > >>>>> 1234
> > >>>>> 123
> > >>>>> 12
> > >>>>> 1
> > >>>>> the valid code is 12345.
> > >>> Paul Horan: your code work for me tq. in pbm_enchange event the sle_1
> > >>> not clear '' after setitem.
> > >>> i have 2 alternative, pbm_enchange and pbm_keydown. the keydown
> > >>> function work: this is my keydown:-
> > >>> if keydown(keyenter!) then
> > >>>  If dw_1.rowCount() = 0 then
> > >>>    dw_1.insertRow(1)
> > >>> End if
> > >>> dw_1.setItem( 1, 'column1', sle_1.text )
> > >>> sle_1.text=''
> > >>> end if
> > >>> for pbm_enchange the sle_1 not clearing. possible pbm_enchange have if
> > >>> statement before run event like if keydown(keyenter!) then
>
> > > Jason: the situation is when smartcard reader passing 12345 then it
> > > appear at sle_1.text then i want sle_1 passing to dw_1 or dw_1 get
> > > from sle_1 but sle_1 must clear '' after passing to dw_1
>
> Why do you need an sle *and* a datawindow control?
> And even if you do, why not put the sle in front of the datawindow
> control so the user can't visually tell the difference between them.

Jeremy: what do you mean --> put the sle in front of the datawindow
control. <-- it's mean Bring sle_1 to Front dw_1


mykhuzaimi Posted on 2009-02-13 02:35:11.0Z
From: mykhuzaimi <mykhuzaimi@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: pbm_enchange
Date: Thu, 12 Feb 2009 18:35:11 -0800 (PST)
Organization: http://groups.google.com
Lines: 74
Message-ID: <39553c75-555e-4b8b-a354-58541ea20071@m40g2000yqh.googlegroups.com>
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com> <499309d0$1@forums-1-dub> <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com> <49943cd8$1@forums-1-dub> <be92b4ea-02d3-426c-8608-114bd1dcbc90@p2g2000prf.googlegroups.com> <49945dbc$1@forums-1-dub>
NNTP-Posting-Host: 202.170.57.251
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1234492511 7509 127.0.0.1 (13 Feb 2009 02:35:11 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 13 Feb 2009 02:35:11 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m40g2000yqh.googlegroups.com; posting-host=202.170.57.251; posting-account=Dtr27goAAADhMHeRbeGJEoEcV2yA2t1F
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729),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!m40g2000yqh.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88787
Article PK: 418040

On Feb 13, 1:34 am, "Jason 'Bug' Fenter [TeamSybase]"

<NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> Again, it looks like you want the modified event. The smartcard reader
> should be passing '12345' to your sle, triggering pbm_enchange after
> each character. it should also be triggering the "modified" event
> *after* entering all of the text. In the "modified" event, you would
> manipulate the datawindow and then clear the sle. This was Roland's
> suggestion and I don't see that you tried it.
>
> mykhuzaimi wrote:
> > On Feb 12, 11:14 pm, "Jason 'Bug' Fenter [TeamSybase]"
> > <NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> >> The pbm_enchange event fires *before* the display is updated. So even
> >> though you set sle_1.text='', it gets updated after that with the
> >> previous contents.
>
> >> The more I follow this thread, the more I think you should be using the
> >> modified event. Have you explored that option yet?
>
> >> mykhuzaimi wrote:
> >>> On Feb 12, 1:24 am, "Roland Smith [TeamSybase]"
> >>> <rsmith_at_trusthss_dot_com> wrote:
> >>>> When typing in a sle, the enchange event is triggered for each character.
> >>>> The modified event is triggered when you tab out of the sle. The same thing
> >>>> happens with your reader.
> >>>> You could try putting your code in the modified event. The modified event
> >>>> would occur later when you click on a button or in another control.
> >>>> You could try Paul's suggestion as well. It would be calling SetItem 5 times
> >>>> but it shouldn't make a noticeable difference in runtime speed.
> >>>> "mykhuzaimi" <mykhuza...@gmail.com> wrote in message
> >>>>news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
> >>>>> smartcard card reader program passing code into sle_1.text='12345' in
> >>>>> powerbuilder program. example:12345
> >>>>> i use pbm_enchange to passing from sle_1 to insertrow into datawindow
> >>>>> dw_1
> >>>>> the problem is pbm_enchange insertrow by capture from sle_1 with per
> >>>>> character. example:
> >>>>> 12345
> >>>>> 1234
> >>>>> 123
> >>>>> 12
> >>>>> 1
> >>>>> the valid code is 12345.
> >>> Paul Horan: your code work for me tq. in pbm_enchange event the sle_1
> >>> not clear '' after setitem.
> >>> i have 2 alternative, pbm_enchange and pbm_keydown. the keydown
> >>> function work: this is my keydown:-
> >>> if keydown(keyenter!) then
> >>>  If dw_1.rowCount() = 0 then
> >>>    dw_1.insertRow(1)
> >>> End if
> >>> dw_1.setItem( 1, 'column1', sle_1.text )
> >>> sle_1.text=''
> >>> end if
> >>> for pbm_enchange the sle_1 not clearing. possible pbm_enchange have if
> >>> statement before run event like if keydown(keyenter!) then
>
> > Jason: the situation is when smartcard reader passing 12345 then it
> > appear at sle_1.text then i want sle_1 passing to dw_1 or dw_1 get
> > from sle_1 but sle_1 must clear '' after passing to dw_1

that means i must have 2 event (modified and enchange) ?
i dont want to use enter or doing enter, i want its passing automatic
to dw_1


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-02-13 04:12:44.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com> <499309d0$1@forums-1-dub> <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com> <49943cd8$1@forums-1-dub> <be92b4ea-02d3-426c-8608-114bd1dcbc90@p2g2000prf.googlegroups.com> <49945dbc$1@forums-1-dub> <39553c75-555e-4b8b-a354-58541ea20071@m40g2000yqh.googlegroups.com>
Subject: Re: pbm_enchange
Lines: 85
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4994f33c@forums-1-dub>
Date: 12 Feb 2009 20:12:44 -0800
X-Trace: forums-1-dub 1234498364 10.22.241.152 (12 Feb 2009 20:12:44 -0800)
X-Original-Trace: 12 Feb 2009 20:12:44 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88788
Article PK: 418049

So how do you know when the user is done typing? pbm_enchange fires with
each keystroke, but which one was the last?
Modified fires when the user presses enter or tabs out or clicks somewhere
elese, so you know you have the whole string.
If you can recognize a complete stringin some other way, like it = '12345'
or ends with a # you could use pbm_enchange. Otherwise the user will have to
tell you when to copy the string and clear the text. The only other idea
that comes to mind is to use a timer - if the user types something and waits
n seconds, accept it as final. That's likely to annoy users when they either
have to wait or they pause for a moment and get an unwanted entry.

"mykhuzaimi" <mykhuzaimi@gmail.com> wrote in message
news:39553c75-555e-4b8b-a354-58541ea20071@m40g2000yqh.googlegroups.com...
On Feb 13, 1:34 am, "Jason 'Bug' Fenter [TeamSybase]"

<NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> Again, it looks like you want the modified event. The smartcard reader
> should be passing '12345' to your sle, triggering pbm_enchange after
> each character. it should also be triggering the "modified" event
> *after* entering all of the text. In the "modified" event, you would
> manipulate the datawindow and then clear the sle. This was Roland's
> suggestion and I don't see that you tried it.
>
> mykhuzaimi wrote:
> > On Feb 12, 11:14 pm, "Jason 'Bug' Fenter [TeamSybase]"
> > <NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> >> The pbm_enchange event fires *before* the display is updated. So even
> >> though you set sle_1.text='', it gets updated after that with the
> >> previous contents.
>
> >> The more I follow this thread, the more I think you should be using the
> >> modified event. Have you explored that option yet?
>
> >> mykhuzaimi wrote:
> >>> On Feb 12, 1:24 am, "Roland Smith [TeamSybase]"
> >>> <rsmith_at_trusthss_dot_com> wrote:
> >>>> When typing in a sle, the enchange event is triggered for each
> >>>> character.
> >>>> The modified event is triggered when you tab out of the sle. The same
> >>>> thing
> >>>> happens with your reader.
> >>>> You could try putting your code in the modified event. The modified
> >>>> event
> >>>> would occur later when you click on a button or in another control.
> >>>> You could try Paul's suggestion as well. It would be calling SetItem
> >>>> 5 times
> >>>> but it shouldn't make a noticeable difference in runtime speed.
> >>>> "mykhuzaimi" <mykhuza...@gmail.com> wrote in message
> >>>>news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
> >>>>> smartcard card reader program passing code into sle_1.text='12345'
> >>>>> in
> >>>>> powerbuilder program. example:12345
> >>>>> i use pbm_enchange to passing from sle_1 to insertrow into
> >>>>> datawindow
> >>>>> dw_1
> >>>>> the problem is pbm_enchange insertrow by capture from sle_1 with per
> >>>>> character. example:
> >>>>> 12345
> >>>>> 1234
> >>>>> 123
> >>>>> 12
> >>>>> 1
> >>>>> the valid code is 12345.
> >>> Paul Horan: your code work for me tq. in pbm_enchange event the sle_1
> >>> not clear '' after setitem.
> >>> i have 2 alternative, pbm_enchange and pbm_keydown. the keydown
> >>> function work: this is my keydown:-
> >>> if keydown(keyenter!) then
> >>> If dw_1.rowCount() = 0 then
> >>> dw_1.insertRow(1)
> >>> End if
> >>> dw_1.setItem( 1, 'column1', sle_1.text )
> >>> sle_1.text=''
> >>> end if
> >>> for pbm_enchange the sle_1 not clearing. possible pbm_enchange have if
> >>> statement before run event like if keydown(keyenter!) then
>
> > Jason: the situation is when smartcard reader passing 12345 then it
> > appear at sle_1.text then i want sle_1 passing to dw_1 or dw_1 get
> > from sle_1 but sle_1 must clear '' after passing to dw_1

that means i must have 2 event (modified and enchange) ?
i dont want to use enter or doing enter, i want its passing automatic
to dw_1


"Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_ Posted on 2009-02-13 14:29:59.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_@_teamsybase.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: pbm_enchange
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com> <499309d0$1@forums-1-dub> <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com> <49943cd8$1@forums-1-dub> <be92b4ea-02d3-426c-8608-114bd1dcbc90@p2g2000prf.googlegroups.com> <49945dbc$1@forums-1-dub> <39553c75-555e-4b8b-a354-58541ea20071@m40g2000yqh.googlegroups.com>
In-Reply-To: <39553c75-555e-4b8b-a354-58541ea20071@m40g2000yqh.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <499583e7$1@forums-1-dub>
Date: 13 Feb 2009 06:29:59 -0800
X-Trace: forums-1-dub 1234535399 10.22.241.152 (13 Feb 2009 06:29:59 -0800)
X-Original-Trace: 13 Feb 2009 06:29:59 -0800, vip152.sybase.com
Lines: 68
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88800
Article PK: 418051

You only need one event. If you use the modified event, then you don't
need the pbm_enchange event. (Assuming the modified event works for your
needs...)

mykhuzaimi wrote:
> On Feb 13, 1:34 am, "Jason 'Bug' Fenter [TeamSybase]"
> <NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
>> Again, it looks like you want the modified event. The smartcard reader
>> should be passing '12345' to your sle, triggering pbm_enchange after
>> each character. it should also be triggering the "modified" event
>> *after* entering all of the text. In the "modified" event, you would
>> manipulate the datawindow and then clear the sle. This was Roland's
>> suggestion and I don't see that you tried it.
>>
>> mykhuzaimi wrote:
>>> On Feb 12, 11:14 pm, "Jason 'Bug' Fenter [TeamSybase]"
>>> <NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
>>>> The pbm_enchange event fires *before* the display is updated. So even
>>>> though you set sle_1.text='', it gets updated after that with the
>>>> previous contents.
>>>> The more I follow this thread, the more I think you should be using the
>>>> modified event. Have you explored that option yet?
>>>> mykhuzaimi wrote:
>>>>> On Feb 12, 1:24 am, "Roland Smith [TeamSybase]"
>>>>> <rsmith_at_trusthss_dot_com> wrote:
>>>>>> When typing in a sle, the enchange event is triggered for each character.
>>>>>> The modified event is triggered when you tab out of the sle. The same thing
>>>>>> happens with your reader.
>>>>>> You could try putting your code in the modified event. The modified event
>>>>>> would occur later when you click on a button or in another control.
>>>>>> You could try Paul's suggestion as well. It would be calling SetItem 5 times
>>>>>> but it shouldn't make a noticeable difference in runtime speed.
>>>>>> "mykhuzaimi" <mykhuza...@gmail.com> wrote in message
>>>>>> news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
>>>>>>> smartcard card reader program passing code into sle_1.text='12345' in
>>>>>>> powerbuilder program. example:12345
>>>>>>> i use pbm_enchange to passing from sle_1 to insertrow into datawindow
>>>>>>> dw_1
>>>>>>> the problem is pbm_enchange insertrow by capture from sle_1 with per
>>>>>>> character. example:
>>>>>>> 12345
>>>>>>> 1234
>>>>>>> 123
>>>>>>> 12
>>>>>>> 1
>>>>>>> the valid code is 12345.
>>>>> Paul Horan: your code work for me tq. in pbm_enchange event the sle_1
>>>>> not clear '' after setitem.
>>>>> i have 2 alternative, pbm_enchange and pbm_keydown. the keydown
>>>>> function work: this is my keydown:-
>>>>> if keydown(keyenter!) then
>>>>> If dw_1.rowCount() = 0 then
>>>>> dw_1.insertRow(1)
>>>>> End if
>>>>> dw_1.setItem( 1, 'column1', sle_1.text )
>>>>> sle_1.text=''
>>>>> end if
>>>>> for pbm_enchange the sle_1 not clearing. possible pbm_enchange have if
>>>>> statement before run event like if keydown(keyenter!) then
>>> Jason: the situation is when smartcard reader passing 12345 then it
>>> appear at sle_1.text then i want sle_1 passing to dw_1 or dw_1 get
>>> from sle_1 but sle_1 must clear '' after passing to dw_1
>
> that means i must have 2 event (modified and enchange) ?
> i dont want to use enter or doing enter, i want its passing automatic
> to dw_1


mykhuzaimi Posted on 2009-02-14 02:04:17.0Z
From: mykhuzaimi <mykhuzaimi@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: pbm_enchange
Date: Fri, 13 Feb 2009 18:04:17 -0800 (PST)
Organization: http://groups.google.com
Lines: 85
Message-ID: <b47ba214-c662-4eae-91d5-9682625aa333@i20g2000prf.googlegroups.com>
References: <27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com> <499309d0$1@forums-1-dub> <3da0135a-5f46-443b-9c5c-9aa75fb8a8aa@v5g2000prm.googlegroups.com> <49943cd8$1@forums-1-dub> <be92b4ea-02d3-426c-8608-114bd1dcbc90@p2g2000prf.googlegroups.com> <49945dbc$1@forums-1-dub> <39553c75-555e-4b8b-a354-58541ea20071@m40g2000yqh.googlegroups.com> <499583e7$1@forums-1-dub>
NNTP-Posting-Host: 60.53.205.46
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1234577057 18340 127.0.0.1 (14 Feb 2009 02:04:17 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 14 Feb 2009 02:04:17 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i20g2000prf.googlegroups.com; posting-host=60.53.205.46; posting-account=Dtr27goAAADhMHeRbeGJEoEcV2yA2t1F
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6,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!i20g2000prf.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88805
Article PK: 418058

On Feb 13, 10:29 pm, "Jason 'Bug' Fenter [TeamSybase]"

<NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> You only need one event. If you use the modified event, then you don't
> need the pbm_enchange event. (Assuming the modified event works for your
> needs...)
>
> mykhuzaimi wrote:
> > On Feb 13, 1:34 am, "Jason 'Bug' Fenter [TeamSybase]"
> > <NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> >> Again, it looks like you want the modified event. The smartcard reader
> >> should be passing '12345' to your sle, triggering pbm_enchange after
> >> each character. it should also be triggering the "modified" event
> >> *after* entering all of the text. In the "modified" event, you would
> >> manipulate the datawindow and then clear the sle. This was Roland's
> >> suggestion and I don't see that you tried it.
>
> >> mykhuzaimi wrote:
> >>> On Feb 12, 11:14 pm, "Jason 'Bug' Fenter [TeamSybase]"
> >>> <NO_SPAMMING_jason.fenter_@_teamsybase.com> wrote:
> >>>> The pbm_enchange event fires *before* the display is updated. So even
> >>>> though you set sle_1.text='', it gets updated after that with the
> >>>> previous contents.
> >>>> The more I follow this thread, the more I think you should be using the
> >>>> modified event. Have you explored that option yet?
> >>>> mykhuzaimi wrote:
> >>>>> On Feb 12, 1:24 am, "Roland Smith [TeamSybase]"
> >>>>> <rsmith_at_trusthss_dot_com> wrote:
> >>>>>> When typing in a sle, the enchange event is triggered for each character.
> >>>>>> The modified event is triggered when you tab out of the sle. The same thing
> >>>>>> happens with your reader.
> >>>>>> You could try putting your code in the modified event. The modified event
> >>>>>> would occur later when you click on a button or in another control.
> >>>>>> You could try Paul's suggestion as well. It would be calling SetItem 5 times
> >>>>>> but it shouldn't make a noticeable difference in runtime speed.
> >>>>>> "mykhuzaimi" <mykhuza...@gmail.com> wrote in message
> >>>>>>news:27d91c80-dfa0-4564-b55a-ba3fea9ec0f5@k36g2000pri.googlegroups.com...
> >>>>>>> smartcard card reader program passing code into sle_1.text='12345' in
> >>>>>>> powerbuilder program. example:12345
> >>>>>>> i use pbm_enchange to passing from sle_1 to insertrow into datawindow
> >>>>>>> dw_1
> >>>>>>> the problem is pbm_enchange insertrow by capture from sle_1 with per
> >>>>>>> character. example:
> >>>>>>> 12345
> >>>>>>> 1234
> >>>>>>> 123
> >>>>>>> 12
> >>>>>>> 1
> >>>>>>> the valid code is 12345.
> >>>>> Paul Horan: your code work for me tq. in pbm_enchange event the sle_1
> >>>>> not clear '' after setitem.
> >>>>> i have 2 alternative, pbm_enchange and pbm_keydown. the keydown
> >>>>> function work: this is my keydown:-
> >>>>> if keydown(keyenter!) then
> >>>>>  If dw_1.rowCount() = 0 then
> >>>>>    dw_1.insertRow(1)
> >>>>> End if
> >>>>> dw_1.setItem( 1, 'column1', sle_1.text )
> >>>>> sle_1.text=''
> >>>>> end if
> >>>>> for pbm_enchange the sle_1 not clearing. possible pbm_enchange have if
> >>>>> statement before run event like if keydown(keyenter!) then
> >>> Jason: the situation is when smartcard reader passing 12345 then it
> >>> appear at sle_1.text then i want sle_1 passing to dw_1 or dw_1 get
> >>> from sle_1 but sle_1 must clear '' after passing to dw_1
>
> > that means i must have 2 event (modified and enchange) ?
> > i dont want to use enter or doing enter, i want its passing automatic
> > to dw_1

Jason: i will try only one modified event to passing from sle_1 to
dw_1 with no enter, no tab, no lostfocus. its can do automatically
passing from sle_1 to dw_1 ?