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

User column definitions

It would be very useful to be able to define column types that have their own set of rules/formulae and to be able use them across several schemas so that changes in the base definition could be...

View Article


Using and comparing date data types

I'm not sure what data type now() returns. If I have a field with formula now() + days(10) it returns a date But if I declare date2 as a date field and use it like this:[date2,now()].min I get,...

View Article


Random test data for the format shown in the description

Hello Can i have something similar to the below 10.1002/2014JB011616/ 10.1002/(ISSN)2169-9356/ i need to have different value and have to generate 1000's of test data.how to do that and which should i...

View Article

Random test data for the format shown in the description

Is this any use? http://www.mockaroo.com/939135b0 I use random to control the distribution of which format appears - if it's a choice of two: if random(0,1) == 0 then __p1 else __p2 + __p3 end I...

View Article

Unable to get the desired number of data points with a POST request

I have a url of the following format wherein I'm setting the count to 100 for corresponding number of records:...

View Article


Unable to get the desired number of data points with a POST request

Can you replicate it by forking this jsfiddle? That would be very helpful. http://jsfiddle.net/vmgpycg5/

View Article

Using and comparing date data types

Looks like something that could be improved, but for now you can access the underlying Time value via "date2.raw" So for example, the following should work: [date2.raw, now()].min

View Article

Unable to get the desired number of data points with a POST request

I couldn't replicate the issue in jsfiddle. However, I forgot to mention that I'm using java in my code.

View Article


Unable to get the desired number of data points with a POST request

It must be the way that you're specifying the URL query parameters. Assuming the URL is constructed properly it should work. I suggest double-checking the URL in a debugger.

View Article


RegEx parentheses

I can't see how to get parentheses to appear in the RegEx.... Or is there a generic way to insert an arbitrary ANSI character code (e.g. \41)?

View Article

RegEx parentheses

I don't think there is a way. I can add something like [:oparen:] and [:cparen:] later this week. In the meantime can you add them with an inline formula (the f(x) button)?

View Article

RegEx parentheses

Yes that works, thanks.

View Article

Make copies of an entry in a JSON Array for other JSON Arrays

In my schema I have 5 'JSON Arrays', each with different fields, with all of the arrays needing to have the same ID as the first field. I generate a random ID for the first field in the first array,...

View Article


Make copies of an entry in a JSON Array for other JSON Arrays

You could use a formula to reference an id field outside of the arrays. Here is an example: http://mockaroo.com/1def1210. You can change the name of the id field to "__id" if you don't want to include...

View Article

Make copies of an entry in a JSON Array for other JSON Arrays

Thanks for the quick and easy response!

View Article


Make copies of an entry in a JSON Array for other JSON Arrays

One quick follow up, using the same schema above. The types 'Street Number' and 'Street Address' don't correlate. I use one in one array and the other in another, and I want them to be the same. I'm...

View Article

Make copies of an entry in a JSON Array for other JSON Arrays

You can use a formula: street_address.split(' ').first

View Article


Remove - or / from date

I tried using inline formatting with this.gsub(/[-]/,'') to remove the "-" from a date generated with the Date type and I received an error saying "error: Could not access blank value: Use || to...

View Article

Remove - or / from date

I think you need a backslash in front of the dash. A dash in brackets indicates a range so it needs to be escaped.

View Article

Remove - or / from date

Unless I misunderstood, this didn't seem to work. I'm actually using the same exact formula in-line with the SSN type and it works beautifully. The error I am getting referrs to accessing a blank...

View Article
Browsing all 2666 articles
Browse latest View live