- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm giving users an interface to read or write data, but I need them to make decisions as well as give me a new/existing file to write/read - I can't just throw them directly into createFileDialog().
One idea I had, was to detect them clicking on something (e.g. "Select File") in with their options, which grabs the name of the file, then when they click "OK", it performs the complex actions based on their input with the file they gave:-
However, I can't find any way to detect them clicking on anything that looks nice. I've tried ImageCommandInput and TextBoxCommandInput (with an <img> tag) and TextBoxCommandInput that contains an HTML form - but while they all look pretty, they do nothing (I can't detect any events firing). Ideally, does anyone know how to use JavaScript or <forms> inside TextBoxCommandInput to "talk" to my add-in?
Logically, I *could* wait for the "OK" and *then* ask the file, but that's going to confuse them to no-end (who clicks "OK" to import from a file, without selecting a file first? counter-intuitive!). I could ask for the file first, but that too will confuse because the flow doesn't make sense before the other decisions they need to make. I could use some other control, like a ButtonRowCommandInput - except that's a 16x16 pixel icon, which - while working - will basically look stupid...
Any ideas anyone?
Solved! Go to Solution.