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

Converting number field to Money

If you are having one debt and want to have another one from another financial center. Then you can do one thing and that is debt consolidation loan. This type of loan is dedicated to those people who...

View Article


Postal Codes only generate first 3 values

@mockaroo - this is still happening, do you know of a fix please? I'm also having a really strange issue where JSON Array nested postcodes aren't being affected by the country unless it's also nested...

View Article


Conditional JSON array

Hi,In one of my schemas, I would like to populate a JSON array only if another value is truehttps://mockaroo.com/16a3afe0 Let's say, if ifParamedic value is true, I want to get a random JSON array...

View Article

Forcing quotes around numbers for JSON

The JSON parser we're using wants numbers in a string format (ie: in quotes) to prevent any unwanted re-formatting in process. How do I force a field to produce something like..."mynumber" :...

View Article

HP printer stops working

I have been using Hp Designjet T120 printer for more than a year.It was connected to my Windows 7 system.But after upgrading it to Windows 10 I am not able to print through it.It is displaying an...

View Article


How to beatify the XML file outputs?

When downloading XML data, the file is missing the CR and LF that would make it human friendly. Is there a way to improve readability ? Thanks ! Here's what the file contains: <?xml version='1.0'...

View Article

How to beatify the XML file outputs?

Heu.... the XML tags didn't follow it seems.... Well you still get the idea...

View Article

Generating apartment or suite numbers

I'm creating a street address and would like to add an entry to handle either "Apt #" or "Ste #"

View Article


Image may be NSFW.
Clik here to view.

Generating apartment or suite numbers

Hello @jacob.elmer, what exactly is the data structure you're expecting? A naïve way to have an apparment number is as follows, see screenshot. Capture.JPG790x410 29.2 KB

View Article


How to get the value from array within an array in JSON

promotion.date_begin.date + days(random(10,20)) im trying to add the number of days in promotion.date_end field using promotion.date_begin.date + random days number but it keep saying field...

View Article

How to generate dates (in a data-set) excluding Sunday in each week

Hi, I wanted to generate dates for a data-set excluding the Sundays in each week, for every month scenario,I want to mock a exam taken by students every week for each quarter of the year excluding...

View Article

Forcing quotes around numbers for JSON

Probably not the best way of doing it; for some reason escaped quotes are "invalid syntax" in Mockaroo, so you can add fx to a Number field with:concat("", this, "")to get your number surrounded in...

View Article

How to generate dates (in a data-set) excluding Sunday in each week

Could you possibly use the add days function if it's a Sunday, so Sundays always turn into Mondays for example?if my_date.strftime("%A") == 'Sunday' then (my_date + days(1)).strftime("%Y-%m-%d") You...

View Article


Forcing quotes around numbers for JSON

thx! appreciated. strings allow us to 'proactively' avoid input problems with big numbers

View Article

Forcing quotes around numbers for JSON

How about using a character sequence instead of a number field? You can specify the format as #####.## and that will produce a number in quotes like "12345.67"

View Article


Forcing quotes around numbers for JSON

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

View Article

Forcing quotes around numbers for JSON

Yep, if you want a fixed number of digits then that'd be the best way

View Article


Are generated email addresses real ones?

There turned into one greater command I wished you to attempt. I got access by using temporary email from owlymail to have positioned a few area in there between them

View Article

Need Date Range check where current date (Today date) should exist between...

currentDate = Date.todaystart_date = Date("11/2/2017")end_date = Date("5/2/2019")currentDate.between?(start_date, end_date) Tried this logic, but it is not working for me. Please advise how I need to...

View Article

Order line per order id

Hey, simple thing: I created orders. Each order is represented by a unique id.Now I want to create an order line id per order id. Each order starts with the order line 1. Example: Order id | Order...

View Article
Browsing all 2665 articles
Browse latest View live