FileBox

Top  Previous  Next

  <span mo:type="FileBox" mo:field="true" mo:name="${fieldName}
       mo:props="
          uploadId        : 'x123', 
          allowedExts     : '.gif;.jpg', 
          onFileSelectHandler : OnFileSelect, 
          onFileUploadHandler : OnFileUpload, 
       /* File Upload Window Properties */  
          winUrl          : '', 
          winWidth        : 400, 
          winHeight       : 130, 
          winToolBars     : false, 
          winScrollBars   : false, 
          winLocation     : false, 
          winStatusBar    : false, 
          winMenuBar      : false, 
          winResizeable   : false,
       /* Validation Properties */  
          nonBlank        : ${nonBlank}
          valHandler      : ${valHandler}
          valErrorHandler : ${valErrorHandler}
       ">
    <input name="pf_${fieldName}" type="text" readonly="readonly" 
           value="${initialValue}" />
    <input name="PopWindowUp" type="button" value="Upload..." 
           onclick="FileBoxMgr.openFileDialog(this);" />
  </span>

 
See more...

${fieldName}

The name of the ProcessField

${initialValue}

The initial value of the field

${nonBlank}

If "true" then the field cannot be left blank

${valHandler}

The name of the validation handler function

${valErrorHandler}

The name of the validation error handler function