Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Home
Jobs
Ideas
Members
Mentorship
User Groups
Downloads
Platforms
OutSystems.com
My Platform
Community
Resources
Support
Search in OutSystems
Log in
Sign Up
Community
›
Forge
›
Assets list
›
String Format Utils
String Format Utils
Stable version
1.0.0
(Compatible with
OutSystems 11
)
Uploaded
on
23 October 2022
by
5.0
(2 ratings)
Overview
Reviews
Versions
Documentation
Support
String Format Utils
Details
Module that expose client and server action to format string or generate random string.
Read more
What is the string formation action?
The "StringFormat" composite formatting actions (both server and client) takes a list of objects and a composite format string as input.
A composite format string consists of fixed text intermixed with indexed placeholders, called format items. These format items correspond to the text in the list. The formatting operation yields a result string that consists of the original fixed text intermixed with the string representation of the objects in the list.
For developers familiar with C#, it is an action that attempts to replicate ( without individual item formatting functionality ) the String.Format method
Indexed placeholder
The syntax for a placeholder is {[INDEX]} where [INDEX], also called a parameter specifier, is a number starting from 0 that identifies a corresponding item in the list of objects. That is, the format item whose parameter specifier is 0 formats the first object in the list. The format item whose parameter specifier is 1 formats the second object in the list, and so on.
The matching braces { and } are required.
Example of a string with placeholder:
" Hi {0}, My names is {1}"
Release notes
(1.0.0)
Reviews
(0)
Team
Other assets in this category
Functional libraries & utilities, Other functions & libraries
XML Records
Afonso Carvalho
An extension that allows you to convert an hierarchical structure, composed of Records and/or RecordLists to XML. It also allows you to read an XML into the structure.
8066
Event System
Leonardo Fernandes
Use custom events in your OutSystems apps! Communicate events instantly between web blocks, refactor your screen logic, use divide-and-conquer for complex forms, build reusable components, and much more. And do all of these with a beautifully simple API.
2741
ardoJSON
João Barata
Generic extension for serializing and deserializing Outsystems values into and out of JSON
12543
More from Andrea Lembo
Popup Add-on
Andrea Lembo
This module adds some features to standard OS popup.
171
Client Awaitable Popups
Andrea Lembo
Block to show a dialog inside client action and wait for a user response.
33
Client Device
Andrea Lembo
Module that expose client action to retrieve info about Battery, Location, Network, Browser context of the current device
14
Loading
Loading...