How do I rename the Show action for a custom object related to an account?

When you create a custom object and link it to a standard object such as an account, the "Show" action includes the name of the relationship rather than the name of the object itself. For example, a custom object named Contract, displays "Show ContractsForAccount" (the name of the relationship) in the Action Bar instead of "Show Contracts". You can fix the action names by changing the SubViewLabel variable in Oracle Visual Builder Studio. Here's a step-by-step guide on how to achieve this update.

  1. Open the Accounts list page (or the list page of another sales object).
  2. Drill down into a record and click the Details button to open the edit page.
  3. In the Settings and Actions menu, click Edit Page in Visual Builder Studio.
  4. Click Accounts-detail > Variables and select the Subview Label constant. (Callouts 1 to 3 in the screenshot).
  5. In the Default Value field (callout 4 in the screenshot), enter the following: {"<RelationshipName": "<Display Name>"} In this example: {"ContractsForAccount": "Contracts"}.

    Screenshot of entering the subviewLabel value.
    Note: Instead of hard-coding a value, you can create and enter a translation bundle. For translation information, see the Work with Translations topics in the Extending Oracle Cloud Applications with Visual Builder Studio guide. The Translate Strings for Redwood UI Extensions video on Oracle Cloud Customer Connect walks you through an example.