Article Details
Id: | 21051 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 4.01.00 |
Opened: | 03/01/2024 |
Closed: | 15/01/2024 |
Released: | 29/04/2024 |
Job: | J032688 |
Business Layer; finClient.GetImageDataUrl() method added
A new finClient.GetImageDataUrl()
method has been added.
This returns the Client's Image Data in a format that can be used directly as the "src" attribute of an HTML <img> element.
This method returns a blank String if:
- The Client has no Image
- Document Manager is unavailable
- The Client is filtered out (based on the User's User Group)
The following example shows the result of this new method being returned in mRecord.ImageData
, and how it can be used to set the image source, or background image CSS of HTML elements:
// Background Image of DIV
var divImage = $("#divImage");
divImage.css("background-image", "url(" + mRecord.ImageData + ")");
// Src attribute of IMG
var imgImage = $("#divImage");
imgImage.attr("src", mRecord.ImageData);