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.

call a global function in a datawindow expession passing a pointer to dwo

3 posts in DataWindow Last posting was on 2008-05-05 15:50:34.0Z
dinis miguel Posted on 2008-05-02 18:49:28.0Z
From: dinis miguel <NOSPAMdinisDOTmiguel@sisgarbeDOTpt>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: call a global function in a datawindow expession passing a pointer to dwo
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: <481b6238@forums-1-dub>
Date: 2 May 2008 11:49:28 -0700
X-Trace: forums-1-dub 1209754168 10.22.241.152 (2 May 2008 11:49:28 -0700)
X-Original-Trace: 2 May 2008 11:49:28 -0700, vip152.sybase.com
Lines: 17
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86766
Article PK: 416025

There is some way of call a global function on a computed field
expression or a property expression and pass some reference to it.

like this:

global function string gf_teste (dwobject dwo);

Return dwo.name

end function

then in a datawindow object:

c_teste.expression = "gf_teste(this)"


Thanks to every one.


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-05-02 20:34:09.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <481b6238@forums-1-dub>
Subject: Re: call a global function in a datawindow expession passing a pointer to dwo
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <481b7ac1@forums-1-dub>
Date: 2 May 2008 13:34:09 -0700
X-Trace: forums-1-dub 1209760449 10.22.241.152 (2 May 2008 13:34:09 -0700)
X-Original-Trace: 2 May 2008 13:34:09 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86771
Article PK: 416030

The pronoun "this" is PowerScript and doesn't work in DW expressions.
What are you actually trying to accomplish?

"dinis miguel" <NOSPAMdinisDOTmiguel@sisgarbeDOTpt> wrote in message
news:481b6238@forums-1-dub...
> There is some way of call a global function on a computed field expression
> or a property expression and pass some reference to it.
>
> like this:
>
> global function string gf_teste (dwobject dwo);
>
> Return dwo.name
>
> end function
>
> then in a datawindow object:
>
> c_teste.expression = "gf_teste(this)"
>
>
> Thanks to every one.


dinis miguel Posted on 2008-05-05 15:50:34.0Z
From: dinis miguel <NOSPAMdinisDOTmiguel@sisgarbeDOTpt>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: call a global function in a datawindow expession passing a pointer to dwo
References: <481b6238@forums-1-dub> <481b7ac1@forums-1-dub>
In-Reply-To: <481b7ac1@forums-1-dub>
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: <481f2cca$1@forums-1-dub>
Date: 5 May 2008 08:50:34 -0700
X-Trace: forums-1-dub 1210002634 10.22.241.152 (5 May 2008 08:50:34 -0700)
X-Original-Trace: 5 May 2008 08:50:34 -0700, vip152.sybase.com
Lines: 33
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86776
Article PK: 416035

I'm trying to extend dwexpressions to use dwo property values without
use of describe(<dwoName>.propertieName) in all the places i need.

the <dwoName>, need to be coded in every object, i now it can be done in
a powerscript sort of service, but still like the other aproach.

thanks

Jerry Siegel [TeamSybase] wrote:
> The pronoun "this" is PowerScript and doesn't work in DW expressions.
> What are you actually trying to accomplish?
>
> "dinis miguel" <NOSPAMdinisDOTmiguel@sisgarbeDOTpt> wrote in message
> news:481b6238@forums-1-dub...
>> There is some way of call a global function on a computed field expression
>> or a property expression and pass some reference to it.
>>
>> like this:
>>
>> global function string gf_teste (dwobject dwo);
>>
>> Return dwo.name
>>
>> end function
>>
>> then in a datawindow object:
>>
>> c_teste.expression = "gf_teste(this)"
>>
>>
>> Thanks to every one.
>
>