Skip to main content
Solved

Drag and Drop functionality for custom Data Entry Page

  • December 23, 2022
  • 1 reply
  • 157 views

How can I turn on File Attachments Drag and Drop functionality on custom Data Entry Documents(Header)?

Best answer by JKurtz29

In your page’s DataSource control, add the EnableAttributes tag.   For an added bonus, add the UDFTypeField to enable UDF fields for your screen.

 

<px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%"
UDFTypeField="DieRequestID" EnableAttributes="true"
PrimaryView="DieRequest" TypeName="AI.OC.Engraving.DieRequestEntry">
<CallbackCommands>
<px:PXDSCallbackCommand CommitChanges="True" Name="Save" />
</CallbackCommands>
</px:PXDataSource>

 

1 reply

JKurtz29
Varsity III
Forum|alt.badge.img+1
  • Varsity III
  • Answer
  • November 13, 2023

In your page’s DataSource control, add the EnableAttributes tag.   For an added bonus, add the UDFTypeField to enable UDF fields for your screen.

 

<px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%"
UDFTypeField="DieRequestID" EnableAttributes="true"
PrimaryView="DieRequest" TypeName="AI.OC.Engraving.DieRequestEntry">
<CallbackCommands>
<px:PXDSCallbackCommand CommitChanges="True" Name="Save" />
</CallbackCommands>
</px:PXDataSource>