JavaScript
listObj._fetchMediaFiles Method
Syntax
listObj._fetchMediaFiles([row [, selected]])
Arguments
- rownumber
Default = -1. The list row to fetch media files. If value is -1, media files are fetched for every row.
- selectedJSON objectboolean
Default = false. The set of records that have focus in the parent and child lists. Pass in <listObj>._getRoute() to retain the selected records (see example below).
Description
Scans the List for the names of any files on remote servers, and then fetches the files, stores them in the mobile device file system and then replaces the data in the List to change references to remote files to local files.
Example
var listObj = {dialog.object}.getControl('list1'); if (listObj) { var row = -1; var selected = listObj._getRoute(); listObj._fetchMediaFiles(row, selected); }