UI Sample for Linked Generators
This lesson provides an example of how to set up Linked Generators for a fullAddress Attribute. The following data will be combined using Linked Generators:
- street address
- city
- state
- zip code
Five Generators will be linked within the Attribute to generate a full address that includes the street address, city, state, and zip code. Let’s get started!
Note: This example shows how to combine a generated data for a US address. The same steps can be used for generating full address in other countries or to concatenate other types of data.
Step 1: Select the fullAddress Attribute
Select the fullAddress Attribute within the Domain Dashboard.
Step 2: Add the USStateCapitalGen Generator
Enter USStateCapitalGen within the input field and then select it within the menu. Click the Add button.
Step 3: Add the USStateAbbrevGen Generator
Enter USStateAbbrevGen within the input field and then select it within the menu. Click the Add button.
Step 4: Add the USStateCapitalZipCodeGen Generator
Enter USStateCapitalZipCodeGen within the input field and then select it within the menu. Click the Add button.
Step 5: Add the ConcatGen Generator
Enter ConcatGen within the input field and then select it within the menu. Click the Add button.
Step 6: Add an Alias for each Linked Generator
Use the Pencil icon to add an Alias for each Linked Generator. This makes them easier to identify when selecting a Generator to reference.
Step 7: Reference the First Four Linked Generators within the ConcatGen Generator
Double click to reference a Linked Generator.
Select the Attribute Generator Tab and then click on the Plus (+) icon to select a Linked Generator.
Besides referencing Generators, you can also enter punctuation, characters, or words. Enter a Comma and then press the Enter Key.
Next, click Add Space. This can be used to place a blank space between two generated values.
You will need to complete some of these steps again to ensure this format is used for the fullAddress Attribute: 100 N Street, Chicago, IL 60607.
Important:
Remember to click the Save Generator button to save changes made to the ConcatGen Generator Parameter configuration.
The completed configuration for the ConcatGen Generator is shown below:
Here is the sample test data. Only data generated by the ConcatGen Generator (fullAddress) will be part of the generated test data.
Link:
https://genrocket.freshdesk.com/a/solutions/categories/19000103806/folders/19000151467?view=all
Search GenRocket Knowledge Base
Related Assets
Linking Generators
Linked Generators is a very powerful GenRocket feature because linked Generators are able to directly reference each other within an Attribute
Read More