![]() setDataObjectContents(“filename”, contentVar) – overwrites the named file with the contents of the variable specified in the second parameterĤ. getDataObjectcontents(“filename”) – retrieves the contents of the named file as a binary object.ģ. Launches a file picker for the user to navigate and select a file to attachĢ. importDataObject(“filename”) – adds a file as an attachment to the form. A set of methods on the DataObject are relevant to this feature:ġ. The attachments are added to the document as a DataObject. Javascript was added to each button click event to manage the contents of the list box and attachments. ![]() Three “normal” buttons are also added to the subform: Add Receipt, Remove Receipt, View Receipt. The button should accept most document types: Word, Excel, img, jpg,…Ī subform was created and a list box created to hold the filenames for attachments. I didn’t need to keep track of the number of attachments so that is not included. ![]() The hard part was removing an attachment from the middle of the list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |