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.

Functions being skipped by Appeon

8 posts in Appeon (partner product) Last posting was on 2009-09-28 16:12:59.0Z
Trevor Holyoak Posted on 2009-08-28 21:47:04.0Z
From: Trevor Holyoak <trevorh@uuinsurance.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
Newsgroups: sybase.public.appeon
Subject: Functions being skipped by Appeon
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4a985058$1@forums-1-dub>
Date: 28 Aug 2009 14:47:04 -0700
X-Trace: forums-1-dub 1251496024 10.22.241.152 (28 Aug 2009 14:47:04 -0700)
X-Original-Trace: 28 Aug 2009 14:47:04 -0700, vip152.sybase.com
Lines: 16
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2379
Article PK: 13407

We have an application that we deploy in both client/server and Appeon
versions. The client/server version works as expected, but we're having
a problem getting some of the code to work correctly in Appeon.

A particular function was being skipped altogether, as if the code was
commented out, and we couldn't find any errors in the logs (such as
unsupported functionality). I even tried just putting a MessageBox() in
the function (commenting out the rest of the code) and that didn't work.
I finally renamed the function, and then it started working. However, I
am now having the same problem with the function that should be called next.

Is this a common problem? Is there some way to avoid having to rename
one function after another to get everything to work correctly?

Thanks,
Trevor


Steven Posted on 2009-09-03 09:28:25.0Z
Sender: 7189.4a9f60eb.1804289383@sybase.com
From: Steven
Newsgroups: sybase.public.appeon
Subject: Re: Functions being skipped by Appeon
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4a9f8c39.78ae.1681692777@sybase.com>
References: <4a985058$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 3 Sep 2009 02:28:25 -0700
X-Trace: forums-1-dub 1251970105 10.22.241.41 (3 Sep 2009 02:28:25 -0700)
X-Original-Trace: 3 Sep 2009 02:28:25 -0700, 10.22.241.41
Lines: 7
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2382
Article PK: 13412

Hi Trevor,

This isn't a common problem. We need a test case to research
this issue.

Regards,
Steven


Trevor Holyoak Posted on 2009-09-04 17:41:31.0Z
From: Trevor Holyoak <trevorh@uuinsurance.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
Newsgroups: sybase.public.appeon
Subject: Re: Functions being skipped by Appeon
References: <4a985058$1@forums-1-dub> <4a9f8c39.78ae.1681692777@sybase.com>
In-Reply-To: <4a9f8c39.78ae.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4aa1514b$1@forums-1-dub>
Date: 4 Sep 2009 10:41:31 -0700
X-Trace: forums-1-dub 1252086091 10.22.241.152 (4 Sep 2009 10:41:31 -0700)
X-Original-Trace: 4 Sep 2009 10:41:31 -0700, vip152.sybase.com
Lines: 18
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2385
Article PK: 13410

Due to the nature of the application, that would be difficult.

One thing that I noticed today while working on it is a warning that the
development version is different than the server version (the server
does not yet have the latest version). Could this possibly have anything
to do with it?

Thanks,
Trevor

Steven wrote:
> Hi Trevor,
>
> This isn't a common problem. We need a test case to research
> this issue.
>
> Regards,
> Steven


Steven Posted on 2009-09-07 03:21:41.0Z
Sender: 42d3.4aa47c20.1804289383@sybase.com
From: Steven
Newsgroups: sybase.public.appeon
Subject: Re: Functions being skipped by Appeon
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4aa47c45.42d6.1681692777@sybase.com>
References: <4aa1514b$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Sep 2009 20:21:41 -0700
X-Trace: forums-1-dub 1252293701 10.22.241.41 (6 Sep 2009 20:21:41 -0700)
X-Original-Trace: 6 Sep 2009 20:21:41 -0700, 10.22.241.41
Lines: 11
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2386
Article PK: 13411

Hi Trevor,

Maybe this is not the main reason. However you had better
upgrade your Appeon server and developer are the same
version, then redeloy the application using Appeon
Developer. What version is your Appeon? You can try to
provide more relevant code, so that we can detect the
problem.

Regards,
Steven


Trevor Holyoak Posted on 2009-09-11 20:39:06.0Z
From: Trevor Holyoak <trevorh@uuinsurance.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
Newsgroups: sybase.public.appeon
Subject: Re: Functions being skipped by Appeon
References: <4aa1514b$1@forums-1-dub> <4aa47c45.42d6.1681692777@sybase.com>
In-Reply-To: <4aa47c45.42d6.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4aaab56a$1@forums-1-dub>
Date: 11 Sep 2009 13:39:06 -0700
X-Trace: forums-1-dub 1252701546 10.22.241.152 (11 Sep 2009 13:39:06 -0700)
X-Original-Trace: 11 Sep 2009 13:39:06 -0700, vip152.sybase.com
Lines: 26
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2390
Article PK: 13414

It turns out there were a couple of different problems, one with a
global function and one with a window function.

1. When you take an existing global function and change the signature
(parameters and/or return value), PowerBuilder keeps both the old and
the new. You only see the current code in PowerBuilder, but if you
export it, you see both function versions in the exported text file.
This doesn't seem to cause a problem if you're just using PowerBuilder,
but Appeon doesn't seem to know what to do with it and you apparently
get an empty function. It seems that the reason I was able to get around
this by saving the function under a new name is that I then ended up
having the original and new versions with different names instead of the
same name. We ended up solving the problem by exporting the function,
manually removing the obsolete version, and then reimporting it.

2. A window function that doesn't explicitly return a value in
PowerBuilder returns a NULL. In Appeon, it returns a 0. The window
function actually should have been returning a value, but it was working
anyway in the PowerBuilder version because it skipped the return value
test since it was a NULL value. The Appeon version applied the test
because the return value was 0, and we got unexpected results. We solved
the problem by making sure there was an actual return value, but I think
it's important that people realize that Appeon gives you a 0 as a
default return value where PowerBuilder gives you a NULL.

- Trevor


Trevor Holyoak Posted on 2009-09-11 22:59:07.0Z
From: Trevor Holyoak <trevorh@uuinsurance.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
Newsgroups: sybase.public.appeon
Subject: Re: Functions being skipped by Appeon
References: <4aa1514b$1@forums-1-dub> <4aa47c45.42d6.1681692777@sybase.com> <4aaab56a$1@forums-1-dub>
In-Reply-To: <4aaab56a$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4aaad63b$1@forums-1-dub>
Date: 11 Sep 2009 15:59:07 -0700
X-Trace: forums-1-dub 1252709947 10.22.241.152 (11 Sep 2009 15:59:07 -0700)
X-Original-Trace: 11 Sep 2009 15:59:07 -0700, vip152.sybase.com
Lines: 34
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2391
Article PK: 13413

We also found another place this afternoon where an intentionally
overloaded function has the same problem as number 1 below. One version
of it works, the other doesn't. We ended up renaming one of the versions
to fix it. But shouldn't Appeon support overloaded functions?

- Trevor

Trevor Holyoak wrote:
> It turns out there were a couple of different problems, one with a
> global function and one with a window function.
>
> 1. When you take an existing global function and change the signature
> (parameters and/or return value), PowerBuilder keeps both the old and
> the new. You only see the current code in PowerBuilder, but if you
> export it, you see both function versions in the exported text file.
> This doesn't seem to cause a problem if you're just using PowerBuilder,
> but Appeon doesn't seem to know what to do with it and you apparently
> get an empty function. It seems that the reason I was able to get around
> this by saving the function under a new name is that I then ended up
> having the original and new versions with different names instead of the
> same name. We ended up solving the problem by exporting the function,
> manually removing the obsolete version, and then reimporting it.
>
> 2. A window function that doesn't explicitly return a value in
> PowerBuilder returns a NULL. In Appeon, it returns a 0. The window
> function actually should have been returning a value, but it was working
> anyway in the PowerBuilder version because it skipped the return value
> test since it was a NULL value. The Appeon version applied the test
> because the return value was 0, and we got unexpected results. We solved
> the problem by making sure there was an actual return value, but I think
> it's important that people realize that Appeon gives you a 0 as a
> default return value where PowerBuilder gives you a NULL.
>
> - Trevor


Steven Posted on 2009-09-24 06:36:30.0Z
Sender: 4896.4abb132b.1804289383@sybase.com
From: Steven
Newsgroups: sybase.public.appeon
Subject: Re: Functions being skipped by Appeon
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4abb136e.48a4.1681692777@sybase.com>
References: <4aaad63b$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 23 Sep 2009 23:36:30 -0700
X-Trace: forums-1-dub 1253774190 10.22.241.41 (23 Sep 2009 23:36:30 -0700)
X-Original-Trace: 23 Sep 2009 23:36:30 -0700, 10.22.241.41
Lines: 36
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2394
Article PK: 13417

Hi Trevor,
Appeon supports overloaded functions, but the dynamically
calling overloaded function of an uncertain object is
unsupported.
For example:
Of_update(powerobject,boolean,boolean) function of
pfc_n_cst_luw in pfcapsrv.pbl
li_rc = lpo_tocheck.Function Dynamic of_Update
(ab_accepttext, ab_resetflag, lpo_updaterequestor)
You need use the scripts below to work around this issue:
Choose Case Typeof ( lpo_tocheck )
Case DataWindow!
ldw_update = lpo_tocheck
li_rc = ldw_update.of_Update (ab_accepttext,
ab_resetflag, lpo_updaterequestor)
If li_rc < 0 Then Return -1
Continue
Case ListView!
llvs_update = lpo_tocheck
li_rc = llvs_update.of_Update (ab_accepttext,
ab_resetflag, lpo_updaterequestor)
If li_rc < 0 Then Return -1
Continue
Case TreeView!
ltvs_update = lpo_tocheck
li_rc = ltvs_update.of_Update (ab_accepttext,
ab_resetflag, lpo_updaterequestor)
If li_rc < 0 Then Return -1
Continue
Case DataStore!
lds_update = lpo_tocheck
li_rc = lds_update.of_Update (ab_accepttext,
ab_resetflag, lpo_updaterequestor)

Regards,
Steven


Trevor Holyoak Posted on 2009-09-28 16:12:59.0Z
From: Trevor Holyoak <trevorh@uuinsurance.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
Newsgroups: sybase.public.appeon
Subject: Re: Functions being skipped by Appeon
References: <4aaad63b$1@forums-1-dub> <4abb136e.48a4.1681692777@sybase.com>
In-Reply-To: <4abb136e.48a4.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4ac0e08b$1@forums-1-dub>
Date: 28 Sep 2009 09:12:59 -0700
X-Trace: forums-1-dub 1254154379 10.22.241.152 (28 Sep 2009 09:12:59 -0700)
X-Original-Trace: 28 Sep 2009 09:12:59 -0700, vip152.sybase.com
Lines: 42
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.appeon:2395
Article PK: 21666

These were just straightforward overloaded functions, nothing fancy.

Thanks,
Trevor

Steven wrote:
> Hi Trevor,
> Appeon supports overloaded functions, but the dynamically
> calling overloaded function of an uncertain object is
> unsupported.
> For example:
> Of_update(powerobject,boolean,boolean) function of
> pfc_n_cst_luw in pfcapsrv.pbl
> li_rc = lpo_tocheck.Function Dynamic of_Update
> (ab_accepttext, ab_resetflag, lpo_updaterequestor)
> You need use the scripts below to work around this issue:
> Choose Case Typeof ( lpo_tocheck )
> Case DataWindow!
> ldw_update = lpo_tocheck
> li_rc = ldw_update.of_Update (ab_accepttext,
> ab_resetflag, lpo_updaterequestor)
> If li_rc < 0 Then Return -1
> Continue
> Case ListView!
> llvs_update = lpo_tocheck
> li_rc = llvs_update.of_Update (ab_accepttext,
> ab_resetflag, lpo_updaterequestor)
> If li_rc < 0 Then Return -1
> Continue
> Case TreeView!
> ltvs_update = lpo_tocheck
> li_rc = ltvs_update.of_Update (ab_accepttext,
> ab_resetflag, lpo_updaterequestor)
> If li_rc < 0 Then Return -1
> Continue
> Case DataStore!
> lds_update = lpo_tocheck
> li_rc = lds_update.of_Update (ab_accepttext,
> ab_resetflag, lpo_updaterequestor)
>
> Regards,
> Steven