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.

Runtime DDLB

3 posts in DataWindow Last posting was on 2008-08-06 10:56:24.0Z
Enrique Posted on 2008-08-05 17:21:30.0Z
Sender: 371b.48988a59.1804289383@sybase.com
From: Enrique
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Runtime DDLB
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48988c1a.3773.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 5 Aug 2008 10:21:30 -0700
X-Trace: forums-1-dub 1217956890 10.22.241.41 (5 Aug 2008 10:21:30 -0700)
X-Original-Trace: 5 Aug 2008 10:21:30 -0700, 10.22.241.41
Lines: 9
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87495
Article PK: 416749

My user wants a datawindow column style to become a DDLB
under certain conditions otherwise an EDIT style.
On the painter the COLUMN style is set as EDIT.
I tried dw.Modified("column.edit.style = 'ddlb'") but it
failed.
Is there any way to change the style dinamicaly at runtime?
Any help would be appreciated.
Thanks
Enrique


"Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_ Posted on 2008-08-05 18:29:17.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_@_teamsybase.com>
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Runtime DDLB
References: <48988c1a.3773.1681692777@sybase.com>
In-Reply-To: <48988c1a.3773.1681692777@sybase.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: <48989bfd@forums-1-dub>
Date: 5 Aug 2008 11:29:17 -0700
X-Trace: forums-1-dub 1217960957 10.22.241.152 (5 Aug 2008 11:29:17 -0700)
X-Original-Trace: 5 Aug 2008 11:29:17 -0700, vip152.sybase.com
Lines: 16
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87496
Article PK: 416751

The easiest way would probably to have two instances of the column
available-- one with each edit style. You could then use an expression
to toggle the visibility of the controls to make sure the appropriate
one is displayed.

Enrique wrote:
> My user wants a datawindow column style to become a DDLB
> under certain conditions otherwise an EDIT style.
> On the painter the COLUMN style is set as EDIT.
> I tried dw.Modified("column.edit.style = 'ddlb'") but it
> failed.
> Is there any way to change the style dinamicaly at runtime?
> Any help would be appreciated.
> Thanks
> Enrique


Wim Dewulf Posted on 2008-08-06 10:56:24.0Z
From: "Wim Dewulf" <wim.dewulf@nospam.sofico.be>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48988c1a.3773.1681692777@sybase.com>
Subject: Re: Runtime DDLB
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48998358$1@forums-1-dub>
Date: 6 Aug 2008 03:56:24 -0700
X-Trace: forums-1-dub 1218020184 10.22.241.152 (6 Aug 2008 03:56:24 -0700)
X-Original-Trace: 6 Aug 2008 03:56:24 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87498
Article PK: 416753

Hi,

To change the editstyle you might try a modify as follows:
// Change the editsyle to dropdownlistbox
ls_mod = ldw.modify(ls_column + ".ddlb.limit=0 " + ls_column +
".ddlb.allowedit=no " + ls_column + ".ddlb.case=any")
// Add a codetable with values
ls_mod = ldw.modify(ls_column + ".values='" + ls_codetable + "'")
As soon as you modify a property to ddlb, the editstyle will change for that
column

Hope this helps,

Wim

<Enrique> wrote in message news:48988c1a.3773.1681692777@sybase.com...
> My user wants a datawindow column style to become a DDLB
> under certain conditions otherwise an EDIT style.
> On the painter the COLUMN style is set as EDIT.
> I tried dw.Modified("column.edit.style = 'ddlb'") but it
> failed.
> Is there any way to change the style dinamicaly at runtime?
> Any help would be appreciated.
> Thanks
> Enrique