Rendering the XML of objects old versions in data navigator

Build 1501 on 14/Nov/2017  This topic last edited on: 25/Aug/2014, at 16:02

The data navigator can render (output) the XML of objects old versions.

Objects old versions are identified by 'versions identifiers' composed by the object id and the UTC date-time of when the old version was created Versions identifiers are represented as string with the decimal id followed by 'v' followed by the date-time, e.g.:

  3560v2010-08-11T16:05:05.94Z

is the version created on August 11th, 2010 at 4:05:05.95 PM of the object with id 3560. (The 'Z' can be omitted - the date-time are assumed to be UTC).

The commands ../do.ashx?cmd=objsnav and ../do.ashx?cmd=feed can accept in their 'ids' parameter a mixture of object ids and version identifiers, and they'll output the corresponding objects and objects old versions - e.g.

  ../do.ashx?Cmd=feed&name=display&ids=3560v2010-08-11T16:05:05.94Z,3555

will output the object old version of the example above and the object with id 3555 together, formatted using the 'feed_Display' configuration.

The XML of an old versions is identical to the one of a normal object except that:

references to objects that no longer exists are stripped;

there is a new element 'nav:versionCreation' that details when the version was created and by whom, e.g.:

  <image 

    nav:objectType="image" 

    id="obj3560" . . . 

    xmlns="urn:schemas-teradp-com:gn4tera" 

    xmlns:nav="http://www.teradp.com/schemas/GN4/1/ObjNav.xsd">

    <nav:objectTypeAttrs mediaType="Image" deadlineGap="0" textElement="" textAttrib="" typeKind="" typeLink="" /> 

    <nav:versionCreation>

      <nav:actionDesc Action="Update" Time="2010-09-11T16:05:05.940Z" 

        LoginGuid="c2cd4527-3605-4a4b-9119-019076e889c2" UserId="1705" UserDesc="TeraDP\MiMo" /> 

    </nav:versionCreation>

    <nav:creation>

      <nav:actionDesc Action="Create" Time="2010-09-02T15:14:45.710Z" 

        LoginGuid="ccf57177-61d3-4e5c-983f-80f2ab6183af" UserId="1705" UserDesc="TeraDP\MiMo" /> 

    </nav:creation>

    <nav:modified>

      <nav:actionDesc Action="Update" Time="2010-09-08T18:47:32.833Z" 

        LoginGuid="7aae60c6-4caf-4c40-87ad-1037ce149792" UserId="1705" UserDesc="TeraDP\MiMo" /> 

    </nav:modified>

    <folderRef idref="obj8">

      <nav:refObject idref="obj8" /> 

    </folderRef>

    . . .

  </image>

there is no 'nav:referencing' element

It is not possible to create ZIP feed containing old versions - attempts to do so causes the error 1314: 'It is not possible to use old versions in a ZIP feed'.