How to create Attachement Field in View

Hello Can ma’am sir can anyone tell me how to create field data that can hold Attachement from may custom View


In object definition, add a field to store the file :

<many-to-one name="file" ref="com.axelor.meta.db.MetaFile" title="File"/>

Then, in the view definition for that object, display the field :

<field name="file" widget="binary-link" />

widget binary-linkallow single click download/upload. The widget can be used only with MetaFile m2o fields.

Hope this help.

3 « J'aime »

thanks sir exactly what im looking for :smiley:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.