Blog Viewer

Import Code Values as Constants

  

Introduction

If the constant values you want to define are already defined in code groups, you should execute a query for the values you want and import them as constants.

QUICK STEPS
1 Click the Tools icon and select Constant
2 Add a group
3 Enter the ID
4 Click OK
5 Select the type of constant you want to add
6 Enter the query
7 Retrieve the schema
8 Enter the constant details
9 Import the constants
10 Save the Constants file

Detailed Steps

Step 1. Click the Tools icon and select Constants.




Step 2. Add a group.




Step 3. Enter the ID.





Step 4. Click OK.




Step 5. Select the type of constant you want to add.

You are adding constants by executing a query, so select Query.




Step 6. Enter the query.

The query retrieves values from the application code groups. 





    Step 7. Retrieve the schema.

    Click Get Schema to retrieve the table's column IDs so you can map them to the constant details.




    Step 8. Enter the constant details.

    To import constants via query, you need the following details:

    • Name Column: This is the table column whose value you want to use to refer to the constant.
    • Value Column: This is the table column whose value you want to use as the constant value.
    • Description Column: This is the table column whose value you want to use as the constant description.
    • Group Name Column: This is the table column whose matching values you want to use as a group names if you are creating multiple groups of constants with one query.





    Step 9. Import the constants.

    Click import to create the new constants. This will also create new groups if you have entered a Group Name Column.

    In this example, two groups will be created: Domestic Relationships and Gender.






    Step 10. Save the Constants file.

    This post is part of the Rules topic. Click here to open the Rules Overview.


    #Develop

    #Rules
    #Task Steps
    #Everyone
    #Text Help

    0 comments
    31 views

    Permalink