| Author |
passing error messages
|
|
| Brent Williams 2006-03-17, 8:23 pm |
| I'm running v9.0.2.3249
I want to pass a more specific error message or messages back to the
client when the upload fails. Is there a easy way to do that without
using tables?
| |
| David Fishburn 2006-03-23, 1:25 pm |
| Brent Williams < brentwilliams@bcbsal
.org> wrote in news:441b3e0a$1@foru
ms-
1-dub
of sybase.public.sqlanywhere.ultralite:
BW> I'm running v9.0.2.3249
BW>
BW> I want to pass a more specific error message or messages back to the
BW> client when the upload fails. Is there a easy way to do that without
BW> using tables?
I am not sure I know what you mean when you say "without using tables".
Give me an example of:
1. A typical error
2. When you receive it
3. What the user sees
4. What you would like to replace it with
5. When it happens (ie what triggered the error in the first place)
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).
EBFs and Maintenance Releases
http://downloads.sybase.com/swx/sdmain.stm
Developer Community / Whitepapers
http://www.ianywhere.com/developer
CaseXpress - to report bugs
http://casexpress.sybase.com
CodeXchange - Free samples
[url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]
| |
| Brent Williams 2006-03-28, 11:24 am |
| I have a PDA app for physicians to write prescriptions with. We are
adding functionality for them to send the prescription directly to a
pharmacy. On upload we validate that we have all the information
necessary to send to the pharmacy and fail the upload if we don't. In
this case I would like to send down reasons why the send failed so they
can correct the problems and re-send. Right now, I have created a
separate publication with a table for passing messages back and forth.
When the upload fails for validation reasons, I add messages to the
Message table and the client does a subsequent (behind the scenes) to
get the messages. Is there a better way of doing this or a way to do it
in one sync?
Thanks
David Fishburn wrote:
> Brent Williams < brentwilliams@bcbsal
.org> wrote in news:441b3e0a$1@foru
ms-
> 1-dub
> of sybase.public.sqlanywhere.ultralite:
>
> BW> I'm running v9.0.2.3249
> BW>
> BW> I want to pass a more specific error message or messages back to the
> BW> client when the upload fails. Is there a easy way to do that without
> BW> using tables?
>
> I am not sure I know what you mean when you say "without using tables".
>
> Give me an example of:
> 1. A typical error
> 2. When you receive it
> 3. What the user sees
> 4. What you would like to replace it with
> 5. When it happens (ie what triggered the error in the first place)
>
| |
| David Fishburn 2006-03-31, 9:24 am |
| Brent Williams < brentwilliams@bcbsal
.org> wrote in
news:4429584b$1@foru
ms-2-dub of sybase.public.sqlanywhere.ultralite:
BW> I have a PDA app for physicians to write prescriptions with. We are
BW> adding functionality for them to send the prescription directly to a
BW> pharmacy. On upload we validate that we have all the information
BW> necessary to send to the pharmacy and fail the upload if we don't.
In
BW> this case I would like to send down reasons why the send failed so
BW> they can correct the problems and re-send. Right now, I have created
BW> a separate publication with a table for passing messages back and
BW> forth. When the upload fails for validation reasons, I add messages
to
BW> the Message table and the client does a subsequent (behind the
scenes)
BW> to get the messages. Is there a better way of doing this or a way to
BW> do it in one sync?
Hmm, can't really think of any.
How do you "fail" the sync?
Do you use the RAISERROR statement?
That allows you to create a custom error message which would be
displayed in the ML log and when the handle_error event fires you can
check for it.
What code is returned to the UL sync?
--
David Fishburn
Certified ASA Developer Version 8
iAnywhere Solutions - Sybase
Professional Services
Please only post to the newsgroup
Please ALWAYS include version and MORE importantly BUILD number with
EACH post (dbeng9 -v).
EBFs and Maintenance Releases
http://downloads.sybase.com/swx/sdmain.stm
Developer Community / Whitepapers
http://www.ianywhere.com/developer
CaseXpress - to report bugs
http://casexpress.sybase.com
CodeXchange - Free samples
[url]http://ianywhere.codexchange.sybase.com/servlets/ ProjectDocumentList[
/url]
|
|
|
|