Training
Training
Welcome
Guided Paths
Build an App
Training Planner
Courses
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Home
Jobs
Ideas
Members
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
Give us feedback
String Format Utils
Stable version
1.0.0
(Compatible with
OutSystems 11
)
Uploaded on
23 October 2022
by
Andrea Lembo
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)
Related assets
Advanced Excel
Carlos Freitas
Advanced Excel integration with the export/import of Excel files. Enables data formatting, even automatic creation of Excel charts. This enables writing of binary multi-sheet excel-files without the use of an office installation.
14341
Html2PdfConverter
Guilherme Pereira
Simple to use html to pdf/image converter. Based on wkhtmltopdf (https://wkhtmltopdf.org/)
13045
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.
7456
More from Andrea Lembo
Popup Add-on
Andrea Lembo
This module adds some features to standard OS popup.
53
Client Awaitable Popups
Andrea Lembo
Block to show a dialog inside client action and wait for a user response.
20
Client Device
Andrea Lembo
Module that expose client action to retrieve info about Battery, Location, Network, Browser context of the current device
7
Loading...
Loading