Anyone here has a sample application of Random Name generator using outsystems or using javascript in Outsystems. Appreciated if you can share your oml. Thank you!
I have update the oml according to first name and last name
I hope this help.
https://personal-abfdzfhg.outsystemscloud.com/SampleRandom/RandomNameGenerator?_ts=638138157997917893
Hello @RD.
I have created this via sample data set by using a simple SQL query, I am attaching a sample that could help you to demonstrate it
Sample - Random name generator
Also, check the attached Oml
I hope this helps
Best RegardsTousif Khan
Thanks also Tousif Khan for this, this also solve the problem.
This might help you
https://www.outsystems.com/forge/component-overview/10130/random-string-generator
I already tried this one but not get the right result.
Maybe you can try this API.
https://en.namefake.com/api
Maybe you have any oml for this
Hello
Do have data set for name, or you would like to get the random name data via API ?
ThanksTousif Khan
Can we pull the names via external link. Something like this - https://replit.com/@theunlikelydev/Random-Name-Generator
Hello RD
you can create a random name generator by creating a list of names and using the Random function to select a name from the list. Here are the general steps:
Create a list of names in Outsystems. You can create a static entity with a Name attribute and populate it with a list of names.
Create a screen in Outsystems to display the generated name.
Create an action in Outsystems to generate a random name. In the action, use the Random function to select a name from the list of names created in step 1.
Call the action in the screen created in step 2 to display the generated name
// Create an array of names
var names = ['Alice', 'Bob', 'Charlie', 'David', 'Emma', 'Frank', 'Grace', 'Henry', 'Isabella', 'Jack'];
// Generate a random number between 0 and the length of the names array
var randomIndex = Math.floor(Math.random() * names.length);
// Select a name from the names array using the random index
var randomName = names[randomIndex];
// Display the generated name
console.log(randomName);
Hello RD,
checkout this discussion
https://www.outsystems.com/forums/discussion/50411/how-to-generate-random-string-and-integer-in-server-action/
I has all the details.
Thanks!
I have attached the sample oml for your use case.
Thanks
Rizwan
Hi, your oml is a very big help. Is there a way we can do it like First Name and Last Name or something like this (https://replit.com/@theunlikelydev/Random-Name-Generator) that we are pulling names in the external link. Thank you
Thank you so much Rizwan, this one clears my mind.