Kiandra Insights

Open Source Plugins in OutSystems

Stuart Harris Kiandra Software Development Team Lead and OutSystems Champion
by
Stuart Harris
Principal Developer and OutSystems Champion
|
September 6, 2019
Stuart Harris
Principal Developer and OutSystems Champion
September 6, 2019
OutSystems logo on a laptop

This is part one of a three part blog series on OutSystems development and how to create plugins.  

Over the years there have been a number of rapid application development tools – but none of the ones I’ve used ever really seemed to help deliver a project faster than low-code platform OutSystems.

Some of them built unmaintainable systems, where the first version works great, but then it becomes very difficult to change. Others provide high quality in one part of the system, while not so much in other parts. For example, great workflow but poor user interface.

OutSystems has a community Forge for sharing open source plugins

An essential part of any software platform today is the library of components available to extend the platform. Each application has different needs and these libraries allow developers to quickly provide a unique combination of features.

OutSystems does this in two ways, via the "Forge" and via extensions.  The Forge is a community repository of OutSystems plugins, with packages such as GoogleMaps, barcode reading, file uploaders and more.  Extensions, allow you to break out into .NET code, using NuGet packages if desired. OutSystems can also expose and consume SOAP and REST APIs.

Why build another file upload plugin? (Internet Explorer 11)

Now, OutSystems already has a bunch of file upload extensions in the Forge. The thing is, none of the existing plugins appear to support Internet Explorer 11, and a few of my current projects required support for none other. Thus started my quest.

First, I needed to find a JavaScript file upload control. My extensive Googling found FilePond. FilePond is an awesome open source JavaScript upload control built by Rik Schennink. It provides a drag and drop interface, thumbnails, simultaneous multiple file upload with support for all modern browsers and some not so modern (read Internet Explorer 11). Yay! And also, voila!

Introducing the FilePondUpload plugin


Stu_OS.png

Standing on the shoulders of giants, enter the FilePondUpload OutSystems plugin. Built? Well more like cobbled together.

The plugin lets you easily wire up a top quality file upload control with minimum effort and all the features required for a real live system.  This includes limiting the size and type of files, ensuring only authenticated users can upload files, and handling file upload errors. The look and feel can also be modified with CSS.

How to use it:

  • In the FilePondUpload plugin there are two "web blocks" available, the UploadBlock and AutoUploadBlock.
  • The UploadBlock will upload the file, and allow you to retrieve it when a submit button is clicked.
  • The AutoUploadBlock will trigger an event when a file is uploaded without requiring the user to click another button.
pic-2.png

To wire up file upload:

1. Drag one of the web blocks onto your page.2. Create a FilePondConfig local variable3. Set the configuration attributes.  There are a bunch of helper actions that will create standard sets of configuration for you, such as CreateAcceptedFileTypes()4. Apply the configuration to the web block.5. Implement an action to receive the uploaded file.

The UploadBlock also requires these steps:

1. Create a local variable called UploadTokens of type text2. Drag an input text widget into the UploadBlock placeholder. The input control will be hidden on the page.3. Use the UploadTokens variable as the value of the input text widget4. On Submit, use the FilePondUpload_GetUploadedFiles(UploadTokens) action to retrieve uploaded files.

pic-3-(1).png

Checkout the demo page to give it a try. I hope this gives at least a general idea of how flexible the OutSystems platform can be, and one specific way it can be extended.

Next blog in this series is a deep dive into how the upload was built.

Share article
LinkedIn.com

More insights

An abstract illustration of a young woman testing software on her laptop

Performance testing is a commitment to excellence

Farzin Karthik
20/11/2023

At Kiandra, we recognise and acknowledge the pivotal role of performance testing in achieving this fine balance. In this blog, we will unravel what performance testing truly means at Kiandra and why it's a cornerstone of our development philosophy.

Read more
OutSystems Premier Partner badge sits on a dark blue background

Kiandra becomes first Premier OutSystems partner in the ANZ region

Meghan Lodwick
10/11/2023

Kiandra are proud to announce that it has attained the status of Premier OutSystems Partner – the most important partnership status from the world’s leading enterprise low-code platform.

Read more
Wreath surrounds the text "OutSystems Partner of the Year 2022"

OutSystems Top Partner ANZ for 2022

Meghan Lodwick
18/9/2023

Kiandra has received the OutSystems Partner of the Year Award for the entire Australia New Zealand region. The custom software solutions provider was recognised at the ‘Top Partner of Australia and New Zealand’.

Read more

Let’s discuss your next project

Whether you’re curious about custom software or have a specific problem to solve – we’re here to answer your questions. Fill in the following form, and we’ll be in touch soon.

Email

Would you like to receive an occasional email showcasing the latest insights, articles and news from our team of software experts?

Thanks for reaching out! One of our software experts will be in
touch soon to help you with your enquiry
Oops! Something went wrong while submitting the form.

This website uses cookies to improve your experience. By browsing our website you consent to the use of cookies as detailed in our Privacy Policy