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

KB38007: How to use photo uploader in MicroStrategy Mobile 9.3.x?


Community Admin

• Strategy


This document shows instructions on how to use photo uploader in MicroStrategy Mobile 9.3.x

Starting from Strategy Mobile 9.2.1, Analysts can use the Photo Uploader widget to upload images from an iPhone or iPad. By default, images are uploaded and stored in the SavedImages folder on the Mobile server, while the location of each image is stored in the user's data source.
 
Below is an example on how to create a photo uploader widget with Strategy Tutorial project:
 
1.  Create a new table "photo_upload" in Tutorial warehouse database
(the default location: C:\Program Files\Strategy\Tutorial Reporting\TUTORIAL_DATA_7200.mdb), as shown below:
 

ka04W000000OaZkQAK_0EM440000002ANC.jpeg

 
 2. The 'photo_upload' table has to be pre-populated with *exactly* 10 rows of data, the values for the 'ID' column should be 1-10 and the values for the 'uploaded' column should all be 0

ka04W000000OaZkQAK_0EM440000002ANc.jpeg

 
3.  In Strategy Desktop, create a freeform report "R1" based on the new table "photo_upload" in Tutorial data created at step 1, as shown below:

ka04W000000OaZkQAK_0EM440000002AND.jpeg

 


SELECT Location, Description, ID, uploaded, numbers
FROM PHOTO_UPLOAD

 
4.  Create another table for transaction insert SQL. Make sure to create an 'autonumber' type ID as primary key for this table, or auto_increment ID for different DBs.
        

ka04W000000OaZkQAK_0EM440000002ANF.jpeg

        

ka04W000000OaZkQAK_0EM440000002ANP.jpeg

 
5. Create a transaction service report "T1" with "output objects" and "input objects" based on the second table in Tutorial data created at step 4, as shown below:
 

ka04W000000OaZkQAK_0EM440000002ANT.jpeg


Begin Transaction
INSERT INTO Photo_Upload_Result (Location, Description, ID, Uploaded, Numbers)
VALUES([upload Location@ID],[upload Description@ID],[upload@ID],[uploaded],1)
End Transaction

 
Place cursor inside the parenthesis and right click to bring up the context menu, then click on define new input to create attribute form or metrics.

ka04W000000OaZkQAK_0EM440000002ANL.jpeg

 
 Make sure the final output looks like this one
 

ka04W000000OaZkQAK_0EM440000002ANX.jpeg

 
6.  Create a Report Services document with report "R1" created at step 2 as dataset and associate "Photo uploader" widget with it. 
 
7.  Right click the grid and select "configure transaction", configure the transaction as shown below:
 
 

ka04W000000OaZkQAK_0EM440000002ANa.png

 
8.  Create the Action Button for this transaction
 

ka04W000000OaZkQAK_0EM440000002ANN.jpeg

 
9. Make sure the Action button is set to 'Submit'
 

ka04W000000OaZkQAK_0EM440000002ANZ.jpeg

 
10. Right click on the Grid object and select Properties and Formatting to set Photo Uploader as the widget under Widget setting unchecking full screen for android phone as following
 

ka04W000000OaZkQAK_0EM440000002ANd.jpeg

 
11. Run the document on iPad, as shown below:
 

ka04W000000OaZkQAK_0EM440000002ANR.jpeg

 
12.  Click "Add Photo" and select photos to upload.
 
 
 
KB38007


Comment

0 comments

Details

Knowledge Article

Published:

April 3, 2017

Last Updated:

December 30, 2018