how can I get the number of digits? I can get the search the field and find the biggest number using the :max parameter but I’m not sure what to do after that…
Search for Datas: Each item’s Text Field 1: Format as text [Content to show per list item= This numver]: Extract with Regex [Regex Pattern = \d]: Count
Nothing fancy here. It is simply converting the list of numbers to a string, and then the regex is counting all numeric characters.
I’m not exactly sure what you want your final result to be (total number of characters, max number of characters), but this method can be adapted to your needs.
gives me a result of 497 - looking at data table, specifically the Number Field 1 field, they largest number is a 5 digit one so that’s what I’m hoping to be returned.
I basically want to search a specific column in the data table and get the longest value and set that as the maximum character/digit length so I can then set a width size for it’s column in a table
To take a step back (which hopefully helps) I have a ‘Data’ table that is made up of 10 text fields (Text Field 1 through to Text Field 10), 15 number fields (Number Field 1 through to Number Field 15) and 3 date fields.
I then have a form that allows the user to upload a csv file (with the same headings) and this imports fine - here’s the App Data:
During the process of the importing and then the creation of the fields, I also successfully get the count of characters for the text fields which then allows me to determine the width for each column in the following table:
I want to do the same for each number field. You’ll notice that the 6th column isn’t showing a title and that’s because I dont have a width set of length of 497 so it reverts to the min width size of 64.
Do a search for Datas:each item’s Number field:format as text(
Content: This number:formatted as (no thousands separator, 0 decimal places):number of characters
Delimiter: ,
) :split by ,:each item converted to number:max
This should return the maximum number of digits in your search.