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.

gett DWObject Without knowing the column name at design time

7 posts in DataWindow Last posting was on 2009-11-04 20:50:58.0Z
Ludwin Feiten Posted on 2009-11-04 08:59:03.0Z
Sender: 38c8.4af138da.1804289383@sybase.com
From: Ludwin Feiten
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: gett DWObject Without knowing the column name at design time
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4af14257.39ec.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 4 Nov 2009 00:59:03 -0800
X-Trace: forums-1-dub 1257325143 10.22.241.41 (4 Nov 2009 00:59:03 -0800)
X-Original-Trace: 4 Nov 2009 00:59:03 -0800, 10.22.241.41
Lines: 19
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90213
Article PK: 409818

Hi all,
I want to trigger the clicked event in a datawindow but I do
not know the column name at design time.
I only know the row and the columnname (in a variable).

So the code could look like this...

dwObject ldwo_dwo
string ls_colname = "whatever"

// How do I s.th. like this:
ldwo_dwo = dw_1.object. + ls_colname // this will not
work


// this will work, but it is coded at design time
ldwo_dwo = dw_1.object.whatever

TIA, Ludwin


Ivaylo Ivanov Posted on 2009-11-04 09:49:10.0Z
From: "Ivaylo Ivanov" <n0_S_p_a_m_i.ivanov@isy-dc.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4af14257.39ec.1681692777@sybase.com>
Subject: Re: gett DWObject Without knowing the column name at design time
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4af14e16$1@forums-1-dub>
Date: 4 Nov 2009 01:49:10 -0800
X-Trace: forums-1-dub 1257328150 10.22.241.152 (4 Nov 2009 01:49:10 -0800)
X-Original-Trace: 4 Nov 2009 01:49:10 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90214
Article PK: 409819

There was an old undocumented technique:
http://forums.sybase.com/cgi-bin/webnews.cgi?cmd=item-9566&multi=&group=sybase.public.powerbuilder.objects&utoken=3884.4a33c401.1804289383@temp:0_~2-47506eb732312c210ee600

like:
ldwo_dwo = dw_1.Object.__get_attribute(ls_colname, true) // ... or false

I don't know if it's still valid for PB11

<Ludwin Feiten> wrote in message news:4af14257.39ec.1681692777@sybase.com...
> Hi all,
> I want to trigger the clicked event in a datawindow but I do
> not know the column name at design time.
> I only know the row and the columnname (in a variable).
>
> So the code could look like this...
>
> dwObject ldwo_dwo
> string ls_colname = "whatever"
>
> // How do I s.th. like this:
> ldwo_dwo = dw_1.object. + ls_colname // this will not
> work
>
>
> // this will work, but it is coded at design time
> ldwo_dwo = dw_1.object.whatever
>
> TIA, Ludwin


Jeremy Lakeman Posted on 2009-11-04 12:40:35.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: gett DWObject Without knowing the column name at design time
Date: Wed, 4 Nov 2009 04:40:35 -0800 (PST)
Organization: http://groups.google.com
Lines: 33
Message-ID: <b83d4ed5-36e2-4931-9ebc-e218b18ce86c@f18g2000prf.googlegroups.com>
References: <4af14257.39ec.1681692777@sybase.com> <4af14e16$1@forums-1-dub>
NNTP-Posting-Host: 219.90.186.150
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257338435 16251 127.0.0.1 (4 Nov 2009 12:40:35 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 4 Nov 2009 12:40:35 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f18g2000prf.googlegroups.com; posting-host=219.90.186.150; posting-account=euaBtgoAAAC_vDxfsxmpMKlBxHaHpmRS
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 (.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!novia!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!f18g2000prf.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90216
Article PK: 409820

On Nov 4, 7:49 pm, "Ivaylo Ivanov" <n0_S_p_a_m_i.iva...@isy-dc.com>

wrote:
> There was an old undocumented technique:http://forums.sybase.com/cgi-bin/webnews.cgi?cmd=item-9566&multi=&gro...
>
> like:
> ldwo_dwo = dw_1.Object.__get_attribute(ls_colname, true)  // ... or false
>
> I don't know if it's still valid for PB11
>
> <Ludwin Feiten> wrote in messagenews:4af14257.39ec.1681692777@sybase.com...
> > Hi all,
> > I want to trigger the clicked event in a datawindow but I do
> > not know the column name at design time.
> > I only know the row and the columnname (in a variable).
>
> > So the code could look like this...
>
> > dwObject ldwo_dwo
> > string   ls_colname = "whatever"
>
> > // How do I s.th. like this:
> > ldwo_dwo = dw_1.object. + ls_colname     // this will not
> > work
>
> > // this will work, but it is coded at design time
> > ldwo_dwo = dw_1.object.whatever
>
> > TIA, Ludwin

still works in PB12 classic.


Ivaylo Ivanov Posted on 2009-11-04 12:48:56.0Z
From: "Ivaylo Ivanov" <n0_S_p_a_m_i.ivanov@isy-dc.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4af14257.39ec.1681692777@sybase.com> <4af14e16$1@forums-1-dub> <b83d4ed5-36e2-4931-9ebc-e218b18ce86c@f18g2000prf.googlegroups.com>
Subject: Re: gett DWObject Without knowing the column name at design time
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4af17838@forums-1-dub>
Date: 4 Nov 2009 04:48:56 -0800
X-Trace: forums-1-dub 1257338936 10.22.241.152 (4 Nov 2009 04:48:56 -0800)
X-Original-Trace: 4 Nov 2009 04:48:56 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90217
Article PK: 409821

Thanks, Jeremy!

"Jeremy Lakeman" <jeremy.lakeman@gmail.com> wrote in message
news:b83d4ed5-36e2-4931-9ebc-e218b18ce86c@f18g2000prf.googlegroups.com...
On Nov 4, 7:49 pm, "Ivaylo Ivanov" <n0_S_p_a_m_i.iva...@isy-dc.com>

wrote:
> There was an old undocumented
> technique:http://forums.sybase.com/cgi-bin/webnews.cgi?cmd=item-9566&multi=&gro...
>
> like:
> ldwo_dwo = dw_1.Object.__get_attribute(ls_colname, true) // ... or false
>
> I don't know if it's still valid for PB11
>
> <Ludwin Feiten> wrote in
> messagenews:4af14257.39ec.1681692777@sybase.com...
> > Hi all,
> > I want to trigger the clicked event in a datawindow but I do
> > not know the column name at design time.
> > I only know the row and the columnname (in a variable).
>
> > So the code could look like this...
>
> > dwObject ldwo_dwo
> > string ls_colname = "whatever"
>
> > // How do I s.th. like this:
> > ldwo_dwo = dw_1.object. + ls_colname // this will not
> > work
>
> > // this will work, but it is coded at design time
> > ldwo_dwo = dw_1.object.whatever
>
> > TIA, Ludwin

still works in PB12 classic.


Ludwin Feiten Posted on 2009-11-04 13:21:34.0Z
Sender: 3c14.4af14f36.1804289383@sybase.com
From: Ludwin Feiten
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: gett DWObject Without knowing the column name at design time
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4af17fde.4309.1681692777@sybase.com>
References: <4af14e16$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 4 Nov 2009 05:21:34 -0800
X-Trace: forums-1-dub 1257340894 10.22.241.41 (4 Nov 2009 05:21:34 -0800)
X-Original-Trace: 4 Nov 2009 05:21:34 -0800, 10.22.241.41
Lines: 34
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90218
Article PK: 409823

Thank you very much! That is exactly what I was looking for!

> There was an old undocumented technique:
>
http://forums.sybase.com/cgi-bin/webnews.cgi?cmd=item-9566&multi=&group=sybase.public.powerbuilder.objects&utoken=3884.4a33c401.1804289383@temp:0_~2-47506eb732312c210ee600
>
> like:
> ldwo_dwo = dw_1.Object.__get_attribute(ls_colname, true)
> // ... or false
>
> I don't know if it's still valid for PB11
>
> <Ludwin Feiten> wrote in message
> > news:4af14257.39ec.1681692777@sybase.com... Hi all,
> > I want to trigger the clicked event in a datawindow but
> > I do not know the column name at design time.
> > I only know the row and the columnname (in a variable).
> >
> > So the code could look like this...
> >
> > dwObject ldwo_dwo
> > string ls_colname = "whatever"
> >
> > // How do I s.th. like this:
> > ldwo_dwo = dw_1.object. + ls_colname // this will
> > not work
> >
> >
> > // this will work, but it is coded at design time
> > ldwo_dwo = dw_1.object.whatever
> >
> > TIA, Ludwin
>
>


"Paul Horan[Sybase]" <phoran_remove Posted on 2009-11-04 17:36:13.0Z
From: "Paul Horan[Sybase]" <phoran_remove@remove_sybase.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4af14e16$1@forums-1-dub> <4af17fde.4309.1681692777@sybase.com>
Subject: Re: gett DWObject Without knowing the column name at design time
Lines: 47
Organization: Sybase
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
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: <4af1bb8d$1@forums-1-dub>
Date: 4 Nov 2009 09:36:13 -0800
X-Trace: forums-1-dub 1257356173 10.22.241.152 (4 Nov 2009 09:36:13 -0800)
X-Original-Trace: 4 Nov 2009 09:36:13 -0800, vip152.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90222
Article PK: 409826

I don't believe in triggering clicked events. An event is something that
happens - a function is how the system responds to that event.

Refactor the functionality of that clicked event into a window/userobject
function, and invoke that from both places.

--
Paul Horan[Sybase]
http://blogs.sybase.com/phoran/

<Ludwin Feiten> wrote in message news:4af17fde.4309.1681692777@sybase.com...
> Thank you very much! That is exactly what I was looking for!
>
>> There was an old undocumented technique:
>>
> http://forums.sybase.com/cgi-bin/webnews.cgi?cmd=item-9566&multi=&group=sybase.public.powerbuilder.objects&utoken=3884.4a33c401.1804289383@temp:0_~2-47506eb732312c210ee600
>>
>> like:
>> ldwo_dwo = dw_1.Object.__get_attribute(ls_colname, true)
>> // ... or false
>>
>> I don't know if it's still valid for PB11
>>
>> <Ludwin Feiten> wrote in message
>> > news:4af14257.39ec.1681692777@sybase.com... Hi all,
>> > I want to trigger the clicked event in a datawindow but
>> > I do not know the column name at design time.
>> > I only know the row and the columnname (in a variable).
>> >
>> > So the code could look like this...
>> >
>> > dwObject ldwo_dwo
>> > string ls_colname = "whatever"
>> >
>> > // How do I s.th. like this:
>> > ldwo_dwo = dw_1.object. + ls_colname // this will
>> > not work
>> >
>> >
>> > // this will work, but it is coded at design time
>> > ldwo_dwo = dw_1.object.whatever
>> >
>> > TIA, Ludwin
>>
>>


Ivaylo Ivanov Posted on 2009-11-04 20:50:58.0Z
From: "Ivaylo Ivanov" <n0_S_p_a_m_i.ivanov@isy-dc.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4af14e16$1@forums-1-dub> <4af17fde.4309.1681692777@sybase.com> <4af1bb8d$1@forums-1-dub>
Subject: Re: gett DWObject Without knowing the column name at design time
Lines: 55
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4af1e932$1@forums-1-dub>
Date: 4 Nov 2009 12:50:58 -0800
X-Trace: forums-1-dub 1257367858 10.22.241.152 (4 Nov 2009 12:50:58 -0800)
X-Original-Trace: 4 Nov 2009 12:50:58 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90223
Article PK: 409827

Right, I totally agree with your point, Paul!
Just a nice decision to make the code consistent and easy to support.

"Paul Horan[Sybase]" <phoran_remove@remove_sybase.com> wrote in message
news:4af1bb8d$1@forums-1-dub...
>I don't believe in triggering clicked events. An event is something that
>happens - a function is how the system responds to that event.
>
> Refactor the functionality of that clicked event into a window/userobject
> function, and invoke that from both places.
>
> --
> Paul Horan[Sybase]
> http://blogs.sybase.com/phoran/
>
> <Ludwin Feiten> wrote in message
> news:4af17fde.4309.1681692777@sybase.com...
>> Thank you very much! That is exactly what I was looking for!
>>
>>> There was an old undocumented technique:
>>>
>> http://forums.sybase.com/cgi-bin/webnews.cgi?cmd=item-9566&multi=&group=sybase.public.powerbuilder.objects&utoken=3884.4a33c401.1804289383@temp:0_~2-47506eb732312c210ee600
>>>
>>> like:
>>> ldwo_dwo = dw_1.Object.__get_attribute(ls_colname, true)
>>> // ... or false
>>>
>>> I don't know if it's still valid for PB11
>>>
>>> <Ludwin Feiten> wrote in message
>>> > news:4af14257.39ec.1681692777@sybase.com... Hi all,
>>> > I want to trigger the clicked event in a datawindow but
>>> > I do not know the column name at design time.
>>> > I only know the row and the columnname (in a variable).
>>> >
>>> > So the code could look like this...
>>> >
>>> > dwObject ldwo_dwo
>>> > string ls_colname = "whatever"
>>> >
>>> > // How do I s.th. like this:
>>> > ldwo_dwo = dw_1.object. + ls_colname // this will
>>> > not work
>>> >
>>> >
>>> > // this will work, but it is coded at design time
>>> > ldwo_dwo = dw_1.object.whatever
>>> >
>>> > TIA, Ludwin
>>>
>>>
>
>