Before You Begin
This 10-minute tutorial shows you how to test your application and add sample data in the Test environment and in the Live View of the Page Designer.
Background
The sample data that you enter while testing the application is saved in the Development database, which you can use to check the behavior of your application.
When you stage and then publish your application, you use the Stage and Live databases instead of the Development database. You can transfer data from one database to another.
In this section you'll learn to:
- Use the Live View of the Page Designer
- Add sample data in the Live View
- Switch to the Test Application mode
- Add sample data in the Test Application mode
What Do You Need?
- Access to Oracle Visual Builder Cloud Service
- A supported browser (see Known Issues for Oracle Visual Builder Cloud Service for more information)
Add
Data using the Live View
Use the Live View to test the runtime behavior of the application in the Page Designer itself. You can also edit the properties of the components in the Live view without switching to the Design view.
- In the toolbar, click the Design-Live toggle
button. This button lets you switch from the Design view to the Live view of the Page Designer and check the runtime behavior of the application and its components.
Description of the illustration vbcsta_t1_s1.png Tip: On a Windows machine, you can toggle between the Live view and Design view by pressing the Ctrl key. On a Mac, use the Command key.
- Click the Departments tab.
Description of the illustration vbcsta_t1_s2.png - To see the Create Department page, click Create.
Description of the illustration vbcsta_t1_s3.png - In the Create Department page, press the Ctrl key on the keyboard and click the Name text box, then release the Ctrl key. A dotted line appears around the Name label and field, and the Text Field property sheet is displayed.
- In the Properties pane of the Name text field, select the Required
check box. The Name text field label now has an asterisk (
*
).Description of the illustration vbcsta_t1_s5.png - Click the Name field and enter the
following in the Name and Location
fields:
- Name:
Administration
- Location: Select Floor 1 from the list.
Description of the illustration vbcsta_t1_s6.png - Name:
- Click Save and Close to return to the
Departments page. A success message appears briefly.
The Departments page table now shows the record you have entered.
Description of the illustration vbcsta_t1_s7.png - Click the Design-Live toggle
button to return to the Design view.
Create
Departments in Test Application Mode
Use the Test Application mode to test the runtime behavior of the entire application and add the sample data.
- In the toolbar, click the Test Application
button to preview the application in Test mode without the Page Designer tools.
Description of the illustration vbcsta_t2_s1.png - In the Test environment, click the Departments
tab if you aren't already on that page.
Description of the illustration vbcsta_t2_s2.png - Click Create to open the Create Department
page.
Description of the illustration vbcsta_t2_s3.png - On the Create Department page, enter the following one by
one. For each, click Save and Close, then
click Create again. A success message
appears briefly after each entry.
Name Location Marketing Floor 2 Purchasing Floor 3 Human Resources Floor 1 IT Floor 2 Sales Floor 3 When you've finished, the Departments page looks like this.
Description of the illustration vbcsta_t2_s4.png - To close the Test Application mode and return to the Page
Designer, click the Back to Designer button
in the upper left corner.
Description of the illustration vbcsta_t2_s5.png
Import
Sample Data from a CSV File
Instead of adding data through the Create pages of the application, you can also import data to a business object from a CSV file or an XLS spreadsheet.
- Open a text editor (such as Notepad), copy the following
text into a new text file, and save it as
employee.csv
. You'll import the data from theemployee.csv
file to theEmployee
business object.id,creationDate,lastUpdateDate,createdBy,lastUpdatedBy,name,email,hire_Date,ref2Department 1,,,,,Elizabeth Davis,edavis@example.com,2003-06-17,1 2,,,,,James Miller,jmiller@example.com,2005-09-21,1 3,,,,,Jennifer Garcia,jgarcia@example.com,2001-01-13,2 4,,,,,Mark Williams,mwilliams@example.com,2006-01-03,3 5,,,,,Sarah Brown,sbrown@example.com,2007-05-21,2 6,,,,,David Smith,dsmith@example.com,2005-06-25,1 7,,,,,Karen Johnson,kjohnson@example.com,2006-02-05,2 8,,,,,Richard Wilson,rwilson@example.com,2007-02-07,3 9,,,,,Linda Jones,ljones@example.com,2002-08-17,1
- Click the Main Menu
icon in the top-left corner of the Page Designer.
Description of the illustration vbcsta_t3_s2.png - In the menu, click Data Designer.
Description of the illustration vbcsta_t3_s3.png - The Data Designer provides tools for managing your business
objects and data.
- The Business Objects page allows you to create business objects and to modify the fields and data in your business objects.
- The Services page allows you to view details of the external REST services that are consumed by your application and to create business objects from the catalog of Oracle Cloud services that are associated with your Identity Domain.
- The Data Manager page contains tools for copying data between your development, staging, and live databases and for importing and exporting data files.
In the Data Designer page, click the Business Objects tile.
Description of the illustration vbcsta_t3_s4.png - On the Business Objects page, click the Department
business object if it's not already selected, then click the Data
tab.
Description of the illustration vbcsta_t3_s5.png - Verify that the six departments you created are present.
Description of the illustration vbcsta_t3_s6.png - Click the Employee business object. You're
on the Data page, which has no content.
Description of the illustration vbcsta_t3_s7.png - On the Data page of the Employee business object section,
click the Import from File
icon.
Description of the illustration vbcsta_t3_s8.png - In the Confirm Import Data dialog box, select the Replace
option for Row Handling if it's not already selected. Then
click the Upload a file link, browse, select
the
employee.csv
file, and click Import.Description of the illustration vbcsta_t3_s9.png - Click OK after the file has been
successfully imported.
Description of the illustration vbcsta_t3_s10.png You'll see the imported data in the Data tab.
Description of the illustration vbcsta_t3_s10_result.png - Click the Main Menu
icon in the top-left corner and select Page Designer from the list.
Description of the illustration vbcsta_t3_s11.png - Open the Employees page from the page menu and, if
necessary, reload (Ctrl-R) the page.
The page shows the data you imported from the
employee.csv
file. The Actions menu on the right lets you edit or delete an employee.Description of the illustration vbcsta_t3_s12.png - In the toolbar, click the Test Application
button.
The Employees page shows the imported data.
Description of the illustration vbcsta_t3_s13.png - The tutorial application is now ready and you can test it
with the sample data. For example, you can try out the Actions
menu.
Description of the illustration vbcsta_t3_s14.png Tip: You might need to do a hard refresh and clear the browser cache to see the latest data of the application.
- Click Back to Designer.
- (Optional) Click the user menu in the top right corner of
Oracle Visual Builder Cloud Service and select Sign
Out from the menu.
Description of the illustration vbcsta_t3_s16.png
After creating and testing an application, you may want to edit the application pages and redesign them, or edit business objects and fields. To learn how, follow the Add components to your pages and Design your business objects modules of the Learning Path.
Want
to Learn More?
- Using Oracle Visual Builder Cloud Service in the Oracle Help Center
- Importing Data From a File in Using Oracle Visual Builder Cloud Service
- Known Issues for Oracle Visual Builder Cloud Service in the Oracle Help Center