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.

call a function only in web application

5 posts in Appeon (partner product) Last posting was on 2012-02-24 17:45:03.0Z
Jay Posted on 2012-01-26 11:32:17.0Z
Sender: 7d7a.4f2138da.1804289383@sybase.com
From: jay
Newsgroups: sybase.public.appeon
Subject: call a function only in web application
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4f2139c1.7db9.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 26 Jan 2012 03:32:17 -0800
X-Trace: forums-1-dub 1327577537 172.20.134.41 (26 Jan 2012 03:32:17 -0800)
X-Original-Trace: 26 Jan 2012 03:32:17 -0800, 172.20.134.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2867
Article PK: 13630

I have a Powerbuilder 12.5 application, and want to deploy
it as a web application, using APPEON. There are a few
features of the application which I would like to keep in
the desktop application but disable them in the web
application.
When I deployed the application using the powerbuilder
deployment tool, I did that by following:

#if defined PBWEBFORM then
call_a_function_which_disables()
#end if

How can I do the same thing when deploying with appeon?


Chris Pollach Posted on 2012-01-26 12:29:36.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.appeon
References: <4f2139c1.7db9.1681692777@sybase.com>
Subject: Re: call a function only in web application
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4f214730$1@forums-1-dub>
Date: 26 Jan 2012 04:29:36 -0800
X-Trace: forums-1-dub 1327580976 10.22.241.152 (26 Jan 2012 04:29:36 -0800)
X-Original-Trace: 26 Jan 2012 04:29:36 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2869
Article PK: 21922

Hi Jay;

Have a look at the "appeonextfunc.of_getclienttype( )" method. It
returns either "WEB" or "PB". The PB value is when you are running in
desktop EXE mode and WEB of course is Appeon.

HTH

--
Regards ... Chris
President: STD Inc./ OSUG
VP ISUG - Membership
Blog: http://chrispollach.blogspot.com
PBDJ: http://chrispollach.sys-con.com
SourceForge: http://sourceforge.net/projects/stdfndclass

<jay> wrote in message news:4f2139c1.7db9.1681692777@sybase.com...
>I have a Powerbuilder 12.5 application, and want to deploy
> it as a web application, using APPEON. There are a few
> features of the application which I would like to keep in
> the desktop application but disable them in the web
> application.
> When I deployed the application using the powerbuilder
> deployment tool, I did that by following:
>
> #if defined PBWEBFORM then
> call_a_function_which_disables()
> #end if
>
> How can I do the same thing when deploying with appeon?