Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Announcing v3.9 of the Red Hat Mobile Application Platform including Forms Data Sources

April 8, 2016
Conor O'Neill

    We have just completed the deployment of version 3.9 of the Red Hat Mobile Application Platform to all actively updated Grids.

    Summary

    The main items of note in this release are:

    • Data Sources for Forms
    • Swift Apps can be built in the Build Farm. Our SDKs will move to Swift in a later release
    • New Default Red Hat Forms Theme
    • New Read-Only Text type for Forms which can optionally use Data Sources
    • Performance improvements and bug fixes for Forms

    Forms Data Sources

    The major new feature of this release is Data Sources for Forms which I'm really pleased to tell you about.

    As you may know, our Forms Builder enables you to generate mobile applications with a dynamic set of Forms that contain both standard web controls and mobile-specific controls like location capture, signature, maps, etc. These apps can be auto-generated, then built in our Build Farm and distributed in our Enterprise App Store without ever seeing a line of code.

    Data Sources builds on this by enabling your developers to create reusable data sets from your back-end systems that non-developers can then attach to Forms elements.

    • You can create custom Data Sources that can connect to any back-end system
    • You can set the update schedule for contents returned by the Data Source
    • You implement each Data Source as an MBaaS Service in Node.js
    • We provide three example Data Sources as starting points - Static File, MongoDB and Internet
    • You can populate various Form fields from Data Sources including drop-downs and radio-boxes
    • You can display read-only textual information from Data Sources in Forms using a new field type
    • Non-technical users can make use of Data Sources without coding
    • You can share Data Sources across Forms
    • Multiple Data Sources can be served on different URLs from one MBaaS Service

    The easiest way to get started is to use one of our examples. Lets create a Data Source which pulls information from a remote CSV file and makes it usable in a Drop Down field in a Form.

    Create a Data Source Service

    1. In the Studio, navigate to Services & APIs. Click Provision MBaaS Service/API.
    2. On the left, choose the Data Sources category.
    3. Select the Static Data Source template
    4. Choose a name for the service and deploy it to an environment.
    5. Go to Service Details and make the Service public and then re-deploy when instructed to

    Customise the Data Source Service to work with CSV

    1. Go to the Editor for the Service and change application.js to add the second line here in the appropriate location:
      app.use('/static_ds', require('./lib/static-datasource.js'));
      app.use('/csv_ds', require('./lib/csv-datasource.js'));
    2. Browse to the lib directory in the Editor and create csv-datasource.js with the following contents:
      var express = require('express');
      var request = require('request');
      var router = express.Router();
      
      router.get('/', function (req, res) {
      
      var url = 'https://gist.githubusercontent.com/conoro/2090f52225832787766b3340c1c3caaf/raw/847108af1026bc07c42297ac699e0dbdc3a12195/workers.csv';
      
      request(url, function (err, resp, html) {
      if (err) {
      console.log(err)
      return handleError(err, res);
      }
      var people = [];
      
      var lines = html.toString().split('\n');
      for (var i = 0; i < lines.length; i++) {
      people.push({"key": i, value: lines[i].toString().split(',')[0], selected: true});
      }
      res.send(people);
      
      });
      });
      
      module.exports = router;
    3. The code above simply reads the remote CSV file and converts it to the specific JSON format we need. Your code here can be as complex as you need to get at the data you want and crunch it down to the data sets for your forms.
    4. You can view the example CSV I've created over on GitHub Gist. You could host your data anywhere. My example is a simple single column CSV file with a list of names.
      Roger Flopple,
      Demetrius Levenworth,
      Salamander Hammerhead,
      Ferrari Montenegro,
      Paul Corduroy,
      Hank Fracas,
      Ludwig Von Instagram,
      Lisa Toboggan,
      Heather Kerfuffle,
      Rebecca Beretta,
      Lindsay McMartinhamson,
      Mirandella Houndstooth,
    5. Edit package.json to add the request module in this location:
      "express": "^4.13.3",
      "fh-mbaas-api": "5.9.1",
      "request": "~2.40.0"
      },
    6. Re-deploy the Service code with those changes
    7. Get the URL of your Service in its details page and browse to https://the.url.of.the.service/csv_ds and you should see a JSON version of your CSV returned.
      [{"key":0,"value":"Roger Flopple","selected":true},{"key":1,"value":"Demetrius Levenworth","selected":true},{"key":2,"value":"Salamander Hammerhead","selected":true},{"key":3,"value":"Ferrari Montenegro","selected":true},{"key":4,"value":"Paul Corduroy","selected":true},{"key":5,"value":"Hank Fracas","selected":true},{"key":6,"value":"Ludwig Von Instagram","selected":true},{"key":7,"value":"Lisa Toboggan","selected":true},{"key":8,"value":"Heather Kerfuffle","selected":true},{"key":9,"value":"Rebecca Beretta","selected":true},{"key":10,"value":"Lindsay McMartinhamson","selected":true},{"key":11,"value":"Mirandella Houndstooth","selected":true}]

      This is the format the Data Source needs.

    Create the Data Source

    1. In the Studio, navigate to Drag & Drop Apps > Data Sources. Click New Data Source.
    2. Set a name and a description. Both are required.
    3. Choose your previously created MBaaS service and set /csv_ds as its endpoint
    4. Check you have done everything correctly using the Validate button
    5. Leave the other settings as they are
    6. Click Create Data Source

    Using the Data Source in a Form

    Note, these steps can be carried out by non-developers. Once you have your Data Sources setup and configured the access to them, your Forms creators can then make use of them without having to know the technical details of where the data is coming from.

    1. Navigate to Drag & Drop Apps > Forms Builder
    2. Open an existing form, or create a new form.
    3. Drag a Dropdown field on to the Form and select the created field
    4. In the Options section, check Use a Data Source
    5. Select the data source created in the previous step
    6. Save and deploy the form.
    7. See the data in the dropdown in the Forms Preview or just Build the App and use it

     

    You can read more of the technical information here and here on our Docs site.

    We're looking forward to seeing how you make use of this new feature set that many of you have been eager to try.

    Last updated: March 16, 2018

    Recent Posts

    • Add automated AI evaluations to your CI/CD pipeline

    • Configure input guardrails for an OpenShift AI voice agent

    • Intelligent inference scheduling with llm-d on Red Hat AI

    • What's new in Red Hat Ansible Automation Platform 2.7

    • Building and running Bazel applications on AutoSD: Toolchains, containers, and recommended practices

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.