Reputation: 559
We are trying to extend the concept of Copy and Paste function on screen to our custom screen so when users copy on Sales Order screen it should also copy the extended/custom screen fields so we can paste it back to new document.
How do we inherit copy and paste functionality to add those additional custom fields? Any help would be much appreciated.
Upvotes: 1
Views: 845
Reputation: 6778
The Copy-Paste feature only works with input controls and grid columns defined on Aspx page. To paste custom field values to a new sales order, you should create input controls for each custom field and verify they stay enabled for the Copy-Paste feature to work (values from read-only controls and cells are always excluded from the copy function).
Since the copy function does not check if control is visible on the screen (only is control is disabled), to extend the copy-paste function with custom fields you can add hidden control for every your custom field by setting Visible
property to False in Layout Editor:
Upvotes: 1