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.

TreeView, InsertRow

3 posts in DataWindow Last posting was on 2009-12-03 08:50:44.0Z
Anja Carsten Posted on 2009-11-26 09:05:52.0Z
Reply-To: "Anja Carsten" <carsten@sanivision.de>
From: "Anja Carsten" <carsten@sanivision.de>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: TreeView, InsertRow
Lines: 35
Organization: SIC SaniVision consulting GmbH
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4b0e44f0$1@forums-1-dub>
Date: 26 Nov 2009 01:05:52 -0800
X-Trace: forums-1-dub 1259226352 10.22.241.152 (26 Nov 2009 01:05:52 -0800)
X-Original-Trace: 26 Nov 2009 01:05:52 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90345
Article PK: 409950

Hello all,

I have an TreeView datawindow, source external. I try to insert new rows in
the datawindow. This works, but the treeview appearance does not meet my
expectations.

When I insert three lines with
ll_newrow = dw_produktliste.InsertRow(0)
dw_produktliste.SetItem(ll_newrow, ...)
with values
group1, product1
group1, product 2
group2, product 3

I expect a treeview like this:
group 1 <-- first treeview level
product 1 <- second treeview level
product 2
group 2
product 3

Unfortunately this result is:
group1
product 1
product 2
product 3

The data is correct - there is group 2 for product 3.
Is there any refresh display function or something similar for treeview
datawindows? (I work with PB11.2 webforms, thus pfc will not help)

thanks and best regards
Anja


Chris Pollach Posted on 2009-11-26 12:53:01.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4b0e44f0$1@forums-1-dub>
Subject: Re: TreeView, InsertRow
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4b0e7a2d@forums-1-dub>
Date: 26 Nov 2009 04:53:01 -0800
X-Trace: forums-1-dub 1259239981 10.22.241.152 (26 Nov 2009 04:53:01 -0800)
X-Original-Trace: 26 Nov 2009 04:53:01 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90348
Article PK: 409952

HI Anja;

After the InsertRow () commands ... have you tried using either a Sort
( ) or GroupCalc ( ) command?

--
Regards ... Chris
ISUG - NA RUG Director
Blog: http://chrispollach.pbdjmagazine.com
SourceForge: http://sourceforge.net/projects/stdfndclass

"Anja Carsten" <carsten@sanivision.de> wrote in message
news:4b0e44f0$1@forums-1-dub...
> Hello all,
>
> I have an TreeView datawindow, source external. I try to insert new rows
> in the datawindow. This works, but the treeview appearance does not meet
> my expectations.
>
> When I insert three lines with
> ll_newrow = dw_produktliste.InsertRow(0)
> dw_produktliste.SetItem(ll_newrow, ...)
> with values
> group1, product1
> group1, product 2
> group2, product 3
>
> I expect a treeview like this:
> group 1 <-- first treeview level
> product 1 <- second treeview level
> product 2
> group 2
> product 3
>
> Unfortunately this result is:
> group1
> product 1
> product 2
> product 3
>
> The data is correct - there is group 2 for product 3.
> Is there any refresh display function or something similar for treeview
> datawindows? (I work with PB11.2 webforms, thus pfc will not help)
>
> thanks and best regards
> Anja
>


Anja Carsten Posted on 2009-12-03 08:50:44.0Z
Reply-To: "Anja Carsten" <carsten@sanivision.de>
From: "Anja Carsten" <carsten@sanivision.de>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4b0e44f0$1@forums-1-dub> <4b0e7a2d@forums-1-dub>
Subject: Re: TreeView, InsertRow
Lines: 62
Organization: SIC SaniVision consulting GmbH
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4b177be4$1@forums-1-dub>
Date: 3 Dec 2009 00:50:44 -0800
X-Trace: forums-1-dub 1259830244 10.22.241.152 (3 Dec 2009 00:50:44 -0800)
X-Original-Trace: 3 Dec 2009 00:50:44 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90390
Article PK: 409999

I've tried
ll_newrow_temp = dw_produktliste.InsertRow(0)
dw_produktliste.DeleteRow(ll_newrow_temp)
That works fine.

But GroupCalc() seems to be much better.
Thank's !

"Chris Pollach" <cpollach@travel-net.com> schrieb im Newsbeitrag
news:4b0e7a2d@forums-1-dub...

> HI Anja;
>
> After the InsertRow () commands ... have you tried using either a Sort
> ( ) or GroupCalc ( ) command?
>
> --
> Regards ... Chris
> ISUG - NA RUG Director
> Blog: http://chrispollach.pbdjmagazine.com
> SourceForge: http://sourceforge.net/projects/stdfndclass
>
>
> "Anja Carsten" <carsten@sanivision.de> wrote in message
> news:4b0e44f0$1@forums-1-dub...
>> Hello all,
>>
>> I have an TreeView datawindow, source external. I try to insert new rows
>> in the datawindow. This works, but the treeview appearance does not meet
>> my expectations.
>>
>> When I insert three lines with
>> ll_newrow = dw_produktliste.InsertRow(0)
>> dw_produktliste.SetItem(ll_newrow, ...)
>> with values
>> group1, product1
>> group1, product 2
>> group2, product 3
>>
>> I expect a treeview like this:
>> group 1 <-- first treeview level
>> product 1 <- second treeview level
>> product 2
>> group 2
>> product 3
>>
>> Unfortunately this result is:
>> group1
>> product 1
>> product 2
>> product 3
>>
>> The data is correct - there is group 2 for product 3.
>> Is there any refresh display function or something similar for treeview
>> datawindows? (I work with PB11.2 webforms, thus pfc will not help)
>>
>> thanks and best regards
>> Anja
>>
>
>