1) It is possible
2) your code would look something like
did -a <dialog> <id> $hget(<table>,<item>)
This is a very basic example of how you could do it.
If you want more details, supply the code for the dialog set-up and how the items are stored in the hash table