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.

Initial values for columns in datawindow

2 posts in DataWindow Last posting was on 2009-02-25 06:16:37.0Z
Don Posted on 2009-02-25 05:34:50.0Z
From: "Don" <dmcquade@dmapros.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Initial values for columns in datawindow
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49a4d87a$1@forums-1-dub>
Date: 24 Feb 2009 21:34:50 -0800
X-Trace: forums-1-dub 1235540090 10.22.241.152 (24 Feb 2009 21:34:50 -0800)
X-Original-Trace: 24 Feb 2009 21:34:50 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88861
Article PK: 418113

I have a button in a datawindow that appends a row which works fine. What I
would like to happen is have some columns have an initial value. These
initial values will vary based on the arguments to the SELECT statement used
to retrieve the existing rows. Can I use the arguments or global variables
to set these without putting code in the buttonclicked event?

Thanks
Don


Harry Posted on 2009-02-25 06:16:37.0Z
From: "Harry" <nospam.harrylhy@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49a4d87a$1@forums-1-dub>
Subject: Re: Initial values for columns in datawindow
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49a4e245$1@forums-1-dub>
Date: 24 Feb 2009 22:16:37 -0800
X-Trace: forums-1-dub 1235542597 10.22.241.152 (24 Feb 2009 22:16:37 -0800)
X-Original-Trace: 24 Feb 2009 22:16:37 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88862
Article PK: 418114

you can change the initial value with pb scripts, e.g.: dw_1.object.columnname.initial = "abc"

see Initial DataWindow object property for details.


"Don" <dmcquade@dmapros.com> ¦b¶l¥ó news:49a4d87a$1@forums-1-dub ¤¤¼¶¼g...

> I have a button in a datawindow that appends a row which works fine. What I
> would like to happen is have some columns have an initial value. These
> initial values will vary based on the arguments to the SELECT statement used
> to retrieve the existing rows. Can I use the arguments or global variables
> to set these without putting code in the buttonclicked event?
>
> Thanks
> Don
>
>