- A variable is the basic buildig block for managing client state. It is of specific type and exists in a specific scope.
- A variable type can be primitive(string, boolean, number, etc), a structured(an array or object), dynamic type(any) or a builtin type(service data provider or array data provider).
- It stores intermidiate state on the client between the visual builder user interface and the rest services. Components are principally bound to these variables and the behavior of the variables is governed by actions.
- Intial value of a variable is determined using the defaultValue property set on the variable.
- When a variable value changes, a variable emits an event, this event may trigger an action chain.
- Constants are a type of variable of the constants namespace and are used to store values tgat do not need to change over time such as company name or measurement conversion value.
- We can use a variable to pass a parameter between the pages. We can mark a page variable as an input, specifying how it becomes part of the contract in order to navigate to that page.
Wednesday, April 24, 2024
VBCS - Understand variables
Monday, April 22, 2024
VBCS - typical visual application workflow
- A visual application is a collection of resources that you use to develop web (and mobile) apps.
- It includes metadata in JSON files that describe data sources (business objects and services) as well as the HTML and JavaScript files of your web (and mobile) apps.
- To develop your application, you define its data sources and design an interface for users to work with.
- Visual Builder does not impose any specific order for building your application. How you proceed is personal preference and determined by the way you planned your application. If you already know the data sources that you will use, or the structure of objects that you have, you might want to start by defining the service connections and business objects. However you decide to proceed, you always start with a visual application.
High-level description of the tasks that you typically perform when building your application:
- Create a new visual application
- Create servicr connections
- Create business objects
- Add web (and mobile) apps
- Develop the web (and mobile ) apps
- Secure the application
- Stage and test the application
- Import real data and check schema
- Publish the application
Sunday, April 21, 2024
VBCS - task18 - publish the application
Usecase: here, we will see how to publish your application to live when we have successfully tested the staged application. The live application will be visible to users with proper credentials.
Detailed steps:
Cilck menu >> select publish >> Include data from stage >> publish
VBCS - task17 - stage the application and import data into the application
Stage the application:
Click the Menu in the header >> select stage >>select business object data option and click stage >> click Menu again >> select Open stage application
Import data into your application:
If we need to add more records to our data in the staging database, we follow the below steps:
Have a zip file containing csv files for each business object >> click the business object under the navigator >> click Menu ...>> data Manager >> select staging from the drop down list in the upper right corner >> click import from file >> select zip file and import. >> open the any object like departments >> data tab >> select staging , we can see the imported data.
Note: visual builder provides different databases for the development, staging and live phases of an application. We can use empty database for the staging or live phase, we can transfer data from one to another or we xan import specific data for each.
VBCS - task16 - Enable the web app as a PWA
Usecase: Here we will show how to enable the web app as a PWA.
- Once all the web app development work done, as a final step before we stage the app, we can enable it to rub as a Provressive Web App or PWA.
- PWAs are designed to be capable, reliable, and provide a platform specific look and feel.
- When we enable a web app as a PWA, it can be installed ditectly from a browser on a user's device, including Android and iOS mobile devices.
Navigation and steps:
Web apps >> click hrwebapp node >> settings >> PWA >> toggle Enable Progressive web app(PWA).>> review the Manifest setting(app name, short name, theme color) >> under resources >> click create next to the offline fallback page .
App name: to be displayed when we are prompted to install the app.
Short name: The short name is used on the Home screen, launcher, and other places where space is limited.
Offline Fallback page: To add page that is displayed when the user pefforms an action in the PWA that requires a connection , but the device is offline.
Saturday, April 20, 2024
VBCS - task15 - access data from an external REST service using service connection - Define by endpoint option
Usecase: we will show how to access data from an external REST service using service connection - Define by endpoint option.
Highlevel steps:
- Create a service connection to an external rest endpoint
- Create a type and variable from the rest endpoint
- Add fields to the employees edit page to display country data
- Bind the created country avatar, input fields to the created country type variables.
- Assign data to variables
- Test the employee's country details
Implementation steps:
Step1: create a service connection to an external rest endpoint
Web apps >> Services >> click + service connection >> wizard will show 3 options >> select define by endpoint >> select method, provide URL and select action >> create backend
Here, we have mentioned below details:
Method: get
URL: https://restcountries.com/v2/alpha/{code}
action: Get one
Step4:Bind the created country avatar, input text fields to the countryType variable
Go to the page designer >> select avatar >> click data tab >> src field >> select the created country type variable and flag >> sameway for region and timezone and src >> add the variables
Step5: assign data to the variable
Select country field data >> add on value event that triggers an action chain >>>> from where we use rest call action and select the endpoint service >> assign input parameter >> expand employee under page and map country to code. >> drag and drop assign variable >> select countrytypevar >> which maps to callrest response body
Featured Post
11g to 12c OSB projects migration points
1. Export 11g OSB code and import in 12c Jdeveloper. Steps to import OSB project in Jdeveloper: File⇾Import⇾Service Bus Resources⇾ Se...
-
Please find the following links for OIC hands on and relevant information: Oracle Integration Cloud Introduction | Benefits | Services offer...
-
Credential Store Framework (CSF) is used in OWSM to manage the secure credentials. CSF provides a way to store, retrieve, and delete cred...
-
What is Throttling: Throttling is termed as "regulate the flow". Oracle Service Bus has throttling feature and by using that f...