title: How to assign value in DialogField from code?
body: <p>I created a <em>Dialog</em> , when I launch the <em>Dialog</em> I want to assign a value for <strong>field</strong>.</p>
  
  <p>I have this code:</p>
  
  <pre><code>Dialog dialog;
  
  myDialogField = dialog.addField(enumStr(myEnumType));
  myDialogField.value(myVariableEnum); 
  
  dialog.run();
  </code></pre>
  
  <p>With this code I can not assign variabe.
  I launch the <em>Dialog</em> by button on <em>Form</em> , in a class I saw the really value in <em>myVariableEnum</em> but I don't know how to assign.</p>
  
  <p>Thanks all,</p>
  
  <p>enjoy!</p>