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

Is it possible to specify a field to sort the generated data by?

It isn't currently possible to sort arrays. Can you elaborate on your use case? Maybe it's something I can implement soon.

View Article


Is it possible to specify a field to sort the generated data by?

I am using Mockaroo to generate JSON files to use mock services for a web application (loaded using ajax). I use these mock services to populate datagrids and I would prefer it if the json arrays were...

View Article


How do I map a certain ID with a name?

I've just started using Mockaroo, and boy, is it amazing! Kudos to the dev! I'm not really good with Ruby, so I still haven't gotten my head wrapped around the syntax as of now. My question is pretty...

View Article

How do I map a certain ID with a name?

EDIT : Sorry, I'm a douche! Turns out I was using 'elseif' instead of 'elsif' AND I wasn't using 'end' at the end of the conditional!

View Article

Unable to upload a dataset eventhough it is in .csv format

Hi I have two .csv files where I am able to upload one but not the other. I am unable to find the difference between two datasets.

View Article


Image may be NSFW.
Clik here to view.

How do I map a certain ID with a name?

Lol, I think elsif is the #1 problem new Mockaroo users have with formulas. Half considering a find/replace of elseif to elsif before processing the formula

View Article

Unable to upload a dataset eventhough it is in .csv format

I'm guessing it's an encoding problem. CSV files need to be UTF-8 encoded. Best way to force it into the correct encoding is to copy and paste the contents into a good text editor like sublime and...

View Article

Error: Please use field(...) because it starts with an upper case letter

HiI am trying to create an email field. I created the formula:concat(FirstName,".",LastName,"@","google.com")But I keep getting the error message:error: Please use field('FirstName') to access...

View Article


Error: Please use field(...) because it starts with an upper case letter

You want: concat(field('FirstName'), ".", field('LastName'), "@", "google.com") The underlying reason you need to use field() when names are capitalized is that Ruby assumes all capitalized variables...

View Article


Error: Please use field(...) because it starts with an upper case letter

It works, you are a genius! Thanks!

View Article

Generating Data dependent on the corresponding value in another dataset

I have sale-transaction dataset that has random values for fields "custid" and "order_number". I want to generate another dataset customer_feedback that randomly picks "custid" and corresponding...

View Article

Generating Data dependent on the corresponding value in another dataset

Did you try using data set option ? if not, create a test data for sale-transaction and upload them as dataset.in the customer feedback schema use dataset option for order_number and custid and select...

View Article

Generating Data dependent on the corresponding value in another dataset

No, I haven't tried data set option. I will try it.thanks for the help

View Article


Generating Data dependent on the corresponding value in another dataset

Used the data set option. It allows me to pick the columns from the sale-transaction. But how do I make sure that once it picked a value for custid, it get the corresponding value of order_number from...

View Article

Generating Data dependent on the corresponding value in another dataset

Sorry, your earlier suggestion worked. I have it working. Thank you for your help

View Article


Image may be NSFW.
Clik here to view.

Multiple fields in node

I would like to have a repeating (random) node in XML containing several fields, for example: node start string1 int1node end..node start string1 int1node end I tried several things but I cannot get...

View Article

Multiple fields in node

This isn't supported for XML output yet. The closest thing to it is the JSON Array type, which allows you to randomly generate a range of child records. However, when you use this in XML the value is...

View Article


Datasets upload via REST API

Hello! I checked the REST API docs but didn't find if there is a way to upload a dataset via the REST api. So this way I could generate random data from a schema, download the data, upload the dataset...

View Article

Last 4 numbers for another field

I have a random number field and I want to have another field that is the last 4 numbers of my original field I tried the following but I am guessing its for strings then Integers...

View Article

Last 4 numbers for another field

What about following? Current_Field1 % 10000

View Article
Browsing all 2665 articles
Browse latest View live