12. Visual Builder Studio
12. Visual Builder Studio
How to Verify Whether a Page Can Be Extended Using Visual Builder Studio
If you see the Edit Page in Visual Builder Studio option in Settings and Actions menu of a page, that
means you must use Visual Builder Studio to make changes to that page. If you don't see the option,
that means the page can't be modified using Visual Builder Studio.
All you have to do is click the link to jump over to the Designer in VB Studio, where you can start
customizing your App.
You can create a project, open a shared project, or open a project you're a
member of.
Create Project
What Is a Project?
A project collects all the people, tools, and processes you need to complete a unit of work in VB
Studio.
▪ On the Organization page, click + Create.
▪ On the Project Details page of the New Project wizard, in Name and Description, enter a
unique project name and a project description.
▪ In Security, select the project's privacy:
• Select Private to restrict access to project members only.
Select the Discoverable checkbox to allow organization members that aren't org admins or project
members to see basic information, such as name and owner contact information, about your private
project. Private projects that aren't discoverable won't be exposed to non-members.
• Select Shared to make the project code, wiki docs, tasks, and builds available to anyone
inside your organization.
▪ Click Next.
▪ On the Template page, select Empty Project, and click Next.
▪ On the Project Properties page, from Wiki Markup, select the project’s wiki markup
language.
Project team members use the markup language to format wiki pages and comments.
▪ Click Next.
▪ On the Team page:
a. Click Add Members and select users or groups to add to the project, from the list displayed, if
you know they may work in this project.
b. Select the membership (Project Owner, Developer Full Access, Developer Limited Access, or
Contributor) that the members you're adding will have in the project:
c. Click Add.
d. Repeat substeps a, b, and c for different users and groups with various membership types, if
needed.
▪ Click Finish.
What Are Project Memberships?
Here's what you can do in VB Studio pages, depending on your project membership status:
This project
membership... Enables a user to:
Organization Access and manage all projects of the organization, and set connections to OCI and OCI
Administrator Classic.
Note:In any project, an organization administrator can assign himself or herself the Project
Owner role. This will grant them the same project permissions as any other project owner.
An organization administrator can't even open a project unless they are a member and, even
then, it is the project membership type that determines their project permissions.
Individuals that head up organizations and members of the IT department are assigned this
membership. The individual that creates the service instance is automatically assigned this
membership.
Project Owner Access all components of the project and perform project management and administrative
tasks, such as adding or removing Git repositories, managing project users, assigning default
reviewers, and configuring Webhooks.
Project managers and team leaders are assigned this membership. The individual that creates
the project is automatically assigned this membership.
Developer Access most components of the project, but has restricted project management or
administrative actions.
Senior developers are assigned this membership.
Developer Limited Access some components of the project, but has restricted job configuration, environment
management, board management, project management, and administrative actions.
Junior developers and members of the QA team are assigned this membership.
Contributor Access the project's components in read-only mode but can enter comments, update issues,
view wikis, and download build artifacts.
Usually, new developers, technical writers, and other members are assigned this
membership.
Non-member Access the same things as the Contributor membership, but for shared projects only.
Check Your Project Membership
To see what membership you have for a project, sign in to VB Studio and click the project’s name:
To discover Do this:
If you’re the In the branding bar, click the user avatar, then click Contacts. If you see your name listed
organization under Organization Admins, you’re assigned the Organization Administrator role.
administrator You could also check by selecting Organization in the navigation menu and
displaying the Organization page. If you see a series of tabs (Projects, OCI Account, Build
Executor Templates, Build Executors, Component Exchange, Groups, Properties,
Activities), you're an organization administrator. If you only see a list of projects, you've
been assigned some other role.
Projects you own On the Organization or Project Home page, click the Owner toggle button.
Projects in which On the Organization or Project Home page, click the Member toggle button.
you’re a member
Project Developer
Action Owner Developer Limited Contributor Non-member
Git Repository
Maven Repository
NPM Registry
Snippets
View snippets
Merge Requests
Issues
Project Developer
Action Owner Developer Limited Contributor Non-member
Agile
Wikis
Builds
View builds
Environments
View environments
Workspaces
View workspaces
Releases
View releases
Project Developer
Action Owner Developer Limited Contributor Non-member
Docker
Projects
Access to project
administration pages for
all features, team
administration
▪ In the Add Service Instance dialog, select the type of service instance: Visual Builder and
Oracle Integration, Oracle Cloud Applications, or Infrastructure Services.
From the Environments page, you can:
• Create and delete environments
• Add or remove service instances from existing environments
• Update the details of the environment
The Details tab displays details, such as name and description, for the selected environment. You
can also instantly see the health of all service instances comprising each environment right on the
Project Home page or on the Environments page.
• View the details of an environment's service instances
The Service Instance tab captures information, such as the health of and response times for service
instances and their URLs, for each environment in a single place, so you won’t have to hunt for it
later.
• Upload and remove an environment's trust certificates
The Certificates tab shows trust certificates that you upload to connect with external services in an
environment, allowing all applications that use that environment to communicate with those
services.
• View deployments
The Deployments tab shows deployments for extensions and visual apps. Use the Application
Extensions toggle to show deployments for all projects associated with this environment or use
the Visual Applications toggle to show deployments for the current project only.
• Manage the lifecycle of deployed extensions
Click the Extension Lifecycle button to centrally manage extensions deployed across
environments (and across projects). On the Manage Extension Lifecycle page, you can deploy an
already published extension to a new instance, and delete extensions when no longer needed. You
won't see the Extension Lifecycle button if you haven't yet added an Oracle Cloud Applications
instance to your environment
What Is a Workspace?
▪ A workspace defines the resources available to you when you open the Designer. You can
think of a workspace as your editing context while you're working with the Designer.
▪ All of your work in VB Studio is done in the context of a workspace, a completely private area
where you can work on your extension. Before you can use the Designer to create an App UI
or configure an Oracle Cloud Application, you must first select or create a workspace, which
defines:
▪ On the Organization page, select the project where you want to create aApplication
Extension.
▪ In the VB Studio left navigator, click Workspaces .
▪ On the Workspaces page, click New, then select New Application Extension.
What is an Extension?
▪ Extensions are what you use to deliver new capabilities into Oracle Cloud Applications.
▪ The changes you make to your Oracle Cloud Application in VB Studio are stored in an artifact
called an extension. Physically, the source files associated with the extension are stored in a Git
repository. When working on an extension, the best practice is to have only one extension for
the base app ( the Oracle Cloud Application you're extending) in the project, and to store the
source files for the extension in the same Git repository in the project. Multiple developers can
work together to develop the extension, but they should all be working from the same
repository.
▪ Use Your Oracle Cloud Application Sandbox
VB Studio can access the sandboxes in your Oracle Cloud Application that have changes to the
application's data model that haven't been published yet.
▪ In Git Repository, choose between creating a new repository where you and others can
work on the visual application and using a private scratch repository that is visible only to
you.
o To create a new repository for your visual application, click Create new repository,
then enter a repository name and working branch name.
o
o To use a scratch repository for your visual application, click Use scratch
repository (selected by default).
▪ Click Create.
What is App UI?
simply an application that includes a user interface component in the form of Visual Builder pages
and flows.
Dynamic
Component Description
Dynamic table, Every dynamic table and form in your app extension is bound to a layout
dynamic form artifact that represents a data resource. In dynamic tables and forms, you
customize which fields are displayed and how they are rendered. In most cases,
you can hide, show, or re-order these fields, and can even create new fields
based on existing ones. You can also apply field templates to control how
certain fields are rendered at runtime.
Dynamic Dynamic containers are pre-defined areas in a page that can be used to display
container various types of content. Unlike a dynamic table or form, which can appear on
multiple pages, a dynamic container is scoped to the page and can only ever
appear on that page.
What Is the Designer?
▪ VB Studio includes the Designer, a declarative development environment that you use to
create visual applications or to customize your Oracle Cloud Applications through extensions.
▪ For example, you may want to extend an Oracle Cloud Application so that certain fields are
displayed only for managers, while the same fields are hidden from your users that aren't
managers.
▪ Much of what you do in VB Studio is within the context of an extension, and almost everything
you do within an extension takes place within the Designer. The Designer is divided into five main
areas:
1. Header
2. Navigator
3. Canvas/Editors
4. Properties pane
5. Footer
The Header
The header contains information about your current VB Studio session, as well as access to the tools
you need to move your extension through the development process.
A Workspace The name of your current workspace, which defines all the resources you
need to create an extension.
You may have several active workspaces at any one time, one for each
discrete body of work you’re responsible for. To switch to a new
workspace, just click the workspace name and pick a new one.
B Git VB Studio stores all the files for your extension in a Git repository. If you’re
repository/branch working with multiple people on the same extension, you’ll all work within
the same repository, possibly—but not necessarily—in separate branches. If
you see a yellow dot in the header next to the repository name, that means
there are uncommitted changes in your workspace.
Click the repo name to see a list of commands you can use while working
with your repository.
If you don’t know much about Git repositories, this video can help you
learn the basics, or read through Manage Your Extension with Git.
C Undo Undo one or more of your changes. To undo your most recent change,
click the Undo icon (hover your cursor over the icon to view the action
that will be undone). To undo multiple changes, click the Undo drop-
down list and select the actions you want to undo. For example, selecting
the Insert Heading action in this image will remove the heading and undo
other changes you made after adding the heading:
Label Element Description
Tip:You can undo up to 10 of your changes at a time (your last 500 actions
are stored in the browser and will be lost if you clear the browsing cache).
To undo more than 10 actions, simply undo a few items, then open the
drop-down list again.
D Redo Redo one or more changes after undoing them. To redo your most recent
change, click the Redo icon (hover your cursor over the icon to view the
action that will redone). To redo multiple changes, click the Redo drop-
down list and select the actions you want to redo. For example, selecting the
Set text of Heading action in this image will revert two of the previously
undone actions:
E Sandbox If you require any underlying data model changes, you should use
Application Composer to make them first in a sandbox, then use the Edit
Page in Visual Builder Studio option to expose those changes in the UI
with VB Studio.
Label Element Description
Click the sandbox name to associate a new sandbox with your workspace.
You might want to do this if another sandbox contains the data you need for
the extension you’re working on. See Switch a Sandbox.
G Go to File Search your project's sources by file name. When you first click Go to File,
your most recently used files show. If the file you're looking for isn't listed,
start typing the name of the name in the search box, then select the file you
want in the suggestions.
H Preview Before committing your changes to the branch, you can use the Preview
action to see how your pages look and behave in a browser.
I Publish Commit changes in the current branch to your local repo, push them to the
project's Git repo, and kick off package and deploy jobs to publish your
branch to your development environment. (If you want to publish the
entire extension, make sure you commit and push changes in all other
branches before clicking Publish.)
J Menu Open a menu containing the Share, Import, and Export actions, as well as
commands for opening the Settings editor and navigating to the Visual
Builder Studio Help Center.
The Navigator
The Navigator helps you move between the artifacts in your extension, and provides access to the
VB Studio editors:
App UIs There's a lot going on in this section of the Navigator. You can:
• Create an App UI, if you want to add new pages to your extension;
• Create a fragment, if you need a reusable piece of UI you can use in App
UIs or configurations of App UIs (or within a layout template);
• Create a root page to brand the pages in your App UI with a common
header, footer, background, or other elements, to provide a consistent
look and feel.
• Import resources into the Global Resource folders to use across your
extension, or;
• Add another extension as a dependency, so you can refer to its App UI's
service connections, Layouts, global resources, and so on from your own
App UI, or so that you configure an App UI to meet your own business
needs.
Layouts A Layout represents a set of data fields that can appear in one or more related
dynamic components, like a table or form. Create a new Layout here by
choosing a data source, then defining the rule set that governs how that data
looks and behaves. You can also view the Layouts provided by any App UI you
may have as a dependency.
Services To access external REST APIs in your extension, you can create connections to
the services that provide access to these API endpoints.
VB Studio also includes a catalog of predefined services in the form of an Oracle
Cloud Applications backend. This backend exposes REST APIs—from Human
Capital Management, Sales, and more—that your App UIs can consume right
out of the box. You can also create custom service connections to access services
Icon Element Description
that aren't listed in this catalog. See Add Service Connections to Your
Extension for details.
Dependencies When you add an extension as a dependency, you gain access to the resources
that comes with the extension, like its service connections, Layouts, and more.
Add a dependency when you want to configure one of the App UIs contained
within the extension, or when you want to use the extension’s resources to
build your own App UI.
The Dependencies panel shows you all the extensions containing an App UI
that has at least one artifact flagged as extendable—a dynamic component, a
variable, and so on. If an extension doesn’t have an extendable App UI, it won’t
appear in this list.
Components The Components tab helps you to install and manage the components that you
download from the Component Exchange, a repository of components that can
be installed in your VB Studio instance.
Translations To ease with translation, all text strings in an App UI—such as headings, labels,
and messages—can be stored in a separate external file, rather than hard-coded
in the App UI. This means that you can translate the App UI by simply
downloading this file, translating it, and uploading a newly translated file.
Source Although the Designer is primarily a visual editor, you can always work in
source code if you prefer.
Git Shows you the list of files you've changed, but haven't yet committed to your
branch. If you have merge conflicts in your branch, you'll see them listed here.
Click a conflicted file to open it in the conflict resolver tool so you can resolve
any issues.
By default, the App UI section displays only artifacts that you can extend, but you can use the options
menu next to the Filter field to select items that have already been extended, or items available for
extension:
The Canvas/Editors
The canvas, which appears to the right of the Navigator when you open a page, is where you do the
bulk of your work in VB Studio. When you open a page, you'll see different editors along the top to
help you modify and create artifacts used in the page, like Page Designer, Actions, Event Listeners,
and so on:
Depending on which aspect of the page you're customizing or building, VB Studio invokes the
proper editor to provide the experience you need, and displays that editor in the canvas. Perhaps the
most important editor is the Page Designer, described in detail in Use the Page Designer.
All of the changes you enter through the editors—the Page Designer, Actions, Event Listeners,
etc.—are saved as JSON, which you can access through the JSON pane, next to Settings. In
addition, you can use the JavaScript pane to enter any custom functions you may need for your App
UI.
Note:
The JSON and JavaScript panes represent what will ultimately be checked into Git when you publish
your extension. Therefore, if you look at these panes for an App UI you have added as a
dependency, you won't see anything there—unless you have customized that App UI in some way.
Tip:When working with multiple artifacts (pages, flows, layouts, and so on), each artifact opens as a
separate tab on the tab bar. Here's how you can better manage these in your work area:
• Right-click a tab to see options to close the particular tab, close other tabs, close tabs to the
right, or close all tabs. You can also use this menu to select a particular tab in the Navigator:
If the tabs overflow available space on the tab bar, click at the edge of the tab bar and select the tab
you want to open. Note that the active tab always stays in focus.
• Right-click the empty space on the tab bar and select the option to reopen closed tabs.
Recently closed tabs are saved in session history, so you can keep reopening tabs until you get
to the one you want.
The Properties Pane
As the name suggests, the Properties pane lets you specify the properties that control the appearance
and behavior of whatever is currently selected in the canvas. While you're in the Variables editor, for
example, you use the Properties pane to set the variable's default value, type, and other attributes.
When you click a component on a page in the Page Designer, the Properties pane is immediately
updated to reflect the component's properties. Depending on the component, the Properties pane
might display additional tabs for modifying the component’s attributes or its behavior.
When you add a collection component to the canvas, like a table or list, you'll see a Quick Start tab
added to the Properties pane:
Quick Start wizards help you add some actions and components that are typically associated with the
component, such as mapping the collection to data and adding Create and Detail pages.
To hide or show the Properties pane, just click the tab itself.
The Footer
At the bottom of the Designer, you have several tools that can help you debug and streamline your
extension:
Element Description
Audits Scan the code in your extension for places containing errors, warnings,
info and to-dos. Your code is scanned when you open the Audits pane.
Git History View a list of Git actions you have performed in your workspace. The
window displays details about each action, including the type, date and
files involved.
Color Theme
The Designer, by default, uses a light theme based on Redwood to set the color palette for your
work environment. To personalize your environment to use a dark theme or sync with your OS
settings:
1. Click Menu in the upper right corner.
2. Select Theme, then choose an option:
• Select Dark to use a dark color display, more suited for low-light conditions. This
option switches the background and text used in all the editors, except the Page
Designer canvas, where application pages continue to display against a lighter
background with dark text.
• Select OS Default to inherit the theme used in your operating system's settings. If your
system settings are configured to use dark mode, the Designer will also use those
settings.
• If you changed the default, select Light to switch back to a lighter background with
dark text display.
Tip:
You can also control this setting from your preferences. Click Go to project page, click your
avatar, select Preferences and General, then look for the Preferred color theme setting. See Set
Your Preferred Color Theme.
No matter where you configure this setting, your preferred color theme takes effect for all pages in
the user interface, including the Designer.
Create Service Connection