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.

User object with with masked function of internal datawindow

4 posts in Objects Last posting was on 2006-08-16 14:10:22.0Z
Tiago PB Posted on 2006-08-14 17:20:08.0Z
From: Tiago PB <tiago.marcelino@quantiza.com>
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: User object with with masked function of internal datawindow
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: static193-181.static.quantiza.com
X-Original-NNTP-Posting-Host: static193-181.static.quantiza.com
Message-ID: <44e0b0c8@forums-1-dub>
Date: 14 Aug 2006 10:20:08 -0700
X-Trace: forums-1-dub 1155576008 201.7.193.181 (14 Aug 2006 10:20:08 -0700)
X-Original-Trace: 14 Aug 2006 10:20:08 -0700, static193-181.static.quantiza.com
Lines: 9
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9018
Article PK: 736215

Hi people,

I am developing an object with 2 internal datawindows. My question is if
I can make a function "Retrieve" to my object that uses the dw_1 Retrive
function? Something like object.Retrieve() = dw_1.Retrieve(arg 1, arg
2,....). It's possible?


Thanks.


Manuel Espinoza Posted on 2006-08-14 17:38:25.0Z
From: "Manuel Espinoza" <jmespinoza.no_spam@seicom.com.mx>
Newsgroups: sybase.public.powerbuilder.objects
References: <44e0b0c8@forums-1-dub>
Subject: Re: User object with with masked function of internal datawindow
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-Original-NNTP-Posting-Host: 201.138.181.171
Message-ID: <44e0b2cf@forums-2-dub>
X-Original-Trace: 14 Aug 2006 10:28:47 -0700, 201.138.181.171
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 14 Aug 2006 10:28:50 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 14 Aug 2006 10:38:25 -0700
X-Trace: forums-1-dub 1155577105 10.22.108.75 (14 Aug 2006 10:38:25 -0700)
X-Original-Trace: 14 Aug 2006 10:38:25 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9019
Article PK: 736216

I don't understand at all...

the retrieve method return the number of retrieved rows or -1 if it fails...

Do you mean a Master-detail retrieve?
Or maybe just share the arguments?




"Tiago PB" <tiago.marcelino@quantiza.com> escribió en el mensaje
news:44e0b0c8@forums-1-dub...

> Hi people,
>
> I am developing an object with 2 internal datawindows. My question is if I
> can make a function "Retrieve" to my object that uses the dw_1 Retrive
> function? Something like object.Retrieve() = dw_1.Retrieve(arg 1, arg
> 2,....). It's possible?
>
>
> Thanks.


Brad Wery [TeamSybase] Posted on 2006-08-14 17:56:25.0Z
From: "Brad Wery [TeamSybase]" <bradweryatagricoreunited.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: User object with with masked function of internal datawindow
References: <44e0b0c8@forums-1-dub>
In-Reply-To: <44e0b0c8@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: ugg10.unitedgrain.ca
Message-ID: <44e0b708$1@forums-2-dub>
X-Original-Trace: 14 Aug 2006 10:46:48 -0700, ugg10.unitedgrain.ca
Lines: 35
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 14 Aug 2006 10:46:49 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 14 Aug 2006 10:56:25 -0700
X-Trace: forums-1-dub 1155578185 10.22.108.75 (14 Aug 2006 10:56:25 -0700)
X-Original-Trace: 14 Aug 2006 10:56:25 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9020
Article PK: 736218

Tiago,

I don't think you can do exactly what you want. To my knowledge PB can
not handle function declarations with a variable number of parameters.

Would it be acceptable for you to access the datawindow through an
instance variable instead:

object.dw.retrieve(...)

Another thing you could do is make it so that your retrieve function on
your user object accepts an array of arguments instead.

//Long of_Retrieve(Any a_arg[100])

dw_1.Retrieve(a_arg[1], a_arg[2].... a_arg[99],a_arg[100])



I hope this helps.

Good luck,

Brad

Tiago PB wrote:
> Hi people,
>
> I am developing an object with 2 internal datawindows. My question is if
> I can make a function "Retrieve" to my object that uses the dw_1 Retrive
> function? Something like object.Retrieve() = dw_1.Retrieve(arg 1, arg
> 2,....). It's possible?
>
>
> Thanks.


Jason 'Bug' Fenter [TeamSybase] Posted on 2006-08-16 14:10:22.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <jason.fenter@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 65.201.123.212
References: <44e0b0c8@forums-1-dub> <44e0b708$1@forums-2-dub>
X-Newsreader: AspNNTP 1.50 (JodoHost)
Subject: Re: User object with with masked function of internal datawindow
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 64.187.108.200
Message-ID: <44e32502$1@forums-2-dub>
X-Original-Trace: 16 Aug 2006 07:00:34 -0700, 64.187.108.200
Lines: 45
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 16 Aug 2006 07:00:35 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 16 Aug 2006 07:10:22 -0700
X-Trace: forums-1-dub 1155737422 10.22.108.75 (16 Aug 2006 07:10:22 -0700)
X-Original-Trace: 16 Aug 2006 07:10:22 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9022
Article PK: 736219

Another interesting fact that may be of use: You can pass more arguments to
<datawindow>.Retrieve() than it expects. You will not get any error messages.
I'm working on a generic report engine that passes twenty arguments to every
report, whether the report requires any or not. Works beautifully (and I think
twenty is an acceptable number... you could add more if you wanted).


On 14 Aug 2006 10:56:25 -0700,
in sybase.public.powerbuilder.objects

Brad Wery [TeamSybase] <bradweryatagricoreunited.com> wrote:
>Tiago,
>
>I don't think you can do exactly what you want. To my knowledge PB can
>not handle function declarations with a variable number of parameters.
>
>Would it be acceptable for you to access the datawindow through an
>instance variable instead:
>
>object.dw.retrieve(...)
>
>Another thing you could do is make it so that your retrieve function on
>your user object accepts an array of arguments instead.
>
>//Long of_Retrieve(Any a_arg[100])
>
>dw_1.Retrieve(a_arg[1], a_arg[2].... a_arg[99],a_arg[100])
>
>
>
>I hope this helps.
>
>Good luck,
>
>Brad
>
>Tiago PB wrote:
>> Hi people,
>>
>> I am developing an object with 2 internal datawindows. My question is if
>> I can make a function "Retrieve" to my object that uses the dw_1 Retrive
>> function? Something like object.Retrieve() = dw_1.Retrieve(arg 1, arg
>> 2,....). It's possible?
>>
>>
>> Thanks.