Hi Andy,
You pretty much hit the nail on the head as to what we're after. I attached the IRF...
The idea is to provide users a quick way to look up users in the SDM DB for assigning the next step in the workflow to.
So to re-iterate, here's what we are after:
- The user types in part of a name or user id
- Below the field, a table appears and we're able to see matching users based on the string provided in the field.
- User clicks on a row in the table which bubbles an event (something to the effect of rowClicked, or rowSelected)
- Event passes the id, index, or rowobject of the row that was selected to a function that we can then populate the field with the selected Row Value (in this case the userid)
In effect we're validating the userid. I noticed that i could drop check boxes into the Table element but even at that the click events are not being fired from just testing a simple alert dialog in code. Furthermore, even if i was able to fire java-script at this point the checkbox has a fatal flaw in approach in that multiple check boxes could be selected, whereas in my case all we're trying to return is a single row.
I'd like to consider myself as a fairly decent java-script guy and feel if I were able to bring in the jQuery library I could probably solve this problem by altering the dom slightly in code and dropping some click event handlers on the row elements themselves. Then I could filter against the columns and return the appropriate Identity into the text field. Unfortunately I'm running into some roadblocks in that regard. I would be thoroughly delighted If you had any ideas on how to get jQuery on its feet in this thing.
I tried using the lookup dialog you mentioned to pull off the same functionality but quickly came to the conclusion that it is unusable as it also suffers from the same problem, there is no on select event or at least I wasn't able to identify one.
Looking forward to what you can come up with.
Many thanks!