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.

Enable/Disable button control in a datawindow

5 posts in DataWindow Last posting was on 2008-12-05 13:48:19.0Z
O. Steine Posted on 2008-12-04 13:44:39.0Z
From: "O. Steine" <osteine@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Enable/Disable button control in a datawindow
Lines: 9
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.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4937dec7$1@forums-1-dub>
Date: 4 Dec 2008 05:44:39 -0800
X-Trace: forums-1-dub 1228398279 10.22.241.152 (4 Dec 2008 05:44:39 -0800)
X-Original-Trace: 4 Dec 2008 05:44:39 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88288
Article PK: 417543

Isn't there anyway you could set a button control in a datawindow to
enable/disable depending on a datawindow expression?

It is possible to set datawindow expressions on properties like: visible,
text, alignment, and more... but with the enabled property it's only a
checkbox (on/off) with no 'button' for the datawindow expression.


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-12-04 14:01:47.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4937dec7$1@forums-1-dub>
Subject: Re: Enable/Disable button control in a datawindow
Lines: 15
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.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4937e2cb@forums-1-dub>
Date: 4 Dec 2008 06:01:47 -0800
X-Trace: forums-1-dub 1228399307 10.22.241.152 (4 Dec 2008 06:01:47 -0800)
X-Original-Trace: 4 Dec 2008 06:01:47 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88289
Article PK: 417542

That's been a long standing enhancement request. I just use Visible.

"O. Steine" <osteine@gmail.com> wrote in message
news:4937dec7$1@forums-1-dub...
> Isn't there anyway you could set a button control in a datawindow to
> enable/disable depending on a datawindow expression?
>
> It is possible to set datawindow expressions on properties like: visible,
> text, alignment, and more... but with the enabled property it's only a
> checkbox (on/off) with no 'button' for the datawindow expression.
>
>
>


Eddy Soeparmin Posted on 2008-12-04 14:21:44.0Z
Reply-To: "Eddy Soeparmin" <SoeparminE@MDAInc.co>
From: "Eddy Soeparmin" <SoeparminE@MDAInc.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4937dec7$1@forums-1-dub> <4937e2cb@forums-1-dub>
Subject: Re: Enable/Disable button control in a datawindow
Lines: 25
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.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4937e778@forums-1-dub>
Date: 4 Dec 2008 06:21:44 -0800
X-Trace: forums-1-dub 1228400504 10.22.241.152 (4 Dec 2008 06:21:44 -0800)
X-Original-Trace: 4 Dec 2008 06:21:44 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88292
Article PK: 417545

Or manually trap it in the ButtonClicked() event to prevent it... Also
change the text color...

--
Eddy Soeparmin

"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:4937e2cb@forums-1-dub...
> That's been a long standing enhancement request. I just use Visible.
>
> "O. Steine" <osteine@gmail.com> wrote in message
> news:4937dec7$1@forums-1-dub...
>> Isn't there anyway you could set a button control in a datawindow to
>> enable/disable depending on a datawindow expression?
>>
>> It is possible to set datawindow expressions on properties like: visible,
>> text, alignment, and more... but with the enabled property it's only a
>> checkbox (on/off) with no 'button' for the datawindow expression.
>>
>>
>>
>
>


O. Steine Posted on 2008-12-05 13:17:05.0Z
From: "O. Steine" <osteine@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4937dec7$1@forums-1-dub> <4937e2cb@forums-1-dub>
Subject: Re: Enable/Disable button control in a datawindow
Lines: 28
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.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <493929d1@forums-1-dub>
Date: 5 Dec 2008 05:17:05 -0800
X-Trace: forums-1-dub 1228483025 10.22.241.152 (5 Dec 2008 05:17:05 -0800)
X-Original-Trace: 5 Dec 2008 05:17:05 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88308
Article PK: 417559

I thought that I could enable/disable it in the retrieveend event with:

this.object.control_name[row].enabled = FALSE

But this syntax is not valid and without the array notation [row] it turns
it on/off on all rows.

Is it not possible to set this depending on rows?

"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> skrev i melding
news:4937e2cb@forums-1-dub...

> That's been a long standing enhancement request. I just use Visible.
>
> "O. Steine" <osteine@gmail.com> wrote in message
> news:4937dec7$1@forums-1-dub...
>> Isn't there anyway you could set a button control in a datawindow to
>> enable/disable depending on a datawindow expression?
>>
>> It is possible to set datawindow expressions on properties like: visible,
>> text, alignment, and more... but with the enabled property it's only a
>> checkbox (on/off) with no 'button' for the datawindow expression.
>>
>>
>>
>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-12-05 13:48:19.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4937dec7$1@forums-1-dub> <4937e2cb@forums-1-dub> <493929d1@forums-1-dub>
Subject: Re: Enable/Disable button control in a datawindow
Lines: 37
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.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49393123$1@forums-1-dub>
Date: 5 Dec 2008 05:48:19 -0800
X-Trace: forums-1-dub 1228484899 10.22.241.152 (5 Dec 2008 05:48:19 -0800)
X-Original-Trace: 5 Dec 2008 05:48:19 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88309
Article PK: 417561

The way properties are set on a row-by-row basis is with an expression.
Since Enabled does not support expressions (note there is no button in the
painter), you are out of luck. Put in an enhancement request at ISUG and/or
Case Express and hope it gets put into 12.

"O. Steine" <osteine@gmail.com> wrote in message
news:493929d1@forums-1-dub...
>I thought that I could enable/disable it in the retrieveend event with:
>
> this.object.control_name[row].enabled = FALSE
>
> But this syntax is not valid and without the array notation [row] it turns
> it on/off on all rows.
>
> Is it not possible to set this depending on rows?
>
> "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> skrev i melding
> news:4937e2cb@forums-1-dub...
>> That's been a long standing enhancement request. I just use Visible.
>>
>> "O. Steine" <osteine@gmail.com> wrote in message
>> news:4937dec7$1@forums-1-dub...
>>> Isn't there anyway you could set a button control in a datawindow to
>>> enable/disable depending on a datawindow expression?
>>>
>>> It is possible to set datawindow expressions on properties like:
>>> visible, text, alignment, and more... but with the enabled property it's
>>> only a checkbox (on/off) with no 'button' for the datawindow expression.
>>>
>>>
>>>
>>
>>
>
>