Subject: String functions in Summary Builder (substring, replace, toUpperCase, etc.)
Hi, Isomorphic!
I’m using the Summary Builder and I’d like to know if there is any built-in support for string operations on the columns used there.
Specifically, I’m looking for methods similar to the standard JavaScript/string APIs, such as:
This is analogous to how numeric functions like max(), avg(), toPrecision(), round(), etc. are available in the Formula Builder.
My questions are:
Environment:
Thanks in advance for any guidance!
Hi, Isomorphic!
I’m using the Summary Builder and I’d like to know if there is any built-in support for string operations on the columns used there.
Specifically, I’m looking for methods similar to the standard JavaScript/string APIs, such as:
- substring()
- replace()
- replaceAll()
- toUpperCase()
- toLowerCase()
- trim()
- padStart()
- padEnd()
- repeat()
- split()
- length()
Code:
toUpperCase(fieldName) substring(fieldName, 0, 5) replace(fieldName, "old", "new")
This is analogous to how numeric functions like max(), avg(), toPrecision(), round(), etc. are available in the Formula Builder.
My questions are:
- Is there currently a way to use these kinds of string functions directly in the Summary Builder?
- If not, is there a recommended approach to extend the Summary/Formula Builder with custom string functions so they can be used from the UI?
- Any examples or docs you can point me to for registering custom functions (for either Summary Builder or Formula Builder) would be very helpful.
Environment:
- SmartGWT version: 13.1 pro
Thanks in advance for any guidance!
Comment