Questions and answers for designing and implementing forms in Servoy


Postby james.doonan » Mon Feb 22, 2016 4:53 pm

Hi there,

Is there a way to code the rolloverImageMedia property? I cannot set it through the form designer and seem to have hit a brick wall.

Last edited by james.doonan on Wed Mar 23, 2016 4:14 pm, edited 1 time in total.
Posts: 14
Joined: Tue Jan 13, 2015 5:16 pm

Re: rolloverImageMedia

Postby ROCLASI » Mon Feb 22, 2016 6:03 pm

Hi James,

You code example is not a Servoy build-in function but a method in your solution (or of a framework you are using) so I have no idea what that function is doing for you.
But I can answer your question in general.

You can set the rollover media using the following syntax:
Code: Select all
Gets/Sets the image displayed on a button or label roll over; based on URL.
//dynamically sets a roll over image displayed on a button or label
elements.elem.rolloverImageURL = "";

//sets an image from your own image library
elements.elem.rolloverImageURL = "media:///arrow.gif";

//loads an image (BLOB) from a field in a selected record into HTML
elements.elem.rolloverImageURL = 'media:///servoy_blobloader?datasource='+controller.getDataSource()+'&dataprovider=image_data&mimetype=image/jpeg&rowid1=2';

(Example taken from the tooltip of this property)

I think the second example is what you are looking for.

Hope this helps.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
Servoy Expert
Posts: 5285
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Return to Forms

Who is online

Users browsing this forum: No registered users and 5 guests