Skip to main content

$ude export with an aps

  • Mar 24, 2023 11:11 AM UTC
  • 2 replies
  • 27 views

OsmanShariff
Forum|alt.badge.img+3

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
------------------------------

2 replies

  • Rocketeer
  • Mar 27, 2023 6:48 AM UTC

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
------------------------------

OsmanShariff
Forum|alt.badge.img+3
  • Author
  • Participating Frequently
  • Mar 27, 2023 8:18 AM UTC

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
------------------------------