Skip to main content

Hi

Can you check if there is a way to differentiate between a successful export of an aps and an export of an aps that does not exist.

I think $procReturnContext, $procerror, $procerrorcontext and return status all contain the same information.

Thanks



------------------------------
Osman Shariff
------------------------------

Hi

Can you check if there is a way to differentiate between a successful export of an aps and an export of an aps that does not exist.

I think $procReturnContext, $procerror, $procerrorcontext and return status all contain the same information.

Thanks



------------------------------
Osman Shariff
------------------------------

There should be a difference (at least when using the latest versions of Uniface 10.3/10.4).

When exporting an aps that exists then $ude("export") will return the number of exported records, which is in this case 1. And $procReturnContext will contain the following:

"Context=UDE export·;InputRecords=1·;OutputRecords=1·;InputDescriptors=3·;OutputDescriptors=1·;Release=10.3"

In case the specified aps does not exist then $ude("export") will return 0 and $procReturnContext will not show any OutputRecords or OutputDescriptors:

"Context=UDE export·;InputDescriptors=3·;Release=10.3"

I hope this helps.



------------------------------
Daniel Iseli
Principal Technical Support Engineer
Uniface Services
Rocket Software, Switzerland
------------------------------

There should be a difference (at least when using the latest versions of Uniface 10.3/10.4).

When exporting an aps that exists then $ude("export") will return the number of exported records, which is in this case 1. And $procReturnContext will contain the following:

"Context=UDE export·;InputRecords=1·;OutputRecords=1·;InputDescriptors=3·;OutputDescriptors=1·;Release=10.3"

In case the specified aps does not exist then $ude("export") will return 0 and $procReturnContext will not show any OutputRecords or OutputDescriptors:

"Context=UDE export·;InputDescriptors=3·;Release=10.3"

I hope this helps.



------------------------------
Daniel Iseli
Principal Technical Support Engineer
Uniface Services
Rocket Software, Switzerland
------------------------------

Sorry Daniel, It was a Friday evening thing..... All is good

I just realised, it creates an empty xml file if the aps does not exist.

------------------------------
Osman Shariff
------------------------------