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.

Runtime Datawindow Assignment

10 posts in Pocket PowerBuilder Last posting was on 2003-10-07 19:30:04.0Z
John Owens Posted on 2003-10-06 18:46:00.0Z
Reply-To: "John Owens" <j.owens@stanelyassociates.com>
From: "John Owens" <j.owens@stanleyassociates.com>
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Runtime Datawindow Assignment
Lines: 14
Organization: Stanley Associates
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Original-NNTP-Posting-Host: 12.172.51.130
Message-ID: <3f81b92b@forums-2-dub>
X-Original-Trace: 6 Oct 2003 11:49:15 -0700, 12.172.51.130
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 6 Oct 2003 11:40:37 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 6 Oct 2003 11:46:00 -0700
X-Trace: forums-1-dub 1065465960 10.22.108.75 (6 Oct 2003 11:46:00 -0700)
X-Original-Trace: 6 Oct 2003 11:46:00 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:723
Article PK: 267255

I have a custom visual userobject that contains an empty datawindow.
Dependant on a CASE statement, the one out of four external datawindows are
displayed in the "viewscreen" section of the user object.

I am using the code: dw_sheet.dataobject = 'd_some_datawindow'

To dynamically assign this datawindow. Afterwords the fields are populated.

When putting this application to use, the system crashes doing this. Is
this a PPB flaw or do I need to be going about this a different way?

John Owens


Bruce Armstrong [TeamSybase] Posted on 2003-10-06 19:06:20.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f81b92b@forums-2-dub>
Subject: Re: Runtime Datawindow Assignment
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 141.102.144.53
Message-ID: <3f81bdee$1@forums-2-dub>
X-Original-Trace: 6 Oct 2003 12:09:34 -0700, 141.102.144.53
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 6 Oct 2003 12:00:56 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 6 Oct 2003 12:06:20 -0700
X-Trace: forums-1-dub 1065467180 10.22.108.75 (6 Oct 2003 12:06:20 -0700)
X-Original-Trace: 6 Oct 2003 12:06:20 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:726
Article PK: 267260

Make sure you compile the library that the datawindows are in into a PBD (or
is it PKD?). Otherwise, the datawindow won't get deployed because the
compiler won't think it's referenced.

--
Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

ISUG Enhancement Requests
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org

"John Owens" <j.owens@stanleyassociates.com> wrote in message
news:3f81b92b@forums-2-dub...
> I have a custom visual userobject that contains an empty datawindow.
> Dependant on a CASE statement, the one out of four external datawindows
are
> displayed in the "viewscreen" section of the user object.
>
> I am using the code: dw_sheet.dataobject = 'd_some_datawindow'
>
> To dynamically assign this datawindow. Afterwords the fields are
populated.
>
> When putting this application to use, the system crashes doing this. Is
> this a PPB flaw or do I need to be going about this a different way?
>
> John Owens
>
>


John Owens Posted on 2003-10-06 20:56:16.0Z
Reply-To: "John Owens" <j.owens@stanelyassociates.com>
From: "John Owens" <j.owens@stanleyassociates.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f81b92b@forums-2-dub> <3f81bdee$1@forums-2-dub>
Subject: Re: Runtime Datawindow Assignment
Lines: 68
Organization: Stanley Associates
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 12.172.51.130
X-Original-NNTP-Posting-Host: 12.172.51.130
Message-ID: <3f81d6f0$1@forums-1-dub>
Date: 6 Oct 2003 13:56:16 -0700
X-Trace: forums-1-dub 1065473776 12.172.51.130 (6 Oct 2003 13:56:16 -0700)
X-Original-Trace: 6 Oct 2003 13:56:16 -0700, 12.172.51.130
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:732
Article PK: 268035

I did, so far there are only two datawindows, both are external. Depending
on the barcode i scan, i want to show one dataset or another. The
"assignment" part has no problems. It sets the transaction, assigns the
datawindow just fine, but nothing shows up. When I call an insertrow so
that I can call dw_sheet.SetItem statements, it kicks me out of the app. So
far all objects are in the single.PKL library.

visual object uo_barcode_scan
imbedded datawindow dw_sheet

Based off of the barcode type, program either displays 'd_equip_scan' or
'd_msl_scan'

A better example:
dw_sheet.dataobject = 'd_equip_scan'
dw_sheet.SetTransObject( SQLCA )
l_row = dw_sheet.InsertRow(0)
dw_sheet.SetItem( l_row, "barcode_type", s_barcode_type)

John Owens

"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>

wrote in message news:3f81bdee$1@forums-2-dub...
> Make sure you compile the library that the datawindows are in into a PBD
(or
> is it PKD?). Otherwise, the datawindow won't get deployed because the
> compiler won't think it's referenced.
>
> --
> Bruce Armstrong [TeamSybase]
> http://www.teamsybase.com
>
> Two new books on developing with PowerBuilder
> http://www.pb9books.com?source=newsgroups
>
> Need code sample? Check out CodeXchange:
> http://www.codexchange.sybase.com
>
> ISUG Enhancement Requests
> http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
>
> Preach the gospel at all times. If necessary, use words. - Francis of
Assisi
> http://www.needhim.org
>
>
> "John Owens" <j.owens@stanleyassociates.com> wrote in message
> news:3f81b92b@forums-2-dub...
> > I have a custom visual userobject that contains an empty datawindow.
> > Dependant on a CASE statement, the one out of four external datawindows
> are
> > displayed in the "viewscreen" section of the user object.
> >
> > I am using the code: dw_sheet.dataobject = 'd_some_datawindow'
> >
> > To dynamically assign this datawindow. Afterwords the fields are
> populated.
> >
> > When putting this application to use, the system crashes doing this. Is
> > this a PPB flaw or do I need to be going about this a different way?
> >
> > John Owens
> >
> >
>
>


Brian Marshall Posted on 2003-10-06 21:05:28.0Z
Reply-To: "Brian Marshall" <bmarshall@primarysolutions.net>
From: "Brian Marshall" <bmarshall@primarysolutions.net>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f81b92b@forums-2-dub> <3f81bdee$1@forums-2-dub> <3f81d6f0$1@forums-1-dub>
Subject: Re: Runtime Datawindow Assignment
Lines: 82
Organization: Primary Solutions, Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 209.115.62.25
Message-ID: <3f81d9ce@forums-2-dub>
X-Original-Trace: 6 Oct 2003 14:08:30 -0700, 209.115.62.25
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 6 Oct 2003 13:59:51 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 6 Oct 2003 14:05:28 -0700
X-Trace: forums-1-dub 1065474328 10.22.108.75 (6 Oct 2003 14:05:28 -0700)
X-Original-Trace: 6 Oct 2003 14:05:28 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:736
Article PK: 268039

I had a similar problem with external Datawindows and instead created a
table in my deployed database with the same columns and used that as the
data source but never saved the inserted data back to the database.

Brian Marshall

"John Owens" <j.owens@stanleyassociates.com> wrote in message
news:3f81d6f0$1@forums-1-dub...
> I did, so far there are only two datawindows, both are external.
Depending
> on the barcode i scan, i want to show one dataset or another. The
> "assignment" part has no problems. It sets the transaction, assigns the
> datawindow just fine, but nothing shows up. When I call an insertrow so
> that I can call dw_sheet.SetItem statements, it kicks me out of the app.
So
> far all objects are in the single.PKL library.
>
> visual object uo_barcode_scan
> imbedded datawindow dw_sheet
>
> Based off of the barcode type, program either displays 'd_equip_scan' or
> 'd_msl_scan'
>
> A better example:
> dw_sheet.dataobject = 'd_equip_scan'
> dw_sheet.SetTransObject( SQLCA )
> l_row = dw_sheet.InsertRow(0)
> dw_sheet.SetItem( l_row, "barcode_type", s_barcode_type)
>
> John Owens
>
> "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
> wrote in message news:3f81bdee$1@forums-2-dub...
> > Make sure you compile the library that the datawindows are in into a PBD
> (or
> > is it PKD?). Otherwise, the datawindow won't get deployed because the
> > compiler won't think it's referenced.
> >
> > --
> > Bruce Armstrong [TeamSybase]
> > http://www.teamsybase.com
> >
> > Two new books on developing with PowerBuilder
> > http://www.pb9books.com?source=newsgroups
> >
> > Need code sample? Check out CodeXchange:
> > http://www.codexchange.sybase.com
> >
> > ISUG Enhancement Requests
> > http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
> >
> > Preach the gospel at all times. If necessary, use words. - Francis of
> Assisi
> > http://www.needhim.org
> >
> >
> > "John Owens" <j.owens@stanleyassociates.com> wrote in message
> > news:3f81b92b@forums-2-dub...
> > > I have a custom visual userobject that contains an empty datawindow.
> > > Dependant on a CASE statement, the one out of four external
datawindows
> > are
> > > displayed in the "viewscreen" section of the user object.
> > >
> > > I am using the code: dw_sheet.dataobject = 'd_some_datawindow'
> > >
> > > To dynamically assign this datawindow. Afterwords the fields are
> > populated.
> > >
> > > When putting this application to use, the system crashes doing this.
Is
> > > this a PPB flaw or do I need to be going about this a different way?
> > >
> > > John Owens
> > >
> > >
> >
> >
>
>


Bruce Armstrong [TeamSybase] Posted on 2003-10-06 21:17:38.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f81b92b@forums-2-dub> <3f81bdee$1@forums-2-dub> <3f81d6f0$1@forums-1-dub>
Subject: Re: Runtime Datawindow Assignment
Lines: 102
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 141.102.144.53
X-Original-NNTP-Posting-Host: 141.102.144.53
Message-ID: <3f81dbf2$1@forums-1-dub>
Date: 6 Oct 2003 14:17:38 -0700
X-Trace: forums-1-dub 1065475058 141.102.144.53 (6 Oct 2003 14:17:38 -0700)
X-Original-Trace: 6 Oct 2003 14:17:38 -0700, 141.102.144.53
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:737
Article PK: 268041

> So far all objects are in the single.PKL library.

That's the problem. Are you using a PKR file to force the datawindows into
the EXE? Because otherwise, the compiler won't pick up dynamically
referenced datawindow objects and will leave them out of the EXE. You
either need to use a PKR file to embed the datawindows in the EXE, or
seperate the objects into two PKL files, and compile the one that contains
the datawindows into a PKD file.

--
Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

ISUG Enhancement Requests
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org

"John Owens" <j.owens@stanleyassociates.com> wrote in message
news:3f81d6f0$1@forums-1-dub...
> I did, so far there are only two datawindows, both are external.
Depending
> on the barcode i scan, i want to show one dataset or another. The
> "assignment" part has no problems. It sets the transaction, assigns the
> datawindow just fine, but nothing shows up. When I call an insertrow so
> that I can call dw_sheet.SetItem statements, it kicks me out of the app.
So
> far all objects are in the single.PKL library.
>
> visual object uo_barcode_scan
> imbedded datawindow dw_sheet
>
> Based off of the barcode type, program either displays 'd_equip_scan' or
> 'd_msl_scan'
>
> A better example:
> dw_sheet.dataobject = 'd_equip_scan'
> dw_sheet.SetTransObject( SQLCA )
> l_row = dw_sheet.InsertRow(0)
> dw_sheet.SetItem( l_row, "barcode_type", s_barcode_type)
>
> John Owens
>
> "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
> wrote in message news:3f81bdee$1@forums-2-dub...
> > Make sure you compile the library that the datawindows are in into a PBD
> (or
> > is it PKD?). Otherwise, the datawindow won't get deployed because the
> > compiler won't think it's referenced.
> >
> > --
> > Bruce Armstrong [TeamSybase]
> > http://www.teamsybase.com
> >
> > Two new books on developing with PowerBuilder
> > http://www.pb9books.com?source=newsgroups
> >
> > Need code sample? Check out CodeXchange:
> > http://www.codexchange.sybase.com
> >
> > ISUG Enhancement Requests
> > http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
> >
> > Preach the gospel at all times. If necessary, use words. - Francis of
> Assisi
> > http://www.needhim.org
> >
> >
> > "John Owens" <j.owens@stanleyassociates.com> wrote in message
> > news:3f81b92b@forums-2-dub...
> > > I have a custom visual userobject that contains an empty datawindow.
> > > Dependant on a CASE statement, the one out of four external
datawindows
> > are
> > > displayed in the "viewscreen" section of the user object.
> > >
> > > I am using the code: dw_sheet.dataobject = 'd_some_datawindow'
> > >
> > > To dynamically assign this datawindow. Afterwords the fields are
> > populated.
> > >
> > > When putting this application to use, the system crashes doing this.
Is
> > > this a PPB flaw or do I need to be going about this a different way?
> > >
> > > John Owens
> > >
> > >
> >
> >
>
>


John Owens Posted on 2003-10-07 03:18:48.0Z
Sender: 2e42.3f823032.1804289383@sybase.com
From: John Owens
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Re: Runtime Datawindow Assignment
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3f823098.2e46.846930886@sybase.com>
References: <3f81b92b@forums-2-dub> <3f81bdee$1@forums-2-dub> <3f81d6f0$1@forums-1-dub><3f81dbf2$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Oct 2003 20:18:48 -0700
X-Trace: forums-1-dub 1065496728 10.22.241.41 (6 Oct 2003 20:18:48 -0700)
X-Original-Trace: 6 Oct 2003 20:18:48 -0700, 10.22.241.41
Lines: 115
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:738
Article PK: 268040

FIrst, I added both datawindow objects to the .PKR for the
exe. Second, i created another window that has both of
those assigned as datawindows to it.. to make sure they get
included.

Still, when I click a button to set the data object, set the
transaction object, and call a datawindow retrieve.. nothing
shows up in the datawindow. Its just blank.

Is there another way to do this?

> > So far all objects are in the single.PKL library.
>
> That's the problem. Are you using a PKR file to force the
> datawindows into the EXE? Because otherwise, the compiler
> won't pick up dynamically referenced datawindow objects
> and will leave them out of the EXE. You either need to
> use a PKR file to embed the datawindows in the EXE, or
> seperate the objects into two PKL files, and compile the
> one that contains the datawindows into a PKD file.
>
> --
> Bruce Armstrong [TeamSybase]
> http://www.teamsybase.com
>
> Two new books on developing with PowerBuilder
> http://www.pb9books.com?source=newsgroups
>
> Need code sample? Check out CodeXchange:
> http://www.codexchange.sybase.com
>
> ISUG Enhancement Requests
> http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
>
> Preach the gospel at all times. If necessary, use words. -
> Francis of Assisi http://www.needhim.org
>
>
> "John Owens" <j.owens@stanleyassociates.com> wrote in
> message news:3f81d6f0$1@forums-1-dub...
> > I did, so far there are only two datawindows, both are
> external. Depending
> > on the barcode i scan, i want to show one dataset or
> > another. The "assignment" part has no problems. It
> > sets the transaction, assigns the datawindow just fine,
> > but nothing shows up. When I call an insertrow so that
> I can call dw_sheet.SetItem statements, it kicks me out of
> the app. So
> > far all objects are in the single.PKL library.
> >
> > visual object uo_barcode_scan
> > imbedded datawindow dw_sheet
> >
> > Based off of the barcode type, program either displays
> > 'd_equip_scan' or 'd_msl_scan'
> >
> > A better example:
> > dw_sheet.dataobject = 'd_equip_scan'
> > dw_sheet.SetTransObject( SQLCA )
> > l_row = dw_sheet.InsertRow(0)
> > dw_sheet.SetItem( l_row, "barcode_type", s_barcode_type)
> >
> > John Owens
> >
> > "Bruce Armstrong [TeamSybase]"
> > <NOCANSPAM_bruce.armstrong@teamsybase.com> wrote in
> > > message news:3f81bdee$1@forums-2-dub... Make sure you
> > compile the library that the datawindows are in into a
> > > PBD (or is it PKD?). Otherwise, the datawindow won't
> > > get deployed because the compiler won't think it's
> > referenced. >
> > > --
> > > Bruce Armstrong [TeamSybase]
> > > http://www.teamsybase.com
> > >
> > > Two new books on developing with PowerBuilder
> > > http://www.pb9books.com?source=newsgroups
> > >
> > > Need code sample? Check out CodeXchange:
> > > http://www.codexchange.sybase.com
> > >
> > > ISUG Enhancement Requests
> > > http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
> > >
> > > Preach the gospel at all times. If necessary, use
> > words. - Francis of Assisi
> > > http://www.needhim.org
> > >
> > >
> > > "John Owens" <j.owens@stanleyassociates.com> wrote in
> > > message news:3f81b92b@forums-2-dub...
> > > > I have a custom visual userobject that contains an
> > > > empty datawindow. Dependant on a CASE statement, the
> one out of four external datawindows
> > > are
> > > > displayed in the "viewscreen" section of the user
> > > object. >
> > > > I am using the code: dw_sheet.dataobject =
> > > 'd_some_datawindow' >
> > > > To dynamically assign this datawindow. Afterwords
> > > the fields are populated.
> > > >
> > > > When putting this application to use, the system
> crashes doing this. Is
> > > > this a PPB flaw or do I need to be going about this
> > > a different way? >
> > > > John Owens
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Bruce Armstrong [TeamSybase] Posted on 2003-10-07 04:00:35.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f81b92b@forums-2-dub> <3f81bdee$1@forums-2-dub> <3f81d6f0$1@forums-1-dub><3f81dbf2$1@forums-1-dub> <3f823098.2e46.846930886@sybase.com>
Subject: Re: Runtime Datawindow Assignment
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 141.102.144.53
Message-ID: <3f823b26$1@forums-2-dub>
X-Original-Trace: 6 Oct 2003 21:03:50 -0700, 141.102.144.53
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 6 Oct 2003 20:55:10 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 6 Oct 2003 21:00:35 -0700
X-Trace: forums-1-dub 1065499235 10.22.108.75 (6 Oct 2003 21:00:35 -0700)
X-Original-Trace: 6 Oct 2003 21:00:35 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:740
Article PK: 268042


<John Owens> wrote in message news:3f823098.2e46.846930886@sybase.com...
> FIrst, I added both datawindow objects to the .PKR for the
> exe.

What does your PKR file look like?

> Second, i created another window that has both of
> those assigned as datawindows to it.. to make sure they get
> included.

And that window is referenced someplace?

> Still, when I click a button to set the data object, set the
> transaction object, and call a datawindow retrieve.. nothing
> shows up in the datawindow. Its just blank.
> Is there another way to do this?

1. Create a second PKL file for the application.
2. Move the datawindows in to the PKL file.
3. In the project that you use to compile the app, indicate that the PKL
file that the datawindows are in should be compiled to a PKD file.

--
Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

ISUG Enhancement Requests
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org


John Owens Posted on 2003-10-07 14:17:30.0Z
Reply-To: "John Owens" <j.owens@stanelyassociates.com>
From: "John Owens" <j.owens@stanleyassociates.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f81b92b@forums-2-dub> <3f81bdee$1@forums-2-dub> <3f81d6f0$1@forums-1-dub><3f81dbf2$1@forums-1-dub> <3f823098.2e46.846930886@sybase.com> <3f823b26$1@forums-2-dub>
Subject: Re: Runtime Datawindow Assignment
Lines: 61
Organization: Stanley Associates
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Original-NNTP-Posting-Host: 12.172.51.130
Message-ID: <3f82cbbb@forums-2-dub>
X-Original-Trace: 7 Oct 2003 07:20:43 -0700, 12.172.51.130
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 7 Oct 2003 07:12:03 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 7 Oct 2003 07:17:30 -0700
X-Trace: forums-1-dub 1065536250 10.22.108.75 (7 Oct 2003 07:17:30 -0700)
X-Original-Trace: 7 Oct 2003 07:17:30 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:759
Article PK: 268062

I dont understand why it should make any difference to PocketPowerBuilder
what .PKL file the datawindow is in. I am aware that one is the main app
.PKL but I dont see why it should have special cases on what to include
based off of what .PKL file it is. Does the regular powerbuilder operate
the same way?

In my PBR file I tried to include it two different ways
1) just write the name of the datawindow IE: d_equip_scan
and
2) c:\codebase\scance\scance.pkl (d_equip_scan)
Neither worked. Granted I'm basing these on various examples I've seen in
regular powerbuilder applications.

I tried an alternative last night, which was to make two different
datawindows on top of each other, and just toggle which one is visible.
This worked well, but is less efficient.

"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>

wrote in message news:3f823b26$1@forums-2-dub...
> <John Owens> wrote in message news:3f823098.2e46.846930886@sybase.com...
> > FIrst, I added both datawindow objects to the .PKR for the
> > exe.
>
> What does your PKR file look like?
>
> > Second, i created another window that has both of
> > those assigned as datawindows to it.. to make sure they get
> > included.
>
> And that window is referenced someplace?
>
> > Still, when I click a button to set the data object, set the
> > transaction object, and call a datawindow retrieve.. nothing
> > shows up in the datawindow. Its just blank.
> > Is there another way to do this?
>
> 1. Create a second PKL file for the application.
> 2. Move the datawindows in to the PKL file.
> 3. In the project that you use to compile the app, indicate that the PKL
> file that the datawindows are in should be compiled to a PKD file.
>
> --
> Bruce Armstrong [TeamSybase]
> http://www.teamsybase.com
>
> Two new books on developing with PowerBuilder
> http://www.pb9books.com?source=newsgroups
>
> Need code sample? Check out CodeXchange:
> http://www.codexchange.sybase.com
>
> ISUG Enhancement Requests
> http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
>
> Preach the gospel at all times. If necessary, use words. - Francis of
Assisi
> http://www.needhim.org
>
>


Bruce Armstrong [TeamSybase] Posted on 2003-10-07 19:30:04.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f81b92b@forums-2-dub> <3f81bdee$1@forums-2-dub> <3f81d6f0$1@forums-1-dub><3f81dbf2$1@forums-1-dub> <3f823098.2e46.846930886@sybase.com> <3f823b26$1@forums-2-dub> <3f82cbbb@forums-2-dub>
Subject: Re: Runtime Datawindow Assignment
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 141.102.144.53
Message-ID: <3f831503$1@forums-2-dub>
X-Original-Trace: 7 Oct 2003 12:33:23 -0700, 141.102.144.53
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 7 Oct 2003 12:24:35 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 7 Oct 2003 12:30:04 -0700
X-Trace: forums-1-dub 1065555004 10.22.108.75 (7 Oct 2003 12:30:04 -0700)
X-Original-Trace: 7 Oct 2003 12:30:04 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:777
Article PK: 268080


"John Owens" <j.owens@stanleyassociates.com> wrote in message
news:3f82cbbb@forums-2-dub...
> I dont understand why it should make any difference to PocketPowerBuilder
> what .PKL file the datawindow is in. I am aware that one is the main app
> .PKL but I dont see why it should have special cases on what to include
> based off of what .PKL file it is. Does the regular powerbuilder operate
> the same way?

Yes, it does. If you compile to a single EXE, the compiler only includes
the objects that it find explicit references to. If you compile EXE and
PBDs, then the PBDs include all of the objects that are in the corresponding
PBLs. The same holds true for PPB.

> In my PBR file I tried to include it two different ways
> 1) just write the name of the datawindow IE: d_equip_scan
> and
> 2) c:\codebase\scance\scance.pkl (d_equip_scan)
> Neither worked. Granted I'm basing these on various examples I've seen
in
> regular powerbuilder applications.

The latter should have worked.

> I tried an alternative last night, which was to make two different
> datawindows on top of each other, and just toggle which one is visible.
> This worked well, but is less efficient.

Using a PKR or compiling to PKD files does work (others have asked about it
before and have gotten it working). There's probably something simple
missing.

--
Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

ISUG Enhancement Requests
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org


John Owens Posted on 2003-10-07 03:26:47.0Z
Sender: 2e69.3f82323a.1804289383@sybase.com
From: John Owens
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Re: Runtime Datawindow Assignment
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3f823277.2e70.846930886@sybase.com>
References: <3f81b92b@forums-2-dub> <3f81bdee$1@forums-2-dub> <3f81d6f0$1@forums-1-dub><3f81dbf2$1@forums-1-dub><3f823098.2e46.846930886@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Oct 2003 20:26:47 -0700
X-Trace: forums-1-dub 1065497207 10.22.241.41 (6 Oct 2003 20:26:47 -0700)
X-Original-Trace: 6 Oct 2003 20:26:47 -0700, 10.22.241.41
Lines: 118
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:739
Article PK: 268045

BTW... not doing any setitems.. that still crashes it, but
it seems it crashes because the datawindow isnt displaying.

> FIrst, I added both datawindow objects to the .PKR for the
> exe. Second, i created another window that has both of
> those assigned as datawindows to it.. to make sure they
> get included.
>
> Still, when I click a button to set the data object, set
> the transaction object, and call a datawindow retrieve..
> nothing shows up in the datawindow. Its just blank.
>
> Is there another way to do this?
>
> > > So far all objects are in the single.PKL library.
> >
> > That's the problem. Are you using a PKR file to force
> > the datawindows into the EXE? Because otherwise, the
> > compiler won't pick up dynamically referenced datawindow
> > objects and will leave them out of the EXE. You either
> > need to use a PKR file to embed the datawindows in the
> > EXE, or seperate the objects into two PKL files, and
> > compile the one that contains the datawindows into a PKD
> file. >
> > --
> > Bruce Armstrong [TeamSybase]
> > http://www.teamsybase.com
> >
> > Two new books on developing with PowerBuilder
> > http://www.pb9books.com?source=newsgroups
> >
> > Need code sample? Check out CodeXchange:
> > http://www.codexchange.sybase.com
> >
> > ISUG Enhancement Requests
> > http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
> >
> > Preach the gospel at all times. If necessary, use words.
> > - Francis of Assisi http://www.needhim.org
> >
> >
> > "John Owens" <j.owens@stanleyassociates.com> wrote in
> > message news:3f81d6f0$1@forums-1-dub...
> > > I did, so far there are only two datawindows, both are
> > external. Depending
> > > on the barcode i scan, i want to show one dataset or
> > > another. The "assignment" part has no problems. It
> > > sets the transaction, assigns the datawindow just fine
> > > , but nothing shows up. When I call an insertrow so
> > that I can call dw_sheet.SetItem statements, it kicks me
> > out of the app. So
> > > far all objects are in the single.PKL library.
> > >
> > > visual object uo_barcode_scan
> > > imbedded datawindow dw_sheet
> > >
> > > Based off of the barcode type, program either displays
> > > 'd_equip_scan' or 'd_msl_scan'
> > >
> > > A better example:
> > > dw_sheet.dataobject = 'd_equip_scan'
> > > dw_sheet.SetTransObject( SQLCA )
> > > l_row = dw_sheet.InsertRow(0)
> > > dw_sheet.SetItem( l_row, "barcode_type",
> > s_barcode_type) >
> > > John Owens
> > >
> > > "Bruce Armstrong [TeamSybase]"
> > > <NOCANSPAM_bruce.armstrong@teamsybase.com> wrote in
> > > > message news:3f81bdee$1@forums-2-dub... Make sure
> > > you compile the library that the datawindows are in
> > > > into a PBD (or is it PKD?). Otherwise, the
> > > > datawindow won't get deployed because the compiler
> > > won't think it's referenced. >
> > > > --
> > > > Bruce Armstrong [TeamSybase]
> > > > http://www.teamsybase.com
> > > >
> > > > Two new books on developing with PowerBuilder
> > > > http://www.pb9books.com?source=newsgroups
> > > >
> > > > Need code sample? Check out CodeXchange:
> > > > http://www.codexchange.sybase.com
> > > >
> > > > ISUG Enhancement Requests
> > > > http://www.isug.com/cgi-bin/ISUG2/submit_enhancement
> > > >
> > > > Preach the gospel at all times. If necessary, use
> > > words. - Francis of Assisi
> > > > http://www.needhim.org
> > > >
> > > >
> > > > "John Owens" <j.owens@stanleyassociates.com> wrote
> > > > in message news:3f81b92b@forums-2-dub...
> > > > > I have a custom visual userobject that contains an
> > > > > empty datawindow. Dependant on a CASE statement,
> > the one out of four external datawindows
> > > > are
> > > > > displayed in the "viewscreen" section of the user
> > > > object. >
> > > > > I am using the code: dw_sheet.dataobject =
> > > > 'd_some_datawindow' >
> > > > > To dynamically assign this datawindow. Afterwords
> > > > the fields are populated.
> > > > >
> > > > > When putting this application to use, the system
> > crashes doing this. Is
> > > > > this a PPB flaw or do I need to be going about
> > > > this a different way? >
> > > > > John Owens
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >