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.

Application runs but not showing

8 posts in Pocket PowerBuilder Last posting was on 2003-09-10 15:17:41.0Z
Brian Marshall Posted on 2003-09-08 21:02:07.0Z
Reply-To: "Brian Marshall" <bmarshall@primarysolutions.net>
From: "Brian Marshall" <bmarshall@primarysolutions.net>
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Application runs but not showing
Lines: 16
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: <3f5ceead$1@forums-2-dub>
X-Original-Trace: 8 Sep 2003 14:03:41 -0700, 209.115.62.25
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 8 Sep 2003 13:59:27 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 8 Sep 2003 14:02:07 -0700
X-Trace: forums-1-dub 1063054927 10.22.108.75 (8 Sep 2003 14:02:07 -0700)
X-Original-Trace: 8 Sep 2003 14:02:07 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:406
Article PK: 266941

PPB 1.0.1
Dell Axim

I can tap the executable from 'Program Files' on the device and it first
connects to the local database and then is supposed to display the first
window. However, the device still shows my 'Program Files' screen. I must
use the 'Switcher' to select my running application in order to see it. I
know there has to be a simple way to allow the database connection to be
made and to bring my application to the forefront.

Help!

Brian Marshall
'PPB Newbie'


Bharat Patel Posted on 2003-09-08 22:13:29.0Z
From: "Bharat Patel" <bharatp_NOSPAM@sybase.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f5ceead$1@forums-2-dub>
Subject: Re: Application runs but not showing
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Original-NNTP-Posting-Host: bharatp-pc2.sybase.com
Message-ID: <3f5cff66$1@forums-2-dub>
X-Original-Trace: 8 Sep 2003 15:15:02 -0700, bharatp-pc2.sybase.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 8 Sep 2003 15:10:49 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 8 Sep 2003 15:13:29 -0700
X-Trace: forums-1-dub 1063059209 10.22.108.75 (8 Sep 2003 15:13:29 -0700)
X-Original-Trace: 8 Sep 2003 15:13:29 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:408
Article PK: 266942

Brian,

Try posting an event call in the application's open event, and then
connecting to the DB from the posted event's code. That's what the SalesDB
tutorial and sample do. For example, if f_conn() has the DB connection code
in it, put something like this at the end of your app's open event:
// Handle DB connection
this.EVENT POST ue_postopen()

And then call f_conn() in ue_postopen.

HTH,
Bharat

"Brian Marshall" <bmarshall@primarysolutions.net> wrote in message
news:3f5ceead$1@forums-2-dub...
> PPB 1.0.1
> Dell Axim
>
> I can tap the executable from 'Program Files' on the device and it first
> connects to the local database and then is supposed to display the first
> window. However, the device still shows my 'Program Files' screen. I
must
> use the 'Switcher' to select my running application in order to see it. I
> know there has to be a simple way to allow the database connection to be
> made and to bring my application to the forefront.
>
> Help!
>
> Brian Marshall
> 'PPB Newbie'
>
>


Chris Pollach Posted on 2003-09-09 11:03:26.0Z
From: "Chris Pollach" <PollachC@SCC-CSC.gc.ca>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f5ceead$1@forums-2-dub>
Subject: Re: Application runs but not showing
Lines: 37
Organization: The Supreme Court of Canada
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: firewall.scc-csc.gc.ca
X-Original-NNTP-Posting-Host: firewall.scc-csc.gc.ca
Message-ID: <3f5db37e$1@forums-1-dub>
Date: 9 Sep 2003 04:03:26 -0700
X-Trace: forums-1-dub 1063105406 209.47.227.130 (9 Sep 2003 04:03:26 -0700)
X-Original-Trace: 9 Sep 2003 04:03:26 -0700, firewall.scc-csc.gc.ca
X-Authenticated-User: PPBBeta11
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:409
Article PK: 266944

Brian;

I have a production application on the Dell Axim X5 using PPB 1.0.1 and it
has been working great since RC2. I would suspect that it is you application
design and/or coding that is causing the problem. Can you tell us some more
about what you are doing in the application design and flow?

Also, check out my PFC like ancestors and sample application for PPB 1.0.1
on CodeXChange. I just uploaded the newest version yesterday to the
"Foundation Classes" section of PPB.

regards ... Chris Pollach
Great White North Technical Evangelist

"Brian Marshall" <bmarshall@primarysolutions.net> wrote in message
news:3f5ceead$1@forums-2-dub...
> PPB 1.0.1
> Dell Axim
>
> I can tap the executable from 'Program Files' on the device and it first
> connects to the local database and then is supposed to display the first
> window. However, the device still shows my 'Program Files' screen. I
must
> use the 'Switcher' to select my running application in order to see it. I
> know there has to be a simple way to allow the database connection to be
> made and to bring my application to the forefront.
>
> Help!
>
> Brian Marshall
> 'PPB Newbie'
>
>


Bruce Armstrong [TeamSybase] Posted on 2003-09-09 13:33:16.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Re: Application runs but not showing
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <1flrlvkpl53toekioh3hn09s49m8kvahpv@4ax.com>
References: <3f5ceead$1@forums-2-dub>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
X-Original-NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
Date: 9 Sep 2003 06:33:16 -0700
X-Trace: forums-1-dub 1063114396 66.214.183.11 (9 Sep 2003 06:33:16 -0700)
X-Original-Trace: 9 Sep 2003 06:33:16 -0700, 66-214-183-11.la-cbi.charterpipeline.net
Lines: 36
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:410
Article PK: 266945

Do you have a title on the window that you're showing. I know that
was an issue with very early builds if there was no title.

On 8 Sep 2003 14:02:07 -0700, "Brian Marshall"

<bmarshall@primarysolutions.net> wrote:

>PPB 1.0.1
>Dell Axim
>
>I can tap the executable from 'Program Files' on the device and it first
>connects to the local database and then is supposed to display the first
>window. However, the device still shows my 'Program Files' screen. I must
>use the 'Switcher' to select my running application in order to see it. I
>know there has to be a simple way to allow the database connection to be
>made and to bring my application to the forefront.
>
>Help!
>
>Brian Marshall
>'PPB Newbie'
>

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


Brian Marshall Posted on 2003-09-09 18:07:23.0Z
Reply-To: "Brian Marshall" <bmarshall@primarysolutions.net>
From: "Brian Marshall" <bmarshall@primarysolutions.net>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f5ceead$1@forums-2-dub>
Subject: Re: Application runs but not showing
Lines: 10
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
NNTP-Posting-Host: 209.115.62.25
X-Original-NNTP-Posting-Host: 209.115.62.25
Message-ID: <3f5e16db@forums-1-dub>
Date: 9 Sep 2003 11:07:23 -0700
X-Trace: forums-1-dub 1063130843 209.115.62.25 (9 Sep 2003 11:07:23 -0700)
X-Original-Trace: 9 Sep 2003 11:07:23 -0700, 209.115.62.25
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:416
Article PK: 266951

I am still trying some of your suggestions but I found one interesting
thing. When I run PPB on the device and click on my application from within
PPB it connects to the database and brings up my application just fine. If
I use File Explorer to launch the .exe directly then it remains hidden
behind File Explorer.

Brian Marshall
'PPB Newbie'


Chris Pollach Posted on 2003-09-10 10:49:46.0Z
From: "Chris Pollach" <PollachC@SCC-CSC.gc.ca>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f5ceead$1@forums-2-dub> <3f5e16db@forums-1-dub>
Subject: Re: Application runs but not showing
Lines: 25
Organization: The Supreme Court of Canada
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: www.scc-csc.gc.ca
Message-ID: <3f5f022e$1@forums-2-dub>
X-Original-Trace: 10 Sep 2003 03:51:26 -0700, www.scc-csc.gc.ca
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Sep 2003 03:46:57 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Sep 2003 03:49:46 -0700
X-Trace: forums-1-dub 1063190986 10.22.108.75 (10 Sep 2003 03:49:46 -0700)
X-Original-Trace: 10 Sep 2003 03:49:46 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:425
Article PK: 266954

Brian;

Again, I think it is the way your application is coded. Can you give us an
idea of the start-up flow or, post the application code here for us to look
at?

Regards ... Chris

"Brian Marshall" <bmarshall@primarysolutions.net> wrote in message
news:3f5e16db@forums-1-dub...
> I am still trying some of your suggestions but I found one interesting
> thing. When I run PPB on the device and click on my application from
within
> PPB it connects to the database and brings up my application just fine.
If
> I use File Explorer to launch the .exe directly then it remains hidden
> behind File Explorer.
>
> Brian Marshall
> 'PPB Newbie'
>
>


Håkon Øvrelid Posted on 2003-09-10 06:05:35.0Z
From: "Håkon Øvrelid" <hov@reknes.no>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f5ceead$1@forums-2-dub>
Subject: Re: Application runs but not showing
Lines: 30
Organization: Reknes AS
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: 213.184.214.45
X-Original-NNTP-Posting-Host: 213.184.214.45
Message-ID: <3f5ebf2f@forums-1-dub>
Date: 9 Sep 2003 23:05:35 -0700
X-Trace: forums-1-dub 1063173935 213.184.214.45 (9 Sep 2003 23:05:35 -0700)
X-Original-Trace: 9 Sep 2003 23:05:35 -0700, 213.184.214.45
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:422
Article PK: 266960

Had a simlar problem on my aplication when i open a logon window before the
main window.

Add'ed this.setfocus() code to the open event on my main window to get it to
show. Yust a suggestions.

hov


"Brian Marshall" <bmarshall@primarysolutions.net> skrev i melding
news:3f5ceead$1@forums-2-dub...

> PPB 1.0.1
> Dell Axim
>
> I can tap the executable from 'Program Files' on the device and it first
> connects to the local database and then is supposed to display the first
> window. However, the device still shows my 'Program Files' screen. I
must
> use the 'Switcher' to select my running application in order to see it. I
> know there has to be a simple way to allow the database connection to be
> made and to bring my application to the forefront.
>
> Help!
>
> Brian Marshall
> 'PPB Newbie'
>
>


Brian Marshall Posted on 2003-09-10 15:17:41.0Z
Reply-To: "Brian Marshall" <bmarshall@primarysolutions.net>
From: "Brian Marshall" <bmarshall@primarysolutions.net>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f5ceead$1@forums-2-dub>
Subject: Re: Application runs but not showing
Lines: 45
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: <3f5f40fb@forums-2-dub>
X-Original-Trace: 10 Sep 2003 08:19:23 -0700, 209.115.62.25
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Sep 2003 08:14:52 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Sep 2003 08:17:41 -0700
X-Trace: forums-1-dub 1063207061 10.22.108.75 (10 Sep 2003 08:17:41 -0700)
X-Original-Trace: 10 Sep 2003 08:17:41 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:434
Article PK: 266976

I figured it out (with your help).
I initially created my application through the template application creation
wizard. It put the database connection in the open event of the application
and after a successful connection it opens the main window. I have my
database connection use the -q switch. I don't know if that matters or not.
It seems as though the database starting up takes focus away from the
application and puts it back on the file explorer window.
Anyway, the solution was to move the connection logic completely out of the
application open event and into the postopen event of my main window. As
was suggested by an earlier post. I did try to connect in the postopen
event of the application but it did not seem to work either.
So, in conclusion, it seems as though it is best to open your main window
before trying to connect to the database.

Thanks for your help!
Brian Marshall
'PPB Newbie'

BTW
I am thoroughly enjoying PPB. What it can do for our enterprise apps is
endless.
I tried Code Warrior and MobileBuilder deploying to Palm but RAD never had a
better tool than PPB for people with PowerBuilder experience!

"Brian Marshall" <bmarshall@primarysolutions.net> wrote in message
news:3f5ceead$1@forums-2-dub...
> PPB 1.0.1
> Dell Axim
>
> I can tap the executable from 'Program Files' on the device and it first
> connects to the local database and then is supposed to display the first
> window. However, the device still shows my 'Program Files' screen. I
must
> use the 'Switcher' to select my running application in order to see it. I
> know there has to be a simple way to allow the database connection to be
> made and to bring my application to the forefront.
>
> Help!
>
> Brian Marshall
> 'PPB Newbie'
>
>