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.

how to get the name of datawindow ?

25 posts in DataWindow Last posting was on 2008-05-16 13:27:37.0Z
wong KS Posted on 2008-05-11 16:06:54.0Z
From: wong KS <wongkingsu@gmail.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: how to get the name of datawindow ?
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: <4827199e@forums-1-dub>
Date: 11 May 2008 09:06:54 -0700
X-Trace: forums-1-dub 1210522014 10.22.241.152 (11 May 2008 09:06:54 -0700)
X-Original-Trace: 11 May 2008 09:06:54 -0700, vip152.sybase.com
Lines: 5
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86800
Article PK: 416058

I have a datawindow 'dw_sample' , I put a new expression in that
datawindow : "describe('datawindow.name')", but it return the result :
'datawindow', and not the name 'dw_sample'

am I describe the wrong expression ?


M. Searer Posted on 2008-05-11 19:51:15.0Z
From: "M. Searer" <nospam@nospam.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 11
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: <48274e33$1@forums-1-dub>
Date: 11 May 2008 12:51:15 -0700
X-Trace: forums-1-dub 1210535475 10.22.241.152 (11 May 2008 12:51:15 -0700)
X-Original-Trace: 11 May 2008 12:51:15 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86801
Article PK: 416060

you can't get the name of the datawindow from within the datawindow.

"wong KS" <wongkingsu@gmail.com> wrote in message news:4827199e@forums-1-dub...
>I have a datawindow 'dw_sample' , I put a new expression in that datawindow :
>"describe('datawindow.name')", but it return the result : 'datawindow', and not
>the name 'dw_sample'
>
> am I describe the wrong expression ?


wong KS Posted on 2008-05-12 13:57:33.0Z
From: wong KS <wongkingsu@gmail.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: how to get the name of datawindow ?
References: <4827199e@forums-1-dub> <48274e33$1@forums-1-dub>
In-Reply-To: <48274e33$1@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: <48284ccd@forums-1-dub>
Date: 12 May 2008 06:57:33 -0700
X-Trace: forums-1-dub 1210600653 10.22.241.152 (12 May 2008 06:57:33 -0700)
X-Original-Trace: 12 May 2008 06:57:33 -0700, vip152.sybase.com
Lines: 17
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86805
Article PK: 416064

why the datawindow didn't know his own name ?

M. Searer wrote:
> you can't get the name of the datawindow from within the datawindow.
>
>
> "wong KS" <wongkingsu@gmail.com> wrote in message news:4827199e@forums-1-dub...
>
>>I have a datawindow 'dw_sample' , I put a new expression in that datawindow :
>>"describe('datawindow.name')", but it return the result : 'datawindow', and not
>>the name 'dw_sample'
>>
>>am I describe the wrong expression ?
>
>
>


HarryLai Posted on 2008-05-12 17:01:29.0Z
From: "HarryLai" <nospam_harrylhy@bigfoot.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <48274e33$1@forums-1-dub> <48284ccd@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <482877e9$1@forums-1-dub>
Date: 12 May 2008 10:01:29 -0700
X-Trace: forums-1-dub 1210611689 10.22.241.152 (12 May 2008 10:01:29 -0700)
X-Original-Trace: 12 May 2008 10:01:29 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86813
Article PK: 416072

You cannot get the name of "dw_sample" because this is a control name. If you wanna get it and display in somewhere of your
datawindow, you can use Classname() to get this control name in dw constructor event, then fill it to you object in dw. : )


"wong KS" <wongkingsu@gmail.com> ???????:48284ccd@forums-1-dub...

> why the datawindow didn't know his own name ?
>
>
> M. Searer wrote:
>> you can't get the name of the datawindow from within the datawindow.
>>
>>
>> "wong KS" <wongkingsu@gmail.com> wrote in message news:4827199e@forums-1-dub...
>>
>>>I have a datawindow 'dw_sample' , I put a new expression in that datawindow : "describe('datawindow.name')", but it return the
>>>result : 'datawindow', and not the name 'dw_sample'
>>>
>>>am I describe the wrong expression ?
>>
>>


M. Searer Posted on 2008-05-12 20:19:42.0Z
From: "M. Searer" <nospam@nospam.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <48274e33$1@forums-1-dub> <48284ccd@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4828a65e@forums-1-dub>
Date: 12 May 2008 13:19:42 -0700
X-Trace: forums-1-dub 1210623582 10.22.241.152 (12 May 2008 13:19:42 -0700)
X-Original-Trace: 12 May 2008 13:19:42 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86818
Article PK: 416077

I thought I had added this as an enhancement request on ISUG; but apparently
not.
I put this request into the futures discussion newsgoup in 2002; I'll add it to
ISUG for visibility.

"wong KS" <wongkingsu@gmail.com> wrote in message news:48284ccd@forums-1-dub...
> why the datawindow didn't know his own name ?
>
>
> M. Searer wrote:
>> you can't get the name of the datawindow from within the datawindow.
>>
>>
>> "wong KS" <wongkingsu@gmail.com> wrote in message
>> news:4827199e@forums-1-dub...
>>
>>>I have a datawindow 'dw_sample' , I put a new expression in that datawindow :
>>>"describe('datawindow.name')", but it return the result : 'datawindow', and
>>>not the name 'dw_sample'
>>>
>>>am I describe the wrong expression ?
>>
>>


Terry Dykstra Posted on 2008-05-12 21:38:48.0Z
Reply-To: "Terry Dykstra" <dontreply_tddykstra@forestoil.ca.x>
From: "Terry Dykstra" <tddykstra@forestoil.ca>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <48274e33$1@forums-1-dub> <48284ccd@forums-1-dub> <4828a65e@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4828b8e8$1@forums-1-dub>
Date: 12 May 2008 14:38:48 -0700
X-Trace: forums-1-dub 1210628328 10.22.241.152 (12 May 2008 14:38:48 -0700)
X-Original-Trace: 12 May 2008 14:38:48 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86820
Article PK: 416078

I've requested that feature too many many years ago. It just seems such a
no-brainer to have a dw function that tells you its own name. My InfoMaker
users always get their hardcoded names right <g>

--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://casexpress.sybase.com/cx/cx.stm
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

"M. Searer" <nospam@nospam.com> wrote in message
news:4828a65e@forums-1-dub...
>I thought I had added this as an enhancement request on ISUG; but
>apparently not.
> I put this request into the futures discussion newsgoup in 2002; I'll add
> it to ISUG for visibility.
>
>
>
>
> "wong KS" <wongkingsu@gmail.com> wrote in message
> news:48284ccd@forums-1-dub...
>> why the datawindow didn't know his own name ?
>>
>>
>> M. Searer wrote:
>>> you can't get the name of the datawindow from within the datawindow.
>>>
>>>
>>> "wong KS" <wongkingsu@gmail.com> wrote in message
>>> news:4827199e@forums-1-dub...
>>>
>>>>I have a datawindow 'dw_sample' , I put a new expression in that
>>>>datawindow : "describe('datawindow.name')", but it return the result :
>>>>'datawindow', and not the name 'dw_sample'
>>>>
>>>>am I describe the wrong expression ?
>>>
>>>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-05-12 21:50:11.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <48274e33$1@forums-1-dub> <48284ccd@forums-1-dub> <4828a65e@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4828bb93@forums-1-dub>
Date: 12 May 2008 14:50:11 -0700
X-Trace: forums-1-dub 1210629011 10.22.241.152 (12 May 2008 14:50:11 -0700)
X-Original-Trace: 12 May 2008 14:50:11 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86822
Article PK: 416081

Post when you do so I can vote for it.
What would it return if the DW was created dynamically instead of from a
dataobject?

"M. Searer" <nospam@nospam.com> wrote in message
news:4828a65e@forums-1-dub...
>I thought I had added this as an enhancement request on ISUG; but
>apparently not.
> I put this request into the futures discussion newsgoup in 2002; I'll add
> it to ISUG for visibility.
>
>
>
>
> "wong KS" <wongkingsu@gmail.com> wrote in message
> news:48284ccd@forums-1-dub...
>> why the datawindow didn't know his own name ?
>>
>>
>> M. Searer wrote:
>>> you can't get the name of the datawindow from within the datawindow.
>>>
>>>
>>> "wong KS" <wongkingsu@gmail.com> wrote in message
>>> news:4827199e@forums-1-dub...
>>>
>>>>I have a datawindow 'dw_sample' , I put a new expression in that
>>>>datawindow : "describe('datawindow.name')", but it return the result :
>>>>'datawindow', and not the name 'dw_sample'
>>>>
>>>>am I describe the wrong expression ?
>>>
>>>
>


M. Searer Posted on 2008-05-13 14:54:19.0Z
From: "M. Searer" <nospam@nospam.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <48274e33$1@forums-1-dub> <48284ccd@forums-1-dub> <4828a65e@forums-1-dub> <4828bb93@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4829ab9b$1@forums-1-dub>
Date: 13 May 2008 07:54:19 -0700
X-Trace: forums-1-dub 1210690459 10.22.241.152 (13 May 2008 07:54:19 -0700)
X-Original-Trace: 13 May 2008 07:54:19 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86829
Article PK: 416088

chris approved it so I think it it there.
That is a good question -> What would it return if the DW was created
dynamically
Maybe we need the ability to name it when it is created dynamically, or else
have it generate some bland type of thing like 'dynamic_obj_123'

"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:4828bb93@forums-1-dub...
> Post when you do so I can vote for it.
> What would it return if the DW was created dynamically instead of from a
> dataobject?
>
> "M. Searer" <nospam@nospam.com> wrote in message news:4828a65e@forums-1-dub...
>>I thought I had added this as an enhancement request on ISUG; but apparently
>>not.
>> I put this request into the futures discussion newsgoup in 2002; I'll add it
>> to ISUG for visibility.
>>
>>
>>
>>
>> "wong KS" <wongkingsu@gmail.com> wrote in message
>> news:48284ccd@forums-1-dub...
>>> why the datawindow didn't know his own name ?
>>>
>>>
>>> M. Searer wrote:
>>>> you can't get the name of the datawindow from within the datawindow.
>>>>
>>>>
>>>> "wong KS" <wongkingsu@gmail.com> wrote in message
>>>> news:4827199e@forums-1-dub...
>>>>
>>>>>I have a datawindow 'dw_sample' , I put a new expression in that datawindow
>>>>>: "describe('datawindow.name')", but it return the result : 'datawindow',
>>>>>and not the name 'dw_sample'
>>>>>
>>>>>am I describe the wrong expression ?
>>>>
>>>>
>>
>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-05-13 15:10:34.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <48274e33$1@forums-1-dub> <48284ccd@forums-1-dub> <4828a65e@forums-1-dub> <4828bb93@forums-1-dub> <4829ab9b$1@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4829af6a@forums-1-dub>
Date: 13 May 2008 08:10:34 -0700
X-Trace: forums-1-dub 1210691434 10.22.241.152 (13 May 2008 08:10:34 -0700)
X-Original-Trace: 13 May 2008 08:10:34 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86830
Article PK: 416089

I don't see the DW engine keeping track of suffixes like that. Since the
major use would be for display, maybe just "Dynamic". Or an optional
argument allowing the developer to specify a name if there is no actual
dataobject, defaulting to "Dynamic".

"M. Searer" <nospam@nospam.com> wrote in message
news:4829ab9b$1@forums-1-dub...
> chris approved it so I think it it there.
> That is a good question -> What would it return if the DW was created
> dynamically
> Maybe we need the ability to name it when it is created dynamically, or
> else have it generate some bland type of thing like 'dynamic_obj_123'
>
>
>
> "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
> news:4828bb93@forums-1-dub...
>> Post when you do so I can vote for it.
>> What would it return if the DW was created dynamically instead of from a
>> dataobject?
>>
>> "M. Searer" <nospam@nospam.com> wrote in message
>> news:4828a65e@forums-1-dub...
>>>I thought I had added this as an enhancement request on ISUG; but
>>>apparently not.
>>> I put this request into the futures discussion newsgoup in 2002; I'll
>>> add it to ISUG for visibility.
>>>
>>>
>>>
>>>
>>> "wong KS" <wongkingsu@gmail.com> wrote in message
>>> news:48284ccd@forums-1-dub...
>>>> why the datawindow didn't know his own name ?
>>>>
>>>>
>>>> M. Searer wrote:
>>>>> you can't get the name of the datawindow from within the datawindow.
>>>>>
>>>>>
>>>>> "wong KS" <wongkingsu@gmail.com> wrote in message
>>>>> news:4827199e@forums-1-dub...
>>>>>
>>>>>>I have a datawindow 'dw_sample' , I put a new expression in that
>>>>>>datawindow : "describe('datawindow.name')", but it return the result :
>>>>>>'datawindow', and not the name 'dw_sample'
>>>>>>
>>>>>>am I describe the wrong expression ?
>>>>>
>>>>>
>>>
>>
>>
>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-05-12 21:53:03.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <48274e33$1@forums-1-dub> <48284ccd@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4828bc3f$1@forums-1-dub>
Date: 12 May 2008 14:53:03 -0700
X-Trace: forums-1-dub 1210629183 10.22.241.152 (12 May 2008 14:53:03 -0700)
X-Original-Trace: 12 May 2008 14:53:03 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86823
Article PK: 416082

The datawindow syntax is just a bunch of text. The logic is all in the
datawindow engine (PBDWEnn.DLL) and it apparently is not getting the
dataobject name from the PBVM.

"wong KS" <wongkingsu@gmail.com> wrote in message
news:48284ccd@forums-1-dub...
> why the datawindow didn't know his own name ?
>
>
> M. Searer wrote:
>> you can't get the name of the datawindow from within the datawindow.
>>
>>
>> "wong KS" <wongkingsu@gmail.com> wrote in message
>> news:4827199e@forums-1-dub...
>>
>>>I have a datawindow 'dw_sample' , I put a new expression in that
>>>datawindow : "describe('datawindow.name')", but it return the result :
>>>'datawindow', and not the name 'dw_sample'
>>>
>>>am I describe the wrong expression ?
>>
>>


Dave Fish [TeamSybase] Posted on 2008-05-11 23:09:36.0Z
From: "Dave Fish [TeamSybase]" <n0Spam__dfish@sybase.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: how to get the name of datawindow ?
Organization: TeamSybase
Reply-To: n0Spam__dfish@sybase.com
Message-ID: <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com>
References: <4827199e@forums-1-dub>
X-Newsreader: Forte Agent 4.2/32.1118
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 11 May 2008 16:09:36 -0700
X-Trace: forums-1-dub 1210547376 10.22.241.152 (11 May 2008 16:09:36 -0700)
X-Original-Trace: 11 May 2008 16:09:36 -0700, vip152.sybase.com
Lines: 20
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86802
Article PK: 416061

Do you want the name of the DataWindow object assigned to the
DataWindow control? Just use the dataobject property:

string ls_dw
ls_dw = dw_1.dataobject

Regards,
Dave Fish
Sybase

PowerBuilder Blog:
http://powerbuilderevangelist.blogspot.com/

On 11 May 2008 09:06:54 -0700, wong KS <wongkingsu@gmail.com> wrote:

>I have a datawindow 'dw_sample' , I put a new expression in that
>datawindow : "describe('datawindow.name')", but it return the result :
>'datawindow', and not the name 'dw_sample'
>
>am I describe the wrong expression ?


wong KS Posted on 2008-05-12 13:55:57.0Z
Message-ID: <48284C6C.1080804@gmail.com>
From: wong KS <wongkingsu@gmail.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
To: n0Spam__dfish@sybase.com
Subject: Re: how to get the name of datawindow ?
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com>
In-Reply-To: <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com>
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
Date: 12 May 2008 06:55:57 -0700
X-Trace: forums-1-dub 1210600557 10.22.241.152 (12 May 2008 06:55:57 -0700)
X-Original-Trace: 12 May 2008 06:55:57 -0700, vip152.sybase.com
Lines: 29
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86803
Article PK: 416062

no, I want to show the name of the opened datawindow itself, not from
the window that open the datawindow.

Dave Fish [TeamSybase] wrote:
> Do you want the name of the DataWindow object assigned to the
> DataWindow control? Just use the dataobject property:
>
> string ls_dw
> ls_dw = dw_1.dataobject
>
> Regards,
> Dave Fish
> Sybase
>
> PowerBuilder Blog:
> http://powerbuilderevangelist.blogspot.com/
>
> On 11 May 2008 09:06:54 -0700, wong KS <wongkingsu@gmail.com> wrote:
>
>
>>I have a datawindow 'dw_sample' , I put a new expression in that
>>datawindow : "describe('datawindow.name')", but it return the result :
>>'datawindow', and not the name 'dw_sample'
>>
>>am I describe the wrong expression ?


wong KS Posted on 2008-05-12 13:57:00.0Z
From: wong KS <wongkingsu@gmail.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: how to get the name of datawindow ?
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com>
In-Reply-To: <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com>
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: <48284cac@forums-1-dub>
Date: 12 May 2008 06:57:00 -0700
X-Trace: forums-1-dub 1210600620 10.22.241.152 (12 May 2008 06:57:00 -0700)
X-Original-Trace: 12 May 2008 06:57:00 -0700, vip152.sybase.com
Lines: 29
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86804
Article PK: 416063

no, I want to show the name of the opened datawindow itself, not from
the window that open the datawindow.

Dave Fish [TeamSybase] wrote:
> Do you want the name of the DataWindow object assigned to the
> DataWindow control? Just use the dataobject property:
>
> string ls_dw
> ls_dw = dw_1.dataobject
>
> Regards,
> Dave Fish
> Sybase
>
> PowerBuilder Blog:
> http://powerbuilderevangelist.blogspot.com/
>
> On 11 May 2008 09:06:54 -0700, wong KS <wongkingsu@gmail.com> wrote:
>
>
>>I have a datawindow 'dw_sample' , I put a new expression in that
>>datawindow : "describe('datawindow.name')", but it return the result :
>>'datawindow', and not the name 'dw_sample'
>>
>>am I describe the wrong expression ?


Philip Salgannik Posted on 2008-05-12 16:14:01.0Z
Reply-To: "Philip Salgannik" <PhilipSalgannik@work.com>
From: "Philip Salgannik" <PhilipSalgannik@work.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com> <48284cac@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 7
Organization: ATWORK
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48286cc9$1@forums-1-dub>
Date: 12 May 2008 09:14:01 -0700
X-Trace: forums-1-dub 1210608841 10.22.241.152 (12 May 2008 09:14:01 -0700)
X-Original-Trace: 12 May 2008 09:14:01 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86807
Article PK: 416065

Where do you want to show it?

"wong KS" <wongkingsu@gmail.com> wrote in message
news:48284cac@forums-1-dub...
> no, I want to show the name of the opened datawindow itself, not from the
> window that open the datawindow.


"Paul Horan[TeamSybase]" Posted on 2008-05-12 16:31:08.0Z
From: "Paul Horan[TeamSybase]" <phoran AT sybase DOT com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com> <48284cac@forums-1-dub> <48286cc9$1@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <482870cc@forums-1-dub>
Date: 12 May 2008 09:31:08 -0700
X-Trace: forums-1-dub 1210609868 10.22.241.152 (12 May 2008 09:31:08 -0700)
X-Original-Trace: 12 May 2008 09:31:08 -0700, vip152.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86809
Article PK: 416068

Having a calculated field in a datawindow that could return the dataobject
name would be a "nice to have" for support calls.

User: "The calculation in the aged receivables report is incorrect."
Support: "Look at the field in the lower right hand corner. What does it
say"
User: "r_aged_receivables_by_customer_YTD"

Paul Horan[TeamSybase]

"Philip Salgannik" <PhilipSalgannik@work.com> wrote in message
news:48286cc9$1@forums-1-dub...
> Where do you want to show it?
> "wong KS" <wongkingsu@gmail.com> wrote in message
> news:48284cac@forums-1-dub...
>> no, I want to show the name of the opened datawindow itself, not from the
>> window that open the datawindow.
>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-05-12 16:39:30.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com> <48284cac@forums-1-dub> <48286cc9$1@forums-1-dub> <482870cc@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <482872c2@forums-1-dub>
Date: 12 May 2008 09:39:30 -0700
X-Trace: forums-1-dub 1210610370 10.22.241.152 (12 May 2008 09:39:30 -0700)
X-Original-Trace: 12 May 2008 09:39:30 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86810
Article PK: 416069

I must be missing something. Why not a static text set up at design time?
Or if you want it available for support but don't want to take up real
estate, an item in the help menu could display the dataobject of the active
DW in the active window/sheet.

"Paul Horan[TeamSybase]" <phoran AT sybase DOT com> wrote in message
news:482870cc@forums-1-dub...
> Having a calculated field in a datawindow that could return the dataobject
> name would be a "nice to have" for support calls.
>
> User: "The calculation in the aged receivables report is incorrect."
> Support: "Look at the field in the lower right hand corner. What does it
> say"
> User: "r_aged_receivables_by_customer_YTD"
>
> Paul Horan[TeamSybase]
>
> "Philip Salgannik" <PhilipSalgannik@work.com> wrote in message
> news:48286cc9$1@forums-1-dub...
>> Where do you want to show it?
>> "wong KS" <wongkingsu@gmail.com> wrote in message
>> news:48284cac@forums-1-dub...
>>> no, I want to show the name of the opened datawindow itself, not from
>>> the window that open the datawindow.
>>
>>
>
>


"Paul Horan[TeamSybase]" Posted on 2008-05-12 18:22:47.0Z
From: "Paul Horan[TeamSybase]" <phoran AT sybase DOT com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com> <48284cac@forums-1-dub> <48286cc9$1@forums-1-dub> <482870cc@forums-1-dub> <482872c2@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48288af7@forums-1-dub>
Date: 12 May 2008 11:22:47 -0700
X-Trace: forums-1-dub 1210616567 10.22.241.152 (12 May 2008 11:22:47 -0700)
X-Original-Trace: 12 May 2008 11:22:47 -0700, vip152.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86816
Article PK: 416074


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:482872c2@forums-1-dub...
>I must be missing something. Why not a static text set up at design time?
> Or if you want it available for support but don't want to take up real
> estate, an item in the help menu could display the dataobject of the
> active DW in the active window/sheet.
>

Because I can take an existing report, say
"r_aged_receivables_by_customer_YTD", do a SaveAs to
"r_aged_receivables_by_customer_QTD", change it all around to do quarterly
totals, and forget to change the static text.

Now they both say the same thing, even though they're different report
objects.

-Paul-


M. Searer Posted on 2008-05-12 20:34:51.0Z
From: "M. Searer" <nospam@nospam.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com> <48284cac@forums-1-dub> <48286cc9$1@forums-1-dub> <482870cc@forums-1-dub> <482872c2@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4828a9eb$1@forums-1-dub>
Date: 12 May 2008 13:34:51 -0700
X-Trace: forums-1-dub 1210624491 10.22.241.152 (12 May 2008 13:34:51 -0700)
X-Original-Trace: 12 May 2008 13:34:51 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86819
Article PK: 416080

IMO, it is only really needed for anything that can be printed or "saved as".
As you say, a menu item can be setup to show the datawindow.

All of our reports use the static text method - every release there are
sometimes a few with the wrong name.
Plus, if a user creates a report in infomaker they rarely set the name
correctly.

"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:482872c2@forums-1-dub...
>I must be missing something. Why not a static text set up at design time?
> Or if you want it available for support but don't want to take up real estate,
> an item in the help menu could display the dataobject of the active DW in the
> active window/sheet.
>
> "Paul Horan[TeamSybase]" <phoran AT sybase DOT com> wrote in message
> news:482870cc@forums-1-dub...
>> Having a calculated field in a datawindow that could return the dataobject
>> name would be a "nice to have" for support calls.
>>
>> User: "The calculation in the aged receivables report is incorrect."
>> Support: "Look at the field in the lower right hand corner. What does it
>> say"
>> User: "r_aged_receivables_by_customer_YTD"
>>
>> Paul Horan[TeamSybase]
>>
>> "Philip Salgannik" <PhilipSalgannik@work.com> wrote in message
>> news:48286cc9$1@forums-1-dub...
>>> Where do you want to show it?
>>> "wong KS" <wongkingsu@gmail.com> wrote in message
>>> news:48284cac@forums-1-dub...
>>>> no, I want to show the name of the opened datawindow itself, not from the
>>>> window that open the datawindow.
>>>
>>>
>>
>>
>
>


Dave Fish [TeamSybase] Posted on 2008-05-12 19:35:54.0Z
From: "Dave Fish [TeamSybase]" <n0Spam__dfish@sybase.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: how to get the name of datawindow ?
Organization: TeamSybase
Reply-To: n0Spam__dfish@sybase.com
Message-ID: <uo6h245v9fc6akpnn2qvv69het893lc34j@4ax.com>
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com> <48284cac@forums-1-dub> <48286cc9$1@forums-1-dub> <482870cc@forums-1-dub>
X-Newsreader: Forte Agent 4.2/32.1118
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 12 May 2008 12:35:54 -0700
X-Trace: forums-1-dub 1210620954 10.22.241.152 (12 May 2008 12:35:54 -0700)
X-Original-Trace: 12 May 2008 12:35:54 -0700, vip152.sybase.com
Lines: 34
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86817
Article PK: 416075

You could just create a retrieval argument and pass the .dataobject
value in the retrieve function call at runtime and display that in a
computed field.

Regards,
Dave Fish
Sybase

PowerBuilder Blog:
http://powerbuilderevangelist.blogspot.com/

On 12 May 2008 09:31:08 -0700, "Paul Horan[TeamSybase]" <phoran AT

sybase DOT com> wrote:

>Having a calculated field in a datawindow that could return the dataobject
>name would be a "nice to have" for support calls.
>
>User: "The calculation in the aged receivables report is incorrect."
>Support: "Look at the field in the lower right hand corner. What does it
>say"
>User: "r_aged_receivables_by_customer_YTD"
>
>Paul Horan[TeamSybase]
>
>"Philip Salgannik" <PhilipSalgannik@work.com> wrote in message
>news:48286cc9$1@forums-1-dub...
>> Where do you want to show it?
>> "wong KS" <wongkingsu@gmail.com> wrote in message
>> news:48284cac@forums-1-dub...
>>> no, I want to show the name of the opened datawindow itself, not from the
>>> window that open the datawindow.
>>
>>
>


wong KS Posted on 2008-05-14 15:03:50.0Z
From: wong KS <wongkingsu@gmail.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: how to get the name of datawindow ?
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com> <48284cac@forums-1-dub> <48286cc9$1@forums-1-dub> <482870cc@forums-1-dub> <uo6h245v9fc6akpnn2qvv69het893lc34j@4ax.com>
In-Reply-To: <uo6h245v9fc6akpnn2qvv69het893lc34j@4ax.com>
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: <482aff56@forums-1-dub>
Date: 14 May 2008 08:03:50 -0700
X-Trace: forums-1-dub 1210777430 10.22.241.152 (14 May 2008 08:03:50 -0700)
X-Original-Trace: 14 May 2008 08:03:50 -0700, vip152.sybase.com
Lines: 48
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86839
Article PK: 416098

We are heading to an independent working object in internet technology,
that's why I think not passing too many variables to datawindow. the
datawindow should have all functions of working variables.

regards,

wong KS

Dave Fish [TeamSybase] wrote:
> You could just create a retrieval argument and pass the .dataobject
> value in the retrieve function call at runtime and display that in a
> computed field.
>
> Regards,
> Dave Fish
> Sybase
>
> PowerBuilder Blog:
> http://powerbuilderevangelist.blogspot.com/
>
> On 12 May 2008 09:31:08 -0700, "Paul Horan[TeamSybase]" <phoran AT
> sybase DOT com> wrote:
>
>
>>Having a calculated field in a datawindow that could return the dataobject
>>name would be a "nice to have" for support calls.
>>
>>User: "The calculation in the aged receivables report is incorrect."
>>Support: "Look at the field in the lower right hand corner. What does it
>>say"
>>User: "r_aged_receivables_by_customer_YTD"
>>
>>Paul Horan[TeamSybase]
>>
>>"Philip Salgannik" <PhilipSalgannik@work.com> wrote in message
>>news:48286cc9$1@forums-1-dub...
>>
>>>Where do you want to show it?
>>>"wong KS" <wongkingsu@gmail.com> wrote in message
>>>news:48284cac@forums-1-dub...
>>>
>>>>no, I want to show the name of the opened datawindow itself, not from the
>>>>window that open the datawindow.
>>>
>>>


Philip Salgannik Posted on 2008-05-12 17:47:07.0Z
Reply-To: "Philip Salgannik" <PhilipSalgannik@work.com>
From: "Philip Salgannik" <PhilipSalgannik@work.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com> <48284cac@forums-1-dub> <48286cc9$1@forums-1-dub> <482870cc@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 27
Organization: ATWORK
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4828829b$1@forums-1-dub>
Date: 12 May 2008 10:47:07 -0700
X-Trace: forums-1-dub 1210614427 10.22.241.152 (12 May 2008 10:47:07 -0700)
X-Original-Trace: 12 May 2008 10:47:07 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86814
Article PK: 416076

Will be handy for dynamically created ones too :-))))

"Paul Horan[TeamSybase]" <phoran AT sybase DOT com> wrote in message
news:482870cc@forums-1-dub...
> Having a calculated field in a datawindow that could return the dataobject
> name would be a "nice to have" for support calls.
>
> User: "The calculation in the aged receivables report is incorrect."
> Support: "Look at the field in the lower right hand corner. What does it
> say"
> User: "r_aged_receivables_by_customer_YTD"
>
> Paul Horan[TeamSybase]
>
> "Philip Salgannik" <PhilipSalgannik@work.com> wrote in message
> news:48286cc9$1@forums-1-dub...
>> Where do you want to show it?
>> "wong KS" <wongkingsu@gmail.com> wrote in message
>> news:48284cac@forums-1-dub...
>>> no, I want to show the name of the opened datawindow itself, not from
>>> the window that open the datawindow.
>>
>>
>
>


Jim Madderra Posted on 2008-05-12 21:39:16.0Z
From: "Jim Madderra" <jmadderra@astound.net>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com>
Subject: Re: how to get the name of datawindow ?
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4828b904$1@forums-1-dub>
Date: 12 May 2008 14:39:16 -0700
X-Trace: forums-1-dub 1210628356 10.22.241.152 (12 May 2008 14:39:16 -0700)
X-Original-Trace: 12 May 2008 14:39:16 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86821
Article PK: 416079

What OP wants and I concur is a datawindow function like getrow() but
instead getname() that gets the dataobject name (inside the dw). Something
I've wished were there for ages.

"Dave Fish [TeamSybase]" <n0Spam__dfish@sybase.com> wrote in message
news:t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com...
> Do you want the name of the DataWindow object assigned to the
> DataWindow control? Just use the dataobject property:
>
> string ls_dw
> ls_dw = dw_1.dataobject
>
> Regards,
> Dave Fish
> Sybase
>
> PowerBuilder Blog:
> http://powerbuilderevangelist.blogspot.com/
>
> On 11 May 2008 09:06:54 -0700, wong KS <wongkingsu@gmail.com> wrote:
>
>>I have a datawindow 'dw_sample' , I put a new expression in that
>>datawindow : "describe('datawindow.name')", but it return the result :
>>'datawindow', and not the name 'dw_sample'
>>
>>am I describe the wrong expression ?


cfauvel Posted on 2008-05-15 13:50:44.0Z
From: "cfauvel" <CFauvel@yahoo.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com> <4828b904$1@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 39
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: <482c3fb4$1@forums-1-dub>
Date: 15 May 2008 06:50:44 -0700
X-Trace: forums-1-dub 1210859444 10.22.241.152 (15 May 2008 06:50:44 -0700)
X-Original-Trace: 15 May 2008 06:50:44 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86850
Article PK: 416109

It is intersting that the DWO name isn't in the source for the dwo in
question. It appears when you export it, but not edit source...hmmm

I concur this something usefull, and probably should have shown up versions
ago.

"Jim Madderra" <jmadderra@astound.net> wrote in message
news:4828b904$1@forums-1-dub...
> What OP wants and I concur is a datawindow function like getrow() but
> instead getname() that gets the dataobject name (inside the dw).
> Something I've wished were there for ages.
>
> "Dave Fish [TeamSybase]" <n0Spam__dfish@sybase.com> wrote in message
> news:t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com...
>> Do you want the name of the DataWindow object assigned to the
>> DataWindow control? Just use the dataobject property:
>>
>> string ls_dw
>> ls_dw = dw_1.dataobject
>>
>> Regards,
>> Dave Fish
>> Sybase
>>
>> PowerBuilder Blog:
>> http://powerbuilderevangelist.blogspot.com/
>>
>> On 11 May 2008 09:06:54 -0700, wong KS <wongkingsu@gmail.com> wrote:
>>
>>>I have a datawindow 'dw_sample' , I put a new expression in that
>>>datawindow : "describe('datawindow.name')", but it return the result :
>>>'datawindow', and not the name 'dw_sample'
>>>
>>>am I describe the wrong expression ?
>
>


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-05-15 14:36:27.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4827199e@forums-1-dub> <t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com> <4828b904$1@forums-1-dub> <482c3fb4$1@forums-1-dub>
Subject: Re: how to get the name of datawindow ?
Lines: 50
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: <482c4a6b$1@forums-1-dub>
Date: 15 May 2008 07:36:27 -0700
X-Trace: forums-1-dub 1210862187 10.22.241.152 (15 May 2008 07:36:27 -0700)
X-Original-Trace: 15 May 2008 07:36:27 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86852
Article PK: 416110

It makes sense to me. The export process knows what file it is reading, but
the syntax itself is just an ASCII file - it could be copied, renamed, or
created by another process. But the DW control knows what DW object was
loaded by setting dataobject.
The PBVM would have to know what PBL the dataobject came from, so maybe that
information could be made available.

"cfauvel" <CFauvel@yahoo.com> wrote in message
news:482c3fb4$1@forums-1-dub...
> It is intersting that the DWO name isn't in the source for the dwo in
> question. It appears when you export it, but not edit source...hmmm
>
> I concur this something usefull, and probably should have shown up
> versions ago.
>
>
> "Jim Madderra" <jmadderra@astound.net> wrote in message
> news:4828b904$1@forums-1-dub...
>> What OP wants and I concur is a datawindow function like getrow() but
>> instead getname() that gets the dataobject name (inside the dw).
>> Something I've wished were there for ages.
>>
>> "Dave Fish [TeamSybase]" <n0Spam__dfish@sybase.com> wrote in message
>> news:t3ve24h97288mol0lfm5ij7mj3kjeqb7a0@4ax.com...
>>> Do you want the name of the DataWindow object assigned to the
>>> DataWindow control? Just use the dataobject property:
>>>
>>> string ls_dw
>>> ls_dw = dw_1.dataobject
>>>
>>> Regards,
>>> Dave Fish
>>> Sybase
>>>
>>> PowerBuilder Blog:
>>> http://powerbuilderevangelist.blogspot.com/
>>>
>>> On 11 May 2008 09:06:54 -0700, wong KS <wongkingsu@gmail.com> wrote:
>>>
>>>>I have a datawindow 'dw_sample' , I put a new expression in that
>>>>datawindow : "describe('datawindow.name')", but it return the result :
>>>>'datawindow', and not the name 'dw_sample'
>>>>
>>>>am I describe the wrong expression ?
>>
>>
>
>


Dave Fish [TeamSybase] Posted on 2008-05-16 13:27:37.0Z
From: "Dave Fish [TeamSybase]" <n0Spam__dfish@sybase.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: how to get the name of datawindow ?
Organization: TeamSybase
Reply-To: n0Spam__dfish@sybase.com
Message-ID: <vq2r241k7kedn6i0m104ec39cfiq5f92ci@4ax.com>
References: <4827199e@forums-1-dub>
X-Newsreader: Forte Agent 4.2/32.1118
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 16 May 2008 06:27:37 -0700
X-Trace: forums-1-dub 1210944457 10.22.241.152 (16 May 2008 06:27:37 -0700)
X-Original-Trace: 16 May 2008 06:27:37 -0700, vip152.sybase.com
Lines: 20
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86872
Article PK: 416129

A new expression function will be added to return the DataWindow name
for the new WPF DataWindow in PowerBuilder 12.

I don't know yet if this will be added to the current native
DataWindow for 11.5.

Regards,
Dave Fish
Sybase

PowerBuilder Blog:
http://powerbuilderevangelist.blogspot.com/

On 11 May 2008 09:06:54 -0700, wong KS <wongkingsu@gmail.com> wrote:

>I have a datawindow 'dw_sample' , I put a new expression in that
>datawindow : "describe('datawindow.name')", but it return the result :
>'datawindow', and not the name 'dw_sample'
>
>am I describe the wrong expression ?