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.

DDDW display question

3 posts in DataWindow Last posting was on 2009-11-11 16:35:57.0Z
Torsten Matschull Posted on 2009-11-11 11:02:11.0Z
From: Torsten Matschull <torsten.matschull@eventim.de>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: DDDW display question
Date: Wed, 11 Nov 2009 03:02:11 -0800 (PST)
Organization: http://groups.google.com
Lines: 23
Message-ID: <66722c72-752f-498a-ad65-6856a3a8c9e0@b15g2000yqd.googlegroups.com>
NNTP-Posting-Host: 88.79.247.30
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1257937331 16744 127.0.0.1 (11 Nov 2009 11:02:11 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 11 Nov 2009 11:02:11 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: b15g2000yqd.googlegroups.com; posting-host=88.79.247.30; posting-account=S6m8ggoAAADwx08CZ_5puWdXeWQn1Cpg
User-Agent: G2/1.0
X-HTTP-Via: 1.0 proxy.eventim.de:8080 (squid)
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5,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!b15g2000yqd.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90242
Article PK: 409846

Hello,

I am using PB 11.5.1 build 4566 and I need to display a bitmap and a
text in a DDDW display column inside a datawindow. For example: a
bitmap for the flag and a text for the name of a country. I can do
this inside a DDDW using two columns, one for the flag (display as
picture) and another one for the name of the country. But I can choose
only one column as a display column inside a datawindow. I also tried
to combine both parts in a computed field (using the bitmap function)
but with no success.

Any suggestions?

The only opportunity I haven't tested yet is to use an additional
column in the datawindow itself which references to the same DDDW. In
this case the actual column would display the name of the country and
the new column would display the corresponding flag. But this is not a
very nice solution, because I use grid datawindows where the user can
rearrange the order of the columns and in this scenario he could move
one column while the other stays at the same place.

Best regards
Torsten


Jason 'Bug' Fenter [TeamSybase] Posted on 2009-11-11 15:17:48.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <jason.fenter@teamsybase.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4pre) Gecko/20090915 Lightning/1.0pre Thunderbird/3.0b4
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: DDDW display question
References: <66722c72-752f-498a-ad65-6856a3a8c9e0@b15g2000yqd.googlegroups.com>
In-Reply-To: <66722c72-752f-498a-ad65-6856a3a8c9e0@b15g2000yqd.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: <4afad59c$1@forums-1-dub>
Date: 11 Nov 2009 07:17:48 -0800
X-Trace: forums-1-dub 1257952668 10.22.241.152 (11 Nov 2009 07:17:48 -0800)
X-Original-Trace: 11 Nov 2009 07:17:48 -0800, vip152.sybase.com
Lines: 13
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90247
Article PK: 409852


On 11/11/2009 5:02 AM, Torsten Matschull wrote:
> The only opportunity I haven't tested yet is to use an additional
> column in the datawindow itself which references to the same DDDW. In
> this case the actual column would display the name of the country and
> the new column would display the corresponding flag. But this is not a
> very nice solution, because I use grid datawindows where the user can
> rearrange the order of the columns and in this scenario he could move
> one column while the other stays at the same place.

Unfortunately, this is the only solution available. A single column
cannot display two values (binary data for the flag and the text for the
name). The only way to get both displays in the same column is to use a
richtext edit style, but then you lose the drop-down functionality.


Philip Salgannik Posted on 2009-11-11 16:35:57.0Z
From: "Philip Salgannik" <philip@MeMyselfAndI.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <66722c72-752f-498a-ad65-6856a3a8c9e0@b15g2000yqd.googlegroups.com>
Subject: Re: DDDW display question
Lines: 31
Organization: MeMyselfAndI
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: <4afae7ed$1@forums-1-dub>
Date: 11 Nov 2009 08:35:57 -0800
X-Trace: forums-1-dub 1257957357 10.22.241.152 (11 Nov 2009 08:35:57 -0800)
X-Original-Trace: 11 Nov 2009 08:35:57 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90252
Article PK: 409858

The only way to do this would be to have a separate column for you picture
in the main datawindow (right next to the column which is your dddw) and
setting it's value on the itemchanged of the dddw column...

"Torsten Matschull" <torsten.matschull@eventim.de> wrote in message
news:66722c72-752f-498a-ad65-6856a3a8c9e0@b15g2000yqd.googlegroups.com...
> Hello,
>
> I am using PB 11.5.1 build 4566 and I need to display a bitmap and a
> text in a DDDW display column inside a datawindow. For example: a
> bitmap for the flag and a text for the name of a country. I can do
> this inside a DDDW using two columns, one for the flag (display as
> picture) and another one for the name of the country. But I can choose
> only one column as a display column inside a datawindow. I also tried
> to combine both parts in a computed field (using the bitmap function)
> but with no success.
>
> Any suggestions?
>
> The only opportunity I haven't tested yet is to use an additional
> column in the datawindow itself which references to the same DDDW. In
> this case the actual column would display the name of the country and
> the new column would display the corresponding flag. But this is not a
> very nice solution, because I use grid datawindows where the user can
> rearrange the order of the columns and in this scenario he could move
> one column while the other stays at the same place.
>
> Best regards
> Torsten
>