Other widget engines have built-in functions to open files for reading data. They support different file types. Using Xwidget I want to read a json data file and so I simply want Xwidget to open this target file and be able to format and display the various fields.
It seems that Xwidget has few methods to open and read a data file. The Xwidget engine has a core to read RSS style data but no others seem to exist, which is a severe limitation.
So, if you know of a widget that opens/reads data files using anything other than the rsscore then please let me know, if there is any documentation please point me in the right direction. For the moment as a workaround I suppose I will have to resort to pure javascript but I'd really rather not.
Having looked into the problem, Xwidget's limitations lead me to think that I will have to create my next widget using the Yahoo Widget engine that has all this functionality built by default into the filesystem object. I can easily open/read data from files using this engine -
filesystem.volumes filesystem.copy() filesystem.createDirectory() filesystem.emptyRecycleBin() filesystem.emptyTrash() filesystem.getDirectoryContents() filesystem.getDisplayName() filesystem.getFileInfo() filesystem.getMD5() filesystem.getRecycleBinInfo() filesystem.getTrashInfo() filesystem.isDirectory() filesystem.isPathAllowed() filesystem.itemExists() filesystem.move() filesystem.moveToRecycleBin() filesystem.moveToTrash() filesystem.open() filesystem.openRecycleBin() filesystem.openTrash() filesystem.readFile() filesystem.reveal() filesystem.remove() filesystem.unzip() filesystem.writeFile() filesystem.zip()
I would have preferred to use the Xwidget engine as this is what I am teaching myself at the moment and the widget I want to build is compatible graphically with my Panzer widgets.
I suppose what is wanted is a filesystem core to enable a file to be read and the data parsed. If the API to write core was revealed then perhaps it could be provided by the community.
Post changed from a request for help to a feature request.
Last edited by yereverluvinuncleber on March 19th, 2016, 4:34 am, edited 6 times in total.
|