Is the docs property a standard Media Picker? If so, remember it only stores the Id so you'll need to use the GetMedia() extension (I'm sure you know that). If it's a DAMP picker you'll need to examine the XML a bit closer to see which items you actually need to count... (seem to remember they're stored as <mediaItem> nodes or similar).
Cant get number of file for paging to work
Hi there,
Can someone point out how to get the number of file from a media folder when using a media picker??..
Am trying to make paging but doesnt seem to work.
Any suggestion on the counting of file??What am i doing wrong here
Hi Fuji,
There's a wiki article on how to list all files in a media folder. It doesn't do the count stuff, but should be pretty easy to modify.
I think the main thing you'd want to do would be to get your count variable, something like this (not tested it!):
Hope this points you in the right direction...
Hi Fuji,
Is the docs property a standard Media Picker? If so, remember it only stores the Id so you'll need to use the GetMedia() extension (I'm sure you know that). If it's a DAMP picker you'll need to examine the XML a bit closer to see which items you actually need to count... (seem to remember they're stored as <mediaItem> nodes or similar).
/Chriztian
Hi Chrizrtian,
Yes its a normal Media Picker, am actually getting all the files , but not getting the paging to work.
Hi Chriztian,
This is how i sorted it out.
//fuji
is working on a reply...