16.9.6.4 Defining and Using Global Substitutions

Define an application-level substitution for constant values you need to reuse across the app.

When your app needs to work with a constant value that you might need to reference from many places, define an application-level substitution. In this use case, the name of the object bucket the app uses is a good candidate. Visit the Substitutions tab of the application definition under Shared Components to configure one.

As shown below, an S_OBJECT_BUCKET_NAME substitution string has the corresponding value of companion-bucket. Should the object bucket name ever change in the future, you can update this value in one place, and all of its references throughout your app start using the new value.

Figure 16-94 Use Application Definition Substitutions for Global Constants



Here, you reference it using an Item named S_OBJECT_BUCKET_NAME when configuring bucketnameREST Data Source parameter value as shown below.

Figure 16-95 Referencing Global Constants as Items