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.

GetValidate

4 posts in DataWindow Last posting was on 2009-12-02 20:50:09.0Z
Sravan Posted on 2009-12-02 17:08:17.0Z
From: Sravan <sr.100102@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: GetValidate
Date: Wed, 2 Dec 2009 09:08:17 -0800 (PST)
Organization: http://groups.google.com
Lines: 18
Message-ID: <82df495a-f8fd-4109-8a6d-3f780fbb8b4e@e31g2000vbm.googlegroups.com>
NNTP-Posting-Host: 199.90.35.11
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1259773698 28482 127.0.0.1 (2 Dec 2009 17:08:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 2 Dec 2009 17:08:18 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: e31g2000vbm.googlegroups.com; posting-host=199.90.35.11; posting-account=UTzE8QoAAAC3nYtUFSzhmOMS6rL8Ql2h
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1),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!e31g2000vbm.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90386
Article PK: 409991

Hello,

My Environment is PB 10 with Oracle as a back end.
One my function is using GetValidate to get the validation text, this
gives exactly what is typed in the Validation expression of the
datawindow. But i am just wondering that is there any way i can the
values in case if there are any functions,variables used.

I am not supposed to touch the function which uses the Getvalidate
function.

Ex: Let say validation expression is "colname" , i would prefer to
get the value of "colname" not the colname.
Is there any way i can make it work.



Sra


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-12-02 18:44:57.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <82df495a-f8fd-4109-8a6d-3f780fbb8b4e@e31g2000vbm.googlegroups.com>
Subject: Re: GetValidate
Lines: 31
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: <4b16b5a9$1@forums-1-dub>
Date: 2 Dec 2009 10:44:57 -0800
X-Trace: forums-1-dub 1259779497 10.22.241.152 (2 Dec 2009 10:44:57 -0800)
X-Original-Trace: 2 Dec 2009 10:44:57 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90387
Article PK: 409993

Describe ('Evaluate (...)') is your friend.
See the Help for Describe datawindow method.

--
Report Bugs to Sybase: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

"Sravan" <sr.100102@gmail.com> wrote in message
news:82df495a-f8fd-4109-8a6d-3f780fbb8b4e@e31g2000vbm.googlegroups.com...
> Hello,
>
> My Environment is PB 10 with Oracle as a back end.
> One my function is using GetValidate to get the validation text, this
> gives exactly what is typed in the Validation expression of the
> datawindow. But i am just wondering that is there any way i can the
> values in case if there are any functions,variables used.
>
> I am not supposed to touch the function which uses the Getvalidate
> function.
>
> Ex: Let say validation expression is "colname" , i would prefer to
> get the value of "colname" not the colname.
> Is there any way i can make it work.
>
>
>
> Sra


Sravan Posted on 2009-12-02 20:17:08.0Z
From: Sravan <sr.100102@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: GetValidate
Date: Wed, 2 Dec 2009 12:17:08 -0800 (PST)
Organization: http://groups.google.com
Lines: 7
Message-ID: <4285bca9-66d2-4955-b7de-f6427643dd2c@m33g2000vbi.googlegroups.com>
References: <82df495a-f8fd-4109-8a6d-3f780fbb8b4e@e31g2000vbm.googlegroups.com> <4b16b5a9$1@forums-1-dub>
NNTP-Posting-Host: 199.90.35.11
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1259785028 5105 127.0.0.1 (2 Dec 2009 20:17:08 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 2 Dec 2009 20:17:08 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m33g2000vbi.googlegroups.com; posting-host=199.90.35.11; posting-account=UTzE8QoAAAC3nYtUFSzhmOMS6rL8Ql2h
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1),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!m33g2000vbi.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90388
Article PK: 409994

Thanks a lot for reply.
I am not supposed to change the function which is calling GetValidate
on the column.
I am restricted to modify only Validation expression.

Thanks,
Sra


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-12-02 20:50:09.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <82df495a-f8fd-4109-8a6d-3f780fbb8b4e@e31g2000vbm.googlegroups.com> <4b16b5a9$1@forums-1-dub> <4285bca9-66d2-4955-b7de-f6427643dd2c@m33g2000vbi.googlegroups.com>
Subject: Re: GetValidate
Lines: 22
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: <4b16d301$1@forums-1-dub>
Date: 2 Dec 2009 12:50:09 -0800
X-Trace: forums-1-dub 1259787009 10.22.241.152 (2 Dec 2009 12:50:09 -0800)
X-Original-Trace: 2 Dec 2009 12:50:09 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90389
Article PK: 410000

GetValidate returns the expression. Validation won't work without an
appropriate expression. You are not going to be able to get the value of the
expression without writing some code. And note that the expression will
evaluate to Boolean - true means the column value is OK.

--
Report Bugs to Sybase: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

"Sravan" <sr.100102@gmail.com> wrote in message
news:4285bca9-66d2-4955-b7de-f6427643dd2c@m33g2000vbi.googlegroups.com...
> Thanks a lot for reply.
> I am not supposed to change the function which is calling GetValidate
> on the column.
> I am restricted to modify only Validation expression.
>
> Thanks,
> Sra