Initializing help system before first use

Reviewing and Changing the Attachment at Runtime

With an attachment built-in to the app archive, it is always accessible at runtime (subject to the appropriate permissions).
  1. Republish your app, then reload and run Scenario 1.
    The value loaded into cautionText from the caution.txt attachment is displayed:

    Reviewing Contents of an Attachment

    Loading an Attachment via the App Archive

    This demonstrates that the text ** Text to be replaced ** comes from the model as was configured earlier.

  2. Click the Actions icon Actions Icon in the top right of the browser, and select App Attachments from the drop-down menu.

    The Actions Menu

    Actions Menu

    The Attachments Dialog appears, in which a single attachment is listed - caution.txt.

  3. Click the Edit with Text Editor icon Edit with Text Editor Icon and replace the existing text with:
    cautionText:"WARNING: Share prices can go down as well as up."
  4. Click Save, Close and Close again.
  5. Reload Scenario 1.
    The caution text has been changed.
    Attachment Text Replaced

    Result of Changing an Attachment at Runtime

    A runtime change to the attachment has made its way back into the model, where it was marshaled into the cautionText entity and displayed once again. Note, however, that this required a reload of the app data because the code which reads the attachment was added to the datainput procedure. More generally, attachments can be accessed from anywhere in your code and their accessibility is not dependent on reloading data.