Get all media item names in array

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Get all media item names in array

Postby Karel Broer » Fri Jun 18, 2010 10:22 pm

Hi, I like the ability to get an array of all the item names that exist in the media library.
Something like this would be perfect. :)
Code: Select all
var vMediaArray = application.getAllMediaNames()
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Re: Get all media item names in array

Postby ptalbot » Fri Jun 18, 2010 10:47 pm

Hi Karel,
What's wrong with solutionModel.getMediaList() ?
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Get all media item names in array

Postby Karel Broer » Fri Jun 18, 2010 11:00 pm

ptalbot wrote:Hi Karel,
What's wrong with solutionModel.getMediaList() ?

Nothing. Except that I didn't knew it existed :oops: .
Thanks for the tip, Patrick!
(This request can be deleted).
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Re: Get all media item names in array

Postby ptalbot » Sat Jun 19, 2010 6:56 am

Yes Karel, I agree that it can be confusing sometimes to find a method between the design time/runtime/solution models.
There are some overlaps and some methods don't always seem to be at the right place.
Some refactoring to organize for v6 brush up perhaps?
Just a thought.
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 5 guests