Changes
Created page with "{{CommandInfoBox | title = Activate Reference by Scan | name = {{PAGENAMEE}} | purpose = Launch a Document by specifiyng its reference. | version = 2.6.1+ | viewmodel = ViewMo..."
{{CommandInfoBox
| title = Activate Reference by Scan
| name = {{PAGENAMEE}}
| purpose = Launch a Document by specifiyng its reference.
| version = 2.6.1+
| viewmodel = ViewModel, ContentViewModel
}}
The LaunchDocumentByReferenceCommand will launch a document file directly by specifing the content object having the FileDocumentClassification. There are two general possibilities to launch the document file in an external viewer. The command paramter can be the UID of the content object, specified as a parsable string or a Guid object. In the ContentViewmodel and all other dervied ViewModels having content loaded, it is possible to just specify the ID of the refrence property holding the document reference as a Guid.
== Command Property ==
{| class="wikitable" width=50%
|-
! width=30% | Name !! width=30% | Data type !! Comment
|-
| ''Document Refrence ID'' || | ID of the document reference property, or guid of document.
|}
Example 1:
<source lang = "xml">
<Button Command="{Binding LaunchDocumentByReferenceCommand}" CommandParameter="f7b95590-4634-4d7c-a94a-15b9b72b2ca4" Content="OPEN DOC"/>
</Core:EventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</Button>
</source>
Example 2:
<source lang = "xml">
<Button Command="{Binding LaunchDocumentByReferenceCommand}" CommandParameter="REF_OPERATIONSMANUAL" Content="OPEN DOC"/>
</Core:EventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</Button>
</source>
== See also ==
[[NavigateToGuidCommand]]<br>
{{Category/Version|2.6.1}}
| title = Activate Reference by Scan
| name = {{PAGENAMEE}}
| purpose = Launch a Document by specifiyng its reference.
| version = 2.6.1+
| viewmodel = ViewModel, ContentViewModel
}}
The LaunchDocumentByReferenceCommand will launch a document file directly by specifing the content object having the FileDocumentClassification. There are two general possibilities to launch the document file in an external viewer. The command paramter can be the UID of the content object, specified as a parsable string or a Guid object. In the ContentViewmodel and all other dervied ViewModels having content loaded, it is possible to just specify the ID of the refrence property holding the document reference as a Guid.
== Command Property ==
{| class="wikitable" width=50%
|-
! width=30% | Name !! width=30% | Data type !! Comment
|-
| ''Document Refrence ID'' || | ID of the document reference property, or guid of document.
|}
Example 1:
<source lang = "xml">
<Button Command="{Binding LaunchDocumentByReferenceCommand}" CommandParameter="f7b95590-4634-4d7c-a94a-15b9b72b2ca4" Content="OPEN DOC"/>
</Core:EventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</Button>
</source>
Example 2:
<source lang = "xml">
<Button Command="{Binding LaunchDocumentByReferenceCommand}" CommandParameter="REF_OPERATIONSMANUAL" Content="OPEN DOC"/>
</Core:EventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</Button>
</source>
== See also ==
[[NavigateToGuidCommand]]<br>
{{Category/Version|2.6.1}}