Quantcast
Channel: Mockaroo Community Forum - Latest posts
Browsing all 2665 articles
Browse latest View live
↧

Combine SQL Expression/Text with field?

Is there a way to combine a SQL expression with a field.For example: to_date(dateField, yyyy-mm-dd) Or is it possible to write a field without a comma afterwards.For example:Field without Comma:...

View Article


Swagger document

No, just this: http://mockaroo.com/api/docs

View Article


Combine SQL Expression/Text with field?

Yes, you can use the code(string) function in the Formula type: code("to_date('#{date}', yyyy-mm-dd)") Here is an example schema: http://mockaroo.com/fae6eff0

View Article

Tree-like hierarchical self-related relations?

It's not possible to refer to other rows, so you would need to compute the parent id based on a value in the row, perhaps the id, using a Formula field like: if id == 0 then nil else id - 1 end

View Article

Time series data? (access array sibling)

You can't refer to a previous element in the array, but you can refer to field in the parent object, so you could do something like this: http://mockaroo.com/7dc44a00

View Article


Global index shared between fields

Hi there, Is there a way of using the same Ruby variable (means a global variable - def @@index = 1) between multiple formula fields ? I would like to increment this index each time I use it in fields...

View Article

Global index shared between fields

Not in general, but for this specific case you can add a sequence field to your array to get the index.

View Article

Problem with from_dataset formula

This is for my schema here:https://www.mockaroo.com/schemas/47901 I'm getting the error:Could not access blank value: Use || to provide a default value for blank fields. Example: (my_field || 0) + 1...

View Article


Rest call to csv data

I'm making a REST call to view my data as a CSV:http://www.mockaroo.com/api/generate.csv?key=[key_id] But I get the following error:{"error":"A JSON text must at least contain two octets!"} I assume...

View Article


Rest call to csv data

You either need to specify a "schema" param to use an existing schema by name or a "fields" param to define the fields to generate.

View Article

Rest call to csv data

Doh! Many thanks for the speedy response :0)

View Article

Problem with from_dataset formula

It looks like there are two spaces between "Arbys" and "Store" in the name of your dataset. Also, the value in the join criteria should not be quoted. The correct formula is: from_dataset("Arbys Store...

View Article

Problem with REST call to generate XML

I am trying to fetch some XML data with this REST call, as described in the API docs:http://www.mockaroo.com/api/generate.xml?key=[my_key] + '&fields=' + [my_JSON]; I am getting this response from...

View Article


How can I generate a list of first names?

Hi. I loaded in datasets menu list of first names (own language) and I try to create a schema. But I do not find in the list of types of its type that I've downloaded. I tried and create a project....

View Article

How can I generate a list of first names?

You can use your uploaded dataset in a schema by selecting the "Dataset Column" field type and then selecting the dataset from the dropdown menu.

View Article


Problem with REST call to generate XML

Sorry about that. Looks like you found a bug. It should be fixed now.

View Article

Problem with REST call to generate XML

It's working for me now. Thank you!

View Article


Image may be NSFW.
Clik here to view.

How are dataset names sorted?

When I view my list of datasets on https://mockaroo.com/lists, they are listed in alphabetical order. However, when I use "dataset column" as a data type when creating a schema, the dropdown menu...

View Article

Adding random days between two dates, without time

This happens to me all the time. If I set a start date in format yyyy-mm-dd, and then for the end date use a formula such as startDate + days(5), the result always includes time. Luckily, upon insert,...

View Article

Accessing jsonarray values

i'm trying to put the ratio of two jsonarray values into a third row, but i can't seem to get it working. any idea? here's a basic example:https://www.mockaroo.com/4d3f0800

View Article
Browsing all 2665 articles
Browse latest View live