Quantcast
Channel: SCN : All Content - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4216

Design Studio SDK: Fallback Picture Component

$
0
0

Purpose

you want to load a picture (image) but in case the server does not have this image, you want to bring up a "fallback" image.

 

non-existing.png

Implementation

Using Design Studio SDK, this component is accepting 2 parameters - picture and fallback picture. by Ajax Request the component is checking the requested picture and displaying fallback in case the requested picture is not available.

 

Available Properties

 

Property NameDescription
picture

the picture (image) to display in normal case

falbackPicture

the picture (image) to display in case the requested normal case image is not returned from server (response status == 404)

 

Scripting Functions

 

ScriptsShort Description
setPicture(...)

Setter for the "normal case" picture

setFallbackPicture(...)

Setter for the fallback picture

 

Example Application

An Application with example can be downloaded at the BIAPP Repository:

 

Releases


Source Code & Licensing

This component is for free use. It is under the Open Source Apache Version 2.0 License.

 

Important MaintenanceNotice (... as I am SAP Employee)

The component is NOT delivered under SAP maintenance license.

You cannot claim any Support on this component from SAP!


The components are created on "private" basis - you can use them as is. I can modify, correct or improve - but there is no obligation to do it. Of course I will try to correct bugs or improve the component as long I can.

 

Have Fun!

 

P.S.

This is a "requirement engineering" response to Design Studio - Display a dummy image when searched photo does not exist ;-)


Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>