Changes between Version 19 and Version 20 of Onyx Export and Purge


Ignore:
Timestamp:
09/28/11 14:03:51 (13 years ago)
Author:
jeff.lusted
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Onyx Export and Purge

    v19 v20  
    109109
    110110I then ran an export. The export produced a zip file containing all the participants that had a completed status on my test system, even those that had been previously exported. So the conclusion is that the exclude condition above ensures that duplication of exported participants does __NOT__ take place. As an aside, there are no participants on my test system with a closed or cancelled status.
     111<br/><br/>
     112I assume that there are a number of ways of achieving the same result using JavaScript. On the Obiba web site, the equivalent of the above is given by:
     113{{{
     114    <valueset entityType="Participant" valueTable="Participants">
     115      <entities>
     116        <script type="INCLUDE">
     117          <javascript>
     118          <![CDATA[
     119            // Include any valueset that has 'CLOSED' or 'COMPLETED'
     120            // as a value for the 'Participant.Interview.Status' variable
     121          $('Participants:Admin.Interview.exportLog.destination').any('DCC.Participants')]]>
     122          </javascript>
     123        </script>
     124        <script type="EXCLUDE">
     125          <javascript><![CDATA[$('Admin.Participant.exported').any('TRUE')]]></javascript>
     126        </script>
     127      </entities>
     128
     129      ...
     130
     131    </valueset>
     132}}}