Sources and Dests options

Build 1501 on 14/Nov/2017  This topic last edited on: 29/Oct/2012, at 16:11

Sources and Dests options cause the output of the list of all the copy-from (‘Sources’ ) and copy-to (‘Dests’) actions performed on the object. They are the equivalent for the data navigator of the ‘Sources’ and ‘Dests’ extra used in directory listings – see http://forum.teradp.com/topic.asp?TOPIC_ID=640&SearchTerms=sources,extra

The XML output is the XML elements ‘nav:sources’ and ‘nav:dests’, containing a list of action descriptions – one for each copy-from or copy-to action – e.g. assuming that the event object with id 5891 has been created copying the event object with id 3678 (‘copied-from’) and has then been used to create the article object with id 5892 (‘copied-to’), executing ../do.ashx?cmd=objsnav&ids=5891&options=sources,dests&max=5 produces:

  <event nav:objectType="event" id="obj5891"  . . . xmlns="urn:schemas-teradp-com:gn4tera" xmlns:nav="http://www.teradp.com/schemas/GN4/1/ObjNav.xsd">

    <nav:objectTypeAttrs mediaType="None"  . . . /> 

    <nav:sources>

      <nav:actionDesc Time="2011-02-03T20:39:34.823Z" LoginGuid=". . .” UserId="4" UserDesc="Administrator" ObjectId="3678" ObjectDesc="Hog reunion" ObjectTypeName="event">

        <user idref="obj4">

          <nav:refObject idref="obj4" /> 

        </user>

        <object idref="obj3678">

          <nav:refObject idref="obj3678" /> 

        </object>

      </nav:actionDesc>

    </nav:sources>

    <nav:dests>

      <nav:actionDesc Time="2011-02-03T20:40:06.733Z" LoginGuid=". . . " UserId="4" UserDesc="Administrator" ObjectId="5892" ObjectDesc="Hog reunion - Copy - 5891" ObjectTypeName="article">

        <user idref="obj4">

          <nav:refObject idref="obj4" /> 

        </user>

        <object idref="obj5892">

          <nav:refObject idref="obj5892" /> 

        </object>

      </nav:actionDesc>

    </nav:dests>

    . . . 

  </event>

Note the ‘user’ and ‘object’ sub-elements (in the GN4 namespace) of each action description – they contain the reference to the user that performed the copy operation and the source or destination object. Increasing the number of levels – or when accessing the XML from a XSL transformation - they expand, allowing access to ANY information about the user and the source/destination object.