So far, you have seen how to build web and mobile applications to interact with data from REST web services. But Oracle also offers another way to interact with this data: using the Visual Builder Add-in for Excel. Using this add-in, your users can simply download REST data into an Excel spreadsheet, work with it, and upload it back to the REST service.
The Visual Builder Add-in for Excel is currently only officially supported for 32-bit versions of Microsoft Excel 2016, but I have found it to work in newer versions as well.
Installing the Visual Builder Add-in for Excel
Clicking the box downloads the vbcs-excel-addin-installer.exe file; clicking the “Learn more…” link takes you to the Using the Oracle Visual Builder Add-in for Excel in Oracle Integration manual.
When you run the downloaded installer, it might install some required additional Microsoft software. While you don’t need administrator rights to install the add-in itself, you might need them to install the required support software.
When you select COM Add-ins and click Go, you will be shown a dialog box where you can select which COM Add-ins to activate. Make sure there is a checkmark next to Oracle Visual Builder Add-in for Excel.
Connecting an Excel Spreadsheet
Once you have the add-in active, you can connect an Excel worksheet with a REST service.
https://<server>/ic/builder/design/<app name> /<vers>/resources/data/<obj>/describe
(development)
https://<server>/ic/builder/rt/<app name> /<vers>/resources/data/<obj>/describe
(staging)
https://<server>/ic/builder/rt/<app name> /live/resources/data/<obj>/describe
(development)
Working with Data
Update data by just changing the values. The Change column shows Update.
Create new data by inserting a new row between the existing rows. The Change column shows Create. If the row contains mandatory fields, the Status column will show Invalid until you have provided all the values.
Delete data by selecting the row and choosing Mark for Delete from the Row Changes drop-down. The Change column will show Delete.
Caution Don’t use standard Excel functionality to delete a row. If you do, the add-in loses knowledge about the row and can’t send a delete instruction.
Note that there is no feedback for deleted rows – because the rows are gone, there is no place for Excel to show feedback.
Limiting Data
If you want to limit by multiple fields, click Add Field to select another field and then add a criterion for that field. When you have defined a search, the Search dialog appears each time you click Download Data, allowing you to download different subsets of the data from the REST service.
If your REST service supports Finders, you can also use these to limit the number of rows returned. Refer to Chapter 5 of the Using the Oracle Visual Builder Add-in for Excel in Oracle Integration manual.
Resetting Excel
If you have made changes in Excel that you don’t want to apply, you can select the row and choose Clear from the Row Changes drop-down.
If you want to clear the whole table in Excel, you can click the Clear button on the Oracle VBCS tab. You will be asked to confirm you want to clear the table, and then all data is removed and can be redownloaded.
Publishing a VBCS Excel Workbook
When you have verified that your workbook functions as you wish, you can decide to publish it. When you click Publish on the Oracle VBCS tab in the Excel ribbon, you are prompted for a name, and your published workbook is saved.
The idea of publishing a VBCS-connected Excel workbook is that the published workbook doesn’t have the design tools. It is also protected using standard Excel functionality so your users can’t make changes outside the VBCS-connected table.
They can still download data, work with row change markings, and upload changes.
Caution
Only users who have the Visual Builder Add-in for Excel installed will be able to work meaningfully with a published VBCS Excel workbook. While the Excel file is an ordinary Excel file and can be edited without the add-in, any changes can’t be handled once you move the file back to an Excel instance with the add-in.
Troubleshooting the VBCS Excel Add-in
If you are unable to connect to your REST service, try one of the other environments. Note that all the URLs are valid, but, for example, the Live URL doesn’t make sense until you have set the application live.
The log is much longer than this, even for a single update operation. If you have someone on your team who is skilled at HTTP and REST troubleshooting, this can be very useful.
For more technical troubleshooting of the add-in itself, you will want to open a Service Request with Oracle support. To help them, you can choose Enable Logging from the Advanced drop-down. You can also click the About icon and then click Diagnostic Report to save a file with your configuration and version numbers of various components.
Conclusion
In this chapter, you learned how to install and use the Visual Builder Add-in for Excel to maintain data in a familiar Excel environment. You also saw how it is possible to publish an Excel sheet without the configuration information so that it can be distributed to end users who prefer to maintain data using Excel.
In the next chapter, you will see how to build mobile applications as yet another way to interact with REST data.