EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB45403: How to dynamically play different videos based on selector choice using the Video Widget for MicroStrategy Mobile


Community Admin

• Strategy


DESCRIPTION
From Strategy Mobile 9.4.0 onwards, users can deploy the Video Widget on Mobile documents in order to display a video from a streaming or file location. For more details on the Video Widget, refer to Technical Note KB44888 New feature: Native widget to embed videos in MicroStrategy Mobile 9.4.0 on iPad/iPhone.
 
In order to dynamically show a different video based on a selector on the Report Services Document, the embed code must be replaced by dynamic text in the widget properties. The following steps outline how to achieve this behavior in Strategy 9.4.x.
 
ACTION
As a requirement, the embed code must be available in the data source as attribute. In this example, the document's data set contains three attributes:
 
- ID attribute: Random ID (not a requirement)
- Name attribute: Name of the video file
- Embed attribute: Contains the embed code to a video source.
 
It is currently not possible to use the embed code as attribute form for this scenario to work. The embed code must be a standalone attribute, present on the widgets grid.
 
1. Create a new document based on the data set and insert a new grid. Add the "Name" and "Embed" attribute to the grid.
 

ka04W00000147whQAA_0EM4400000026SD.png

 
2. Add a selector to the document for attribute "Name", targetting the grid inserted before.
 

ka04W00000147whQAA_0EM4400000026ST.png

 
3. In the grid's properties and formatting options, go to Properties > Widget and select Video Player widget.
 

ka04W00000147whQAA_0EM4400000026SS.png

 
4. Go to the Video Widget properties and enter the attribute name containing the embed code as dynamic text as seen below - "{Embed}".
 

ka04W00000147whQAA_0EM4400000026SH.png

 
5. Run the document on your mobile device.
 
 

ka04W00000147whQAA_0EM4400000026SE.png

 
6. By changing the selector that targets the Video Widget, a different video is displayed for each selection.
 

ka04W00000147whQAA_0EM4400000026SR.png

Note: The same approach as above can equally be applied for "Video URL" and "Alternate Download URL".
 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

April 4, 2017

Last Updated:

April 4, 2017