Skip to content

Instantly share code, notes, and snippets.

@rherrick
Created June 14, 2016 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rherrick/51825589ba69527a43d096feef28a05f to your computer and use it in GitHub Desktop.
Save rherrick/51825589ba69527a43d096feef28a05f to your computer and use it in GitHub Desktop.
WORKSHOP_BIOSAMPLECOLLECTION_PROJECT_IDENTIFIER
<DisplayField id="WORKSHOP_BIOSAMPLECOLLECTION_PROJECT_IDENTIFIER" header="WORKSHOP_BIOSAMPLECOLLECTION ID" visible="true" searchable="false" data-type="string" xsi:type="SubQueryField">
<Content type="sql">workshop_biosamplecollection_project_id</Content>
<HTML-Link>
<SecureLink elementName="workshop:biosampleCollection">
<securityMappingValue displayFieldId="PROJECTS" schemaElementMap="workshop:biosampleCollection/sharing/share/project"/>
<securityMappingValue displayFieldId="PROJECT" schemaElementMap="workshop:biosampleCollection/project"/>
</SecureLink>
<Property name="HREF" value="@WEBAPPapp/action/DisplayItemAction/search_value/@Field1/search_element/workshop:biosampleCollection/search_field/workshop:biosampleCollection.ID/project/@Field2">
<InsertValue id="Field1" field="EXPT_ID"/>
<InsertValue id="Field2" field="@WHERE"/>
</Property>
</HTML-Link>
<SubQuery>SELECT DISTINCT COALESCE(label,sharing_share_xnat_experimentda_id) AS workshop_biosamplecollection_project_id,sharing_share_xnat_experimentda_id FROM ( SELECT sharing_share_xnat_experimentda_id,label FROM xnat_experimentdata_share WHERE project='@WHERE' UNION SELECT id,label FROM xnat_experimentData WHERE project='@WHERE' )SEARCH</SubQuery>
<MappingColumns>
<MappingColumn schemaField="workshop:biosampleCollection.ID" queryField="sharing_share_xnat_experimentda_id"/>
</MappingColumns>
</DisplayField>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment