This quick one is based on a customer question about Oracle Application Builder Cloud Service. The scenario is that we have a business object that has a field that contains the URL to an image. We want to be able to show that image on a page in Oracle Application Builder Cloud Service.
To do that I add a custom UI component object to the details (or edit) page of a record - then I switched the HTML of that object to be: <img id="logoimg"/>
var img = document.getElementById('logoimg'); img.src=$Company.getValue('Logo'); resolve();
This code simply locates the custom object on the page using the object id and then sets the src property of the img html tag to match the value of the field in the business object.