More precisely, I'm talking about the editable tables example described in this wiki page.
I ran into a problem when while working on a plugin which uses some of the same components as in this tutorial. I'm using an editable table with a SelectInputString which gets populated with options and option values. For the life of me I was (and still am) unable to set the currently selected item by passing the argument in the hashtable (as described in the above example).
After a couple of hours of banging my head against the desk I placed the example code above verbatim into a plugin and uploaded that to my fogbugz instance. It seems to have the same problem I was running into.
For some reason in Forms.SelectOptions the parameter of ixZoo passed as as a hashtable key does not seem to get set as the selected item. I know it's passing it correctly to the dialog as I can see the correct selection if I embed that into a string that gets displayed on the dialog.
It looks like when comparing the options against the current selection it's comparing against the string "{ixZoo}" instead of the actual value.
Has something changed in Fogbugz in a recent version that has altered the way this works? or is the example code just wrong and it should be done in some other way?
In the code I'm referring to line 576:
Forms.SelectInputString(api.AddPluginPrefix("ixZoo"),
Forms.SelectOptions(zooNames,
"{ixZoo}",
zooIxs));
This is in the GetZooSelect that is called from DialogTemplateEdit