Loading Data From A Data Suitcase (MOJO)


There are times when you want to pre-load data from a web service. In this example we are using a Data Suitcase or (MOJO) Journey Objects which is stored on the server.

Firstly we have an interaction which uploads the Data Suitcase which contains

a list of the top V8 super car drivers and information.

$t->setJourneyObject('V8s', $t->result);
return('MoJo Uploaded Successfully');

We then create another interaction with is type "xslt" and server based/ The Mojo XML needs to point to the data suitcase "V8s" which was saved in the first interaction. The mojo xml is

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="[">]

<xsl:template match="/">
    <h1>Drivers List</h1>
      <th>Best Bathurst Result</th>
    <xsl:apply-templates select="/Drivers/Driver">

<xsl:template match="Driver">
    <td><xsl:value-of select="DriverID" /></td>
    <td><xsl:value-of select="Name" /></td>
    <td><xsl:value-of select="BestBathurstResult" /></td>
    <td><a interaction="V8_SUPERCARS_DRIVER EDIT" mojo="V8s" xpath="//Driver[DriverID={DriverID}]">Edit</a></td>


You will need a BlinkForm built with the matching the fields in the xml and the call to the interaction in this case "V8_SUPERCARS_DRIVER EDIT".