Uniface User Forum

 View Only
  • 1.  $ude export with an aps

    Posted 03-24-2023 11:11

    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.  RE: $ude export with an aps

    ROCKETEER
    Posted 03-27-2023 06:48

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



  • 3.  RE: $ude export with an aps

    Posted 03-27-2023 08:18
    Edited by Osman Shariff 03-27-2023 08:26

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