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
http://www.servoy-stuff.net
https://www.servoyforge.net
--------------------------------------------
Servoy 5.2.16 / 6.0.9 / 6.1.6 / 7.3.1
All OSes / Java 5 & 6 & 7
User avatar
ptalbot
 
Posts: 1613
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
http://www.servoy-stuff.net
https://www.servoyforge.net
--------------------------------------------
Servoy 5.2.16 / 6.0.9 / 6.1.6 / 7.3.1
All OSes / Java 5 & 6 & 7
User avatar
ptalbot
 
Posts: 1613
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC


Return to Discuss Feature Requests

Who is online

Users browsing this forum: Bing [Bot] and 2 guests