MicroStrategy ONE

Link Drill Handler Sample in iOS

Sample name: MSILinkDrillHandler

iPad                                                                                         iPhone

    

Functionality showcased: This sample illustrates how to use custom events and custom link drilling. In this sample, every third time that link drilling takes place, a screenshot is taken and shared with the view controller. Every other time that link drilling takes place, the URL API is processed as usual.

Using the sample: The following instructions will help you deploy this sample to your mobile device or simulator.

  1. Install the Mobile SDK on your development machine. 
    1. On a Mac® computer, go to the MicroStrategy Download site and download the iOS Client file for the latest Mobile SDK.

      The latest Mobile SDK may or may not be the same version as the version of Intelligence Server you are using.

    2. Double-click the downloaded MicroStrategy Mobile SDK.dmg file.

    3. Click Agree to accept the terms of the license agreement. This opens the disk image. 

    4. Copy all the folders to your local drive. 

    5. Eject the disk image. 

  2. Build and deploy the sample. 

    1. Download the .zip file containing the custom files for the sample and unzip it to a location on your machine.
    2. Launch the MicroStrategy Mobile project in Xcode®. Double-click MicroStrategyMobile.xcodeproj
    3. Add the custom files for the sample to the project.

      1. Expand MicroStrategyMobile, right-click the Custom folder, and choose "Add Files to "MicroStrategy Mobile.
      2. Navigate to the location where you unzipped the custom files for the sample and select them.
      3. Make sure the check box for Destination: Copy items if needed is not selected.
      4. Select the radio button for Added folders: Create folder references.
      5. Select the appropriate check boxes for Add to targets.
      6. Click Add. The files are added to the Custom folder.


    4. Click the Run button to compile and deploy the application to a simulator. Confirm that it compiles and deploys successfully.

      To upload the application to a device, set the destination in the scheme to the mobile device and then build and run. For other requirements on deploying to a device, refer to documentation from Apple. You can access useful links to the Apple documentation from the Distributing iPhone or iPad Applications topic.   

  3. Use the sample. 

    Launch the MSILinkDrillHandler application from the mobile device or simulator.

See also