Description

When you create a new Attribute, GenRocket will try to automatically and intelligently assign a Generator to it. When no Default Generators match the Attribute, the SimplePatternGen Generator will be assigned by default. A new Generator can be assigned to an single Attribute in one of three ways: 

  • Use the Quick Generator Replacement Menu to select and assign a new Generator. 
  • Use the Remove Generator Button to remove the current Generator and select a new Generator.
  • Add or link additional Generators to the single Attribute.


In This Article

The article will show how to do the following: 


How to Replace an Assigned Generator for a Single Attribute

For this example, the currently assigned Generator will be replaced with a new Generator. This method is most suitable when you know the name of the Generator. If you do not know the name, please see the next section of this article.

  • Select the Attribute within the Domain Dashboard. For this example, the town Attribute has been selected.



  • Click on the Quick Generator Replacement Menu.



  • Begin typing part or all of the Generator Name and then click on the Generator to make a selection.

  • For this example, "town" has been entered and the BulgariaTownGen Generator will be chosen.



  • Click the Replace button after selecting the appropriate Generator.



  • The selected Generator will now be the only assigned Generator for the Attribute.


How to Remove and Assign a New Generator to a Single Attribute 

For this example, the default assigned Generator will be removed and then a new Generator will be assigned to the Attribute. 

  • Select the Attribute within the Domain Dashboard. For this example, the town Attribute has been selected.



  • Click the Remove Generator button within the Attribute Tab.



  • Click Yes in the pop-up window to remove the current Generator.


  • In the Add A Generator dialog, select the Generator you would like to use for the Attribute.

  • Use the input field to search for a specific Generator or click on a Category on the left side of the dialog.

  • Click on the Plus + or the Generator window to add a Generator to the Attribute.



  • You will be automatically returned to the Attribute configuration in the Domain Dashboard.

  • In this example, the BulgariaTownGen Generator has been assigned to the Town Attribute.

  • Once the Generator has been assigned, you can modify the parameters within the Generator configuration.


    Note: Remember to click the Save Generator button after making any changes to the Generator configuration.


How to Assign Additional Generators to a Single Attribute

Additional Generators can be assigned to a Generator and linked for a single Attribute. A linked Generator can be referenced by other Generators assigned to the Attribute and used to generate more complex data.


If you know the name of the Generator, click on the Start typing to select Generators field underneath the Linked Generators Table and enter part or all of the Generator Name into the field. 



Then click the Add button located to the right of this field.


If you do not know the name of the Generator, follow the steps below to view all available Generators and make a selection: 

  • Click on the Add Generator button underneath the Linked Generators Table.



  • In the Add A Generator dialog, select the Generator you would like to use for the Attribute.

  • Use the input field to search for a specific Generator or click on a Category on the left side of the dialog.

  • Click on the Plus + or the Generator window to add a Generator to the Attribute.


  • For this example, the USStateAbbrevGen Generator will be selected.

  • The added generator will appear below the first assigned Generator in the table. Once the additional Generator has been assigned to the Attribute, you can change the position, give it an Alias, and make Parameter configuration changes. 


    Note: To learn more about linking Generators, click here


Video Training

The following video can be viewed to learn more about how to assign a Generator to an Attribute: