Last 4 numbers for another field
I like using % as the previous poster mentioned. You can also convert any number to a string using to_s and any string to an integer using to_i.
View ArticleImport formula error or bug
I've created following schema manually, and after that exported it well to .schema.json file.http://mockaroo.com/e7d52c80 Now, when I try to Update from file... and upload back generated json, formula...
View ArticleImport formula error or bug
The formula property is actually the inline formula that you can add to any field (the f(x) button). For fields of type formula, the actual expression is stored in the value property.
View ArticleImport formula error or bug
I understand it well. thx. But try to Update from file..., the problem is that it will not import formula's value field properly. Just try, please.
View ArticleFormula passes syntax check but generates all null values
I have a table with an employee appraisal rating column and a summary column. I want the contents of the summary column tied to the value in the rating column. I tried using this formula, and it...
View ArticleFormula passes syntax check but generates all null values
Solved my own problem. After fooling around some more I discovered I needed to remove the single quotes around the rating numbers since they are really numbers, and not just text. Using this: if...
View ArticleAccessing "root" field from a JSON array
Hi,If my schema is something like: name: 'a',details: { detail1: 'b', detail2: 'c',} and i want "details.detail2" to take the value from "name", how can I do that? thanks!
View ArticleCalculate age based of a date field
I have a date field that I am using as dateOfBirth. How can I calculate the age of that person on a certain date based on the date of birth?
View ArticleCalculate age based of a date field
You can use a fomula field with something like date_diff('years', dob, now()).to_i
View ArticleAccessing "root" field from a JSON array
Fields from the parent scope are available in the child scope, so you can use a formula field with the value of "name".
View ArticleAccessing "root" field from a JSON array
I tried that but it didn't work.. it says the "name" is not defined and when I uses fields inside the details (such as detail1) it finds them without writing the "details." prefix.
View ArticleAccessing "root" field from a JSON array
Here's a working example: http://www.mockaroo.com/9d551620
View ArticleAccessing "root" field from a JSON array
Thanks but you didn't use JSON array there. That's my problem
View ArticleAccessing "root" field from a JSON array
I've updated the example to use JSON array. The same should work for both objects and arrays: http://www.mockaroo.com/9d551620
View ArticleReference a field in a formula - heavily nested json
Hi there, I have a heavily nested JSON structure and I'm trying to access the value of one nested field to use in a formula for another nested field at the same level. The nesting can be seen in the...
View ArticleAdding random days between two dates, without time
I am seeing the same issue as the original reporter. I am using XML format and referring to the original field using field(xxxx.xxxx) + days(90)
View ArticleAdding random days between two dates, without time
Can you save your schema and post the share link at the bottom?
View ArticleReference a field in a formula - heavily nested json
Hi Jon, sorry for the delay. If both fields are at the same level of nesting you can just use the field without the rest of the path. So you should be able to just refer to the field as type.
View ArticleAdding random days between two dates, without time
https://www.mockaroo.com/b05ba2e0 Note that I un-did the troublesome field as I needed to move on. But you could re-create by adding a field that implements the formula I pasted in the prior message.
View ArticleZip codes that tie back to address/city/state
Hiya, I have street address, city and state fields setup and i was wondering how to best get a zip that ties back to this address? SR
View Article