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.

Reference DWO OBJECT Datawiwndow

5 posts in DataWindow Last posting was on 2008-04-29 20:01:44.0Z
Raúl Gil Posted on 2008-04-28 17:13:49.0Z
Message-ID: <4816054C.7050405@hotmail.com>
From: =?ISO-8859-1?Q?Ra=FAl_Gil?= <gl_ra@hotmail.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-gb, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
CC: emontalvan@gruponuevomundo.com.pe
Subject: Reference DWO OBJECT Datawiwndow
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 28 Apr 2008 10:13:49 -0700
X-Trace: forums-1-dub 1209402829 10.22.241.152 (28 Apr 2008 10:13:49 -0700)
X-Original-Trace: 28 Apr 2008 10:13:49 -0700, vip152.sybase.com
Lines: 30
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86721
Article PK: 415980

Hi Friends, my new problem is:


I have only the name of the datawindow object ( is a column of
datawindow), and i need trigger event itemchanged..but i dont know how...!!

See this script:

//// this is my list of values.. this list can change
as_fields[1] = 'SGL'
as_fields[2] = 'DBL'
as_fields[3] = 'TPL'
as_fields[4] = 'QUA'


////This is a process in n_fares
For li_row = 1 to li_rows
For li_field = 1 to li_fields
......adw_fares.SetItem(al_row_selecteds[li_row],as_fields[li_field],ldc_new_fare)
/////in this line i need send event itemchanged ( in itemchanged event
/////datawiwndow i have a process of recalculate)
......adw_tarifas.itemchanged(al_row_selecteds[li_row],¿?¿?¿?¿?¿?,String(ldc_new_fare))
///////////the third argument how obtain????????
Next
Next


I hope that I understand!!!!
Very Thanks at all!!!!


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-04-28 17:27:37.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4816054C.7050405@hotmail.com>
Subject: Re: Reference DWO OBJECT Datawiwndow
Lines: 38
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: <48160909$1@forums-1-dub>
Date: 28 Apr 2008 10:27:37 -0700
X-Trace: forums-1-dub 1209403657 10.22.241.152 (28 Apr 2008 10:27:37 -0700)
X-Original-Trace: 28 Apr 2008 10:27:37 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86722
Article PK: 415982

It would be better OO practice to refactor the itemchanged code into a new
method (user event or function) and then call that from both the itemchanged
event and your code.

"Raúl Gil" <gl_ra@hotmail.com> wrote in message
news:4816054C.7050405@hotmail.com...
> Hi Friends, my new problem is:
>
>
> I have only the name of the datawindow object ( is a column of
> datawindow), and i need trigger event itemchanged..but i dont know
> how...!!
>
> See this script:
>
> //// this is my list of values.. this list can change
> as_fields[1] = 'SGL'
> as_fields[2] = 'DBL'
> as_fields[3] = 'TPL'
> as_fields[4] = 'QUA'
>
>
> ////This is a process in n_fares
> For li_row = 1 to li_rows
> For li_field = 1 to li_fields
> ......adw_fares.SetItem(al_row_selecteds[li_row],as_fields[li_field],ldc_new_fare)
> /////in this line i need send event itemchanged ( in itemchanged event
> /////datawiwndow i have a process of recalculate)
> ......adw_tarifas.itemchanged(al_row_selecteds[li_row],¿?¿?¿?¿?¿?,String(ldc_new_fare))
> ///////////the third argument how obtain????????
> Next
> Next
>
> I hope that I understand!!!!
> Very Thanks at all!!!!
>


Raúl Gil Posted on 2008-04-28 17:46:28.0Z
Message-ID: <48160CF3.6000903@hotmail.com>
From: =?ISO-8859-1?Q?Ra=FAl_Gil?= <gl_ra@hotmail.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-gb, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Reference DWO OBJECT Datawiwndow
References: <4816054C.7050405@hotmail.com> <48160909$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 28 Apr 2008 10:46:28 -0700
X-Trace: forums-1-dub 1209404788 10.22.241.152 (28 Apr 2008 10:46:28 -0700)
X-Original-Trace: 28 Apr 2008 10:46:28 -0700, vip152.sybase.com
Lines: 49
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86723
Article PK: 415981

HI!!!!!

Ok. i will try it!!!!!!!

Very thanks Steven Siegel

Jerry Siegel [TeamSybase] wrote:
> It would be better OO practice to refactor the itemchanged code into a new
> method (user event or function) and then call that from both the itemchanged
> event and your code.
>
> "Raúl Gil" <gl_ra@hotmail.com> wrote in message
> news:4816054C.7050405@hotmail.com...
>
>>Hi Friends, my new problem is:
>>
>>
>>I have only the name of the datawindow object ( is a column of
>>datawindow), and i need trigger event itemchanged..but i dont know
>>how...!!
>>
>>See this script:
>>
>>//// this is my list of values.. this list can change
>>as_fields[1] = 'SGL'
>>as_fields[2] = 'DBL'
>>as_fields[3] = 'TPL'
>>as_fields[4] = 'QUA'
>>
>>
>>////This is a process in n_fares
>>For li_row = 1 to li_rows
>> For li_field = 1 to li_fields
>>......adw_fares.SetItem(al_row_selecteds[li_row],as_fields[li_field],ldc_new_fare)
>>/////in this line i need send event itemchanged ( in itemchanged event
>>/////datawiwndow i have a process of recalculate)
>>......adw_tarifas.itemchanged(al_row_selecteds[li_row],¿?¿?¿?¿?¿?,String(ldc_new_fare))
>>///////////the third argument how obtain????????
>> Next
>>Next
>>
>>I hope that I understand!!!!
>>Very Thanks at all!!!!
>>
>
>
>


Jeremy Lakeman Posted on 2008-04-29 01:26:19.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Reference DWO OBJECT Datawiwndow
Date: Mon, 28 Apr 2008 18:26:19 -0700 (PDT)
Organization: http://groups.google.com
Lines: 61
Message-ID: <3c4d4538-3803-4e39-bc1b-24205d019d35@d1g2000hsg.googlegroups.com>
References: <4816054C.7050405@hotmail.com> <48160909$1@forums-1-dub> <48160CF3.6000903@hotmail.com>
NNTP-Posting-Host: 203.122.242.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1209432381 30438 127.0.0.1 (29 Apr 2008 01:26:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 29 Apr 2008 01:26:21 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: d1g2000hsg.googlegroups.com; posting-host=203.122.242.105; posting-account=euaBtgoAAAC_vDxfsxmpMKlBxHaHpmRS
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 asp.essential.intranet:3128 (squid/2.5.STABLE8)
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!d1g2000hsg.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86738
Article PK: 415997

But it is still possible...

dwobject ldwo

ldwo = dw_1.object.column_name

is equivalent to;

ldwo = dw_1.object.__get_attribute(ls_column_name, false)

[insert disclaimer about using features of PB that are undocumented,
unsupported, and may change in future versions]

On Apr 29, 2:46 am, Raúl Gil <gl...@hotmail.com> wrote:
> HI!!!!!
>
> Ok. i will try it!!!!!!!
>
> Very thanks Steven Siegel
>
> Jerry Siegel [TeamSybase] wrote:
> > It would be better OO practice to refactor the itemchanged code into a new
> > method (user event or function) and then call that from both the itemchanged
> > event and your code.
>
> > "Raúl Gil" <gl...@hotmail.com> wrote in message
> >news:4816054C.7050405@hotmail.com...
>
> >>Hi Friends, my new problem is:
>
> >>I have only the name of the datawindow object ( is a column of
> >>datawindow), and i need trigger event itemchanged..but i dont know
> >>how...!!
>
> >>See this script:
>
> >>//// this is my list of values.. this list can change
> >>as_fields[1] = 'SGL'
> >>as_fields[2] = 'DBL'
> >>as_fields[3] = 'TPL'
> >>as_fields[4] = 'QUA'
>
> >>////This is a process in n_fares
> >>For li_row = 1 to li_rows
> >> For li_field = 1 to li_fields
> >>......adw_fares.SetItem(al_row_selecteds[li_row],as_fields[li_field],ldc_new_fare)
> >>/////in this line i need send event itemchanged ( in itemchanged event
> >>/////datawiwndow i have a process of recalculate)
> >>......adw_tarifas.itemchanged(al_row_selecteds[li_row],¿?¿?¿?¿?¿?,String(ldc_new_fare))
> >>///////////the third argument how obtain????????
> >> Next
> >>Next
>
> >>I hope that I understand!!!!
> >>Very Thanks at all!!!!


Raúl Gil Posted on 2008-04-29 20:01:44.0Z
Message-ID: <48177E89.4010505@hotmail.com>
From: =?ISO-8859-1?Q?Ra=FAl_Gil?= <gl_ra@hotmail.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-gb, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Reference DWO OBJECT Datawiwndow
References: <4816054C.7050405@hotmail.com> <48160909$1@forums-1-dub> <48160CF3.6000903@hotmail.com> <3c4d4538-3803-4e39-bc1b-24205d019d35@d1g2000hsg.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 29 Apr 2008 13:01:44 -0700
X-Trace: forums-1-dub 1209499304 10.22.241.152 (29 Apr 2008 13:01:44 -0700)
X-Original-Trace: 29 Apr 2008 13:01:44 -0700, vip152.sybase.com
Lines: 68
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86748
Article PK: 416010

Ohhh yes!!! Cool!!!!

This is a nice option!!!

i will try it!!!!!!!

Jeremy Lakeman wrote:
> But it is still possible...
>
> dwobject ldwo
>
> ldwo = dw_1.object.column_name
>
> is equivalent to;
>
> ldwo = dw_1.object.__get_attribute(ls_column_name, false)
>
> [insert disclaimer about using features of PB that are undocumented,
> unsupported, and may change in future versions]
>
>
> On Apr 29, 2:46 am, Raúl Gil <gl...@hotmail.com> wrote:
>
>>HI!!!!!
>>
>>Ok. i will try it!!!!!!!
>>
>>Very thanks Steven Siegel
>>
>>Jerry Siegel [TeamSybase] wrote:
>>
>>>It would be better OO practice to refactor the itemchanged code into a new
>>>method (user event or function) and then call that from both the itemchanged
>>>event and your code.
>>
>>>"Raúl Gil" <gl...@hotmail.com> wrote in message
>>>news:4816054C.7050405@hotmail.com...
>>
>>>>Hi Friends, my new problem is:
>>>
>>>>I have only the name of the datawindow object ( is a column of
>>>>datawindow), and i need trigger event itemchanged..but i dont know
>>>>how...!!
>>>
>>>>See this script:
>>>
>>>>//// this is my list of values.. this list can change
>>>>as_fields[1] = 'SGL'
>>>>as_fields[2] = 'DBL'
>>>>as_fields[3] = 'TPL'
>>>>as_fields[4] = 'QUA'
>>>
>>>>////This is a process in n_fares
>>>>For li_row = 1 to li_rows
>>>> For li_field = 1 to li_fields
>>>>......adw_fares.SetItem(al_row_selecteds[li_row],as_fields[li_field],ldc_new_fare)
>>>>/////in this line i need send event itemchanged ( in itemchanged event
>>>>/////datawiwndow i have a process of recalculate)
>>>>......adw_tarifas.itemchanged(al_row_selecteds[li_row],¿?¿?¿?¿?¿?,String(ldc_new_fare))
>>>>///////////the third argument how obtain????????
>>>> Next
>>>>Next
>>>
>>>>I hope that I understand!!!!
>>>>Very Thanks at all!!!!
>>>
>