Skip to content

Commit a940b50

Browse files
authored
minor changes
1 parent 7804157 commit a940b50

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

support/dynamics-365/supply-chain/asset-management/asset-id-is-not-editable-on-asset-list-page-even-when-number-sequence-is-set-to-manual.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Asset ID Isn't Editable When Number Sequence Is Set To Manual
33
description: Provides a workaround for editing Asset ID in Microsoft Dynamics 365 Supply Chain Management.
44
author: sorenbacker2
55
ms.author: sorenba
6-
ms.date: 02/20/2025
6+
ms.date: 02/24/2025
77
ms.custom: sap:Asset management\Issues with asset management
88
---
99
# Asset ID isn't editable when number sequence is set to Manual
@@ -16,14 +16,17 @@ A user [creates a new asset](/dynamics365/supply-chain/asset-management/objects/
1616

1717
## Cause
1818

19-
A user can't edit an existing **Asset ID** because the **Asset ID** is the natural key for the **Assets**. Editing it can cause data corruption and unexpected behavior in case of integrations.
19+
This behavior is by design. A user can't edit an existing **Asset ID** because the **Asset ID** is the natural key for the **Assets**. Editing it can cause data corruption and unexpected behavior in case of integrations.
2020

2121
## Workaround
2222

23-
To allow a user to edit the Asset ID on an existing asset despite the risk, extend the EntAssetObjectTable form and change the property of the field. Use Chain of Command in order to change the control property through calling allowEdit() method of the control and passing false as an argument. Create an extension class and extend the form init() method where programmatically allowing edit on the field after the next() call. Find a detailed explanation of the approach here: https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/method-wrapping-coc
23+
To allow a user to edit the **Asset ID** on an existing asset despite the risk, extend the `EntAssetObjectTable` form and change the property of the field.
24+
25+
1. Use Chain of Command (CoC) to change the control property through calling the `allowEdit()` method of the control and passing `false` as an argument.
26+
1. Create an extension class and extend the `init()` form method where programmatically allowing edit on the field after the `next()` call.
27+
28+
For a detailed explanation of the approach, see [Class extension - Method wrapping and Chain of Command](/dynamics365/fin-ops-core/dev-itpro/extensibility/method-wrapping-coc).
2429

25-
26-
2730
## More information
2831

2932
[Set up number sequences on an individual basis](/dynamics365/fin-ops-core/fin-ops/organization-administration/tasks/set-up-number-sequences-individual-basis)

0 commit comments

Comments
 (0)