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.

Dynamic Datawindow / Datastore

4 posts in DataWindow Last posting was on 2009-01-22 23:10:50.0Z
Francisco Posted on 2009-01-22 11:03:05.0Z
Sender: 1b72.49784bb1.1804289383@sybase.com
From: Francisco
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Dynamic Datawindow / Datastore
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49785269.1c3f.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 22 Jan 2009 03:03:05 -0800
X-Trace: forums-1-dub 1232622185 10.22.241.41 (22 Jan 2009 03:03:05 -0800)
X-Original-Trace: 22 Jan 2009 03:03:05 -0800, 10.22.241.41
Lines: 9
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88654
Article PK: 417909

Hello all!

Is there any way to create a dynamic datawindow? For
example, to have a function that receives a structure and,
based on the structure fields, create the DW columns
dynamically??

Thank you,
Francisco


Francisco Posted on 2009-01-22 11:13:02.0Z
Sender: 1b72.49784bb1.1804289383@sybase.com
From: Francisco
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Dynamic Datawindow / Datastore
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <497854be.1c7a.1681692777@sybase.com>
References: <49785269.1c3f.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 22 Jan 2009 03:13:02 -0800
X-Trace: forums-1-dub 1232622782 10.22.241.41 (22 Jan 2009 03:13:02 -0800)
X-Original-Trace: 22 Jan 2009 03:13:02 -0800, 10.22.241.41
Lines: 21
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88655
Article PK: 417908

Ooooops....

There are some times in life that is better to keep the
mouth shut (well, in this case, keep the hands away from the
keyboard in this forum) :-)

I've found dw.Modify(create column...........

Sorry!

> Hello all!
>
> Is there any way to create a dynamic datawindow? For
> example, to have a function that receives a structure and,
> based on the structure fields, create the DW columns
> dynamically??
>
> Thank you,
> Francisco


"Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_ Posted on 2009-01-22 15:11:22.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <NO_SPAMMING_jason.fenter_@_teamsybase.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Dynamic Datawindow / Datastore
References: <49785269.1c3f.1681692777@sybase.com> <497854be.1c7a.1681692777@sybase.com>
In-Reply-To: <497854be.1c7a.1681692777@sybase.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: <49788c9a$1@forums-1-dub>
Date: 22 Jan 2009 07:11:22 -0800
X-Trace: forums-1-dub 1232637082 10.22.241.152 (22 Jan 2009 07:11:22 -0800)
X-Original-Trace: 22 Jan 2009 07:11:22 -0800, vip152.sybase.com
Lines: 34
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88659
Article PK: 417913

Just in case you didn't know about it, click on "File" -> "New..." and
click on the "Tools" tab. There you'll find the dwSyntax utility with
syntax on modifying, creating, and destroying all kinds of datawindow
objects. The tool is so handy, I've put it on my toolbar with a custom
command of:
wizard:?action=runonly&entry=k60_dwsyntax_sheet


(Thanks go to Terry Dykstra for discovering that command!)

Francisco wrote:
> Ooooops....
>
> There are some times in life that is better to keep the
> mouth shut (well, in this case, keep the hands away from the
> keyboard in this forum) :-)
>
> I've found dw.Modify(create column...........
>
> Sorry!
>
>
>
>> Hello all!
>>
>> Is there any way to create a dynamic datawindow? For
>> example, to have a function that receives a structure and,
>> based on the structure fields, create the DW columns
>> dynamically??
>>
>> Thank you,
>> Francisco


Jeremy Lakeman Posted on 2009-01-22 23:10:50.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Dynamic Datawindow / Datastore
Date: Thu, 22 Jan 2009 15:10:50 -0800 (PST)
Organization: http://groups.google.com
Lines: 27
Message-ID: <4c84dfe5-1ded-4a3e-8608-bd455a54354d@o40g2000prn.googlegroups.com>
References: <49785269.1c3f.1681692777@sybase.com> <497854be.1c7a.1681692777@sybase.com>
NNTP-Posting-Host: 60.242.122.196
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1232665850 15433 127.0.0.1 (22 Jan 2009 23:10:50 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 22 Jan 2009 23:10:50 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: o40g2000prn.googlegroups.com; posting-host=60.242.122.196; 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.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 fly.essential.com.au:3128 (squid/2.5.STABLE8), 1.0 sydsquid07.bravurasolutions.local:3128 (squid/2.7.STABLE3)
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!newsfeed.news2me.com!news.glorb.com!postnews.google.com!o40g2000prn.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:88662
Article PK: 417915


On Jan 22, 9:13 pm, Francisco wrote:
> Ooooops....
>
> There are some times in life that is better to keep the
> mouth shut (well, in this case, keep the hands away from the
> keyboard in this forum) :-)
>
> I've found  dw.Modify(create column...........
>
> Sorry!
>
> > Hello all!
>
> > Is there any way to create a dynamic datawindow? For
> > example, to have a function that receives a structure and,
> > based on the structure fields, create the DW columns
> > dynamically??
>
> > Thank you,
> > Francisco

You may also wish to look at;
lc = lstr_foo.classdefinition
for ll_i ...
... lc.variablelist[ll_i].name
... lc.variablelist[ll_i].typeinfo.datatypeof