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.

PB 11.5 SetTransObject for child dw fails

4 posts in DataWindow Last posting was on 2009-04-07 13:42:45.0Z
Lane Posted on 2009-04-07 12:51:58.0Z
Sender: 6e86.49db4778.1804289383@sybase.com
From: Lane
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: PB 11.5 SetTransObject for child dw fails
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49db4c6e.6f10.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 7 Apr 2009 05:51:58 -0700
X-Trace: forums-1-dub 1239108718 10.22.241.41 (7 Apr 2009 05:51:58 -0700)
X-Original-Trace: 7 Apr 2009 05:51:58 -0700, 10.22.241.41
Lines: 25
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89122
Article PK: 418375

Why does setTransObject fail?

I have a PB 10.0 application that functions without any
problems. I have migrated to PB 11.5 and the application
runs
fine from the PB 11.5 IDE and debug does not give any errors
but when I build an exe and run the application, I get an
error
on SetTransObject for child datawindow. The return from
SetTransObject gives -1.

These are the two lines of code involved:
li_rtncode = dw_detail.GetChild("software_rev",
ldwc_software_rev)
li_rtncode = ldwc_software_rev.SetTransObject(SQLCA)

Again, this code runs with no problem as an exe compiled
with
PB 10.0 and runs with no problem in the IDE environment of
PB
11.5 but gives the SetTransObject error when ran as an exe
compiled with PB 11.5.

Thanks,
Lane


Chris Pollach Posted on 2009-04-07 13:09:06.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49db4c6e.6f10.1681692777@sybase.com>
Subject: Re: PB 11.5 SetTransObject for child dw fails
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
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: <49db5072$1@forums-1-dub>
Date: 7 Apr 2009 06:09:06 -0700
X-Trace: forums-1-dub 1239109746 10.22.241.152 (7 Apr 2009 06:09:06 -0700)
X-Original-Trace: 7 Apr 2009 06:09:06 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89125
Article PK: 418377

Hi Lane;

It could be that the child DWO is missing from the deployment.
Did you include the PBL with the child DWO(s) in the EXE compilation as a
PBD/DLL?

--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com

<Lane> wrote in message news:49db4c6e.6f10.1681692777@sybase.com...
> Why does setTransObject fail?
>
> I have a PB 10.0 application that functions without any
> problems. I have migrated to PB 11.5 and the application
> runs
> fine from the PB 11.5 IDE and debug does not give any errors
> but when I build an exe and run the application, I get an
> error
> on SetTransObject for child datawindow. The return from
> SetTransObject gives -1.
>
> These are the two lines of code involved:
> li_rtncode = dw_detail.GetChild("software_rev",
> ldwc_software_rev)
> li_rtncode = ldwc_software_rev.SetTransObject(SQLCA)
>
> Again, this code runs with no problem as an exe compiled
> with
> PB 10.0 and runs with no problem in the IDE environment of
> PB
> 11.5 but gives the SetTransObject error when ran as an exe
> compiled with PB 11.5.
>
> Thanks,
> Lane


Lane Posted on 2009-04-07 13:32:30.0Z
Sender: 6e86.49db4778.1804289383@sybase.com
From: Lane
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: (Problem Solved) PB 11.5 SetTransObject for child dw fails
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49db55ee.6ff2.1681692777@sybase.com>
References: <49db5072$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 7 Apr 2009 06:32:30 -0700
X-Trace: forums-1-dub 1239111150 10.22.241.41 (7 Apr 2009 06:32:30 -0700)
X-Original-Trace: 7 Apr 2009 06:32:30 -0700, 10.22.241.41
Lines: 56
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89126
Article PK: 418378

Chris,

Thanks, that was my problem. In the project object on the
Libraries tab, I forgot to check the checkbox for PBD on the
last library in my list which is the library in which the
missing dw was located. I somehow over looked the scrollbar
in
the library list. That one library was outside the current
view. Once I scrolled down I could see it and checked the
checkbox. Now it works fine. PB 10.0 displayed all my
libraries
without scrolling, so that is why I missed it.

Thanks,
Lane

> Hi Lane;
>
> It could be that the child DWO is missing from the
> deployment. Did you include the PBL with the child DWO(s)
> in the EXE compilation as a PBD/DLL?
>
> --
> Regards ... Chris
> ISUG - NA RUG Director
> http://chrispollach.pbdjmagazine.com
>
>
> <Lane> wrote in message
> > news:49db4c6e.6f10.1681692777@sybase.com... Why does
> setTransObject fail? >
> > I have a PB 10.0 application that functions without any
> > problems. I have migrated to PB 11.5 and the application
> > runs
> > fine from the PB 11.5 IDE and debug does not give any
> > errors but when I build an exe and run the application,
> > I get an error
> > on SetTransObject for child datawindow. The return from
> > SetTransObject gives -1.
> >
> > These are the two lines of code involved:
> > li_rtncode = dw_detail.GetChild("software_rev",
> > ldwc_software_rev)
> > li_rtncode = ldwc_software_rev.SetTransObject(SQLCA)
> >
> > Again, this code runs with no problem as an exe compiled
> > with
> > PB 10.0 and runs with no problem in the IDE environment
> > of PB
> > 11.5 but gives the SetTransObject error when ran as an
> > exe compiled with PB 11.5.
> >
> > Thanks,
> > Lane
>
>


Chris Pollach Posted on 2009-04-07 13:42:45.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49db5072$1@forums-1-dub> <49db55ee.6ff2.1681692777@sybase.com>
Subject: Re: (Problem Solved) PB 11.5 SetTransObject for child dw fails
Lines: 64
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
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: <49db5855$1@forums-1-dub>
Date: 7 Apr 2009 06:42:45 -0700
X-Trace: forums-1-dub 1239111765 10.22.241.152 (7 Apr 2009 06:42:45 -0700)
X-Original-Trace: 7 Apr 2009 06:42:45 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89127
Article PK: 418379

Excellent news! :-)

<Lane> wrote in message news:49db55ee.6ff2.1681692777@sybase.com...
> Chris,
>
> Thanks, that was my problem. In the project object on the
> Libraries tab, I forgot to check the checkbox for PBD on the
> last library in my list which is the library in which the
> missing dw was located. I somehow over looked the scrollbar
> in
> the library list. That one library was outside the current
> view. Once I scrolled down I could see it and checked the
> checkbox. Now it works fine. PB 10.0 displayed all my
> libraries
> without scrolling, so that is why I missed it.
>
> Thanks,
> Lane
>
>> Hi Lane;
>>
>> It could be that the child DWO is missing from the
>> deployment. Did you include the PBL with the child DWO(s)
>> in the EXE compilation as a PBD/DLL?
>>
>> --
>> Regards ... Chris
>> ISUG - NA RUG Director
>> http://chrispollach.pbdjmagazine.com
>>
>>
>> <Lane> wrote in message
>> > news:49db4c6e.6f10.1681692777@sybase.com... Why does
>> setTransObject fail? >
>> > I have a PB 10.0 application that functions without any
>> > problems. I have migrated to PB 11.5 and the application
>> > runs
>> > fine from the PB 11.5 IDE and debug does not give any
>> > errors but when I build an exe and run the application,
>> > I get an error
>> > on SetTransObject for child datawindow. The return from
>> > SetTransObject gives -1.
>> >
>> > These are the two lines of code involved:
>> > li_rtncode = dw_detail.GetChild("software_rev",
>> > ldwc_software_rev)
>> > li_rtncode = ldwc_software_rev.SetTransObject(SQLCA)
>> >
>> > Again, this code runs with no problem as an exe compiled
>> > with
>> > PB 10.0 and runs with no problem in the IDE environment
>> > of PB
>> > 11.5 but gives the SetTransObject error when ran as an
>> > exe compiled with PB 11.5.
>> >
>> > Thanks,
>> > Lane
>>
>>