Hello Candy,
1) What is the best way to clear the fields in the dynamic dialog? I tried a CLEAR FORM and that did not work, so I wrote a method to go through
all the fields to set them to null.
CLEAR FORM works the same way when using dynamic and hard-coded dialogs. A dynamic dialog behaves like an UNBUFFERED dialog. The form fields will always show the values of the dialog. CLEAR FORM works: try a tiny MENY or PROMPT right after the CLAER statement. You'll see: the form fields are cleared. When returning back into the dialogs event loop then the runtime redisplays all values - the effect of CLEAR is gone.
My question is, will the "BEFORE INPUT" trigger only be executed one time
This depends how the input has been created. If it's a single-dialog created by createInputByName() then BEFORE INPUT is executed exactly once. If it's an input in a multiple dialog created by addInputByName() then BEFORE INPUT is executed whenever the focus enters into this sub dialog. That's exactly the same behavior as known from hard-coded dialogs.
Rene