Skip to content

Commit 139197e

Browse files
author
Simonx Xu
committed
Update asset-id-not-editable-when-number-sequence-is-manual.md
1 parent 2e0941c commit 139197e

1 file changed

Lines changed: 33 additions & 32 deletions

File tree

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
---
2-
title: Asset ID Isn't Editable When Number Sequence Is Set to Manual
3-
description: Provides a workaround for editing the Asset ID in Microsoft Dynamics 365 Supply Chain Management.
4-
author: sorenbacker2
5-
ms.author: sorenba
6-
ms.date: 02/27/2025
7-
ms.custom: sap:Asset management\Issues with asset management
8-
---
9-
# Asset ID isn't editable when the number sequence is set to Manual
10-
11-
This article provides a workaround that allows the Asset ID to be edited in Microsoft Dynamics 365 Supply Chain Management.
12-
13-
## Symptoms
14-
15-
A user [creates a new asset](/dynamics365/supply-chain/asset-management/objects/create-objects-based-on-purchase-orders#select-asset-items) using the **Asset Management** page. The asset is created with an **Asset ID** value that the system generates based on the [number sequence](/dynamics365/supply-chain/asset-management/setup-for-objects/enterprise-asset-management-parameters#the-number-sequences-tab) selected on the **Asset management parameters** page. However, the **Asset ID** value can't be edited later, even though the related number sequence is set to **Manual** on the **Number sequences** details page.
16-
17-
## Cause
18-
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 asset. Editing it can cause data corruption and unexpected behavior in case of integrations.
20-
21-
## Workaround
22-
23-
To allow a user to edit the **Asset ID** on an existing asset despite the risk of data corruption, a developer needs to extend the `EntAssetObjectTable` form and change the property of the field.
24-
25-
1. Use Chain of Command (CoC) to change the control property by 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 to programmatically allow the field to be edited 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).
29-
30-
## More information
31-
32-
[Set up number sequences on an individual basis](/dynamics365/fin-ops-core/fin-ops/organization-administration/tasks/set-up-number-sequences-individual-basis)
1+
---
2+
title: Asset ID Isn't Editable When Number Sequence Is Set to Manual
3+
description: Provides a workaround for editing the Asset ID in Microsoft Dynamics 365 Supply Chain Management.
4+
author: sorenbacker2
5+
ms.author: sorenba
6+
ms.date: 02/27/2025
7+
ms.custom: sap:Asset management\Issues with asset management
8+
---
9+
# Asset ID isn't editable when the number sequence is set to Manual
10+
11+
This article provides a workaround that allows the Asset ID to be edited in Microsoft Dynamics 365 Supply Chain Management.
12+
13+
## Symptoms
14+
15+
A user [creates a new asset](/dynamics365/supply-chain/asset-management/objects/create-objects-based-on-purchase-orders#select-asset-items) using the **Asset Management** page. The asset is created with an **Asset ID** value that the system generates based on the [number sequence](/dynamics365/supply-chain/asset-management/setup-for-objects/enterprise-asset-management-parameters#the-number-sequences-tab) selected on the **Asset management parameters** page. However, the **Asset ID** value can't be edited later, even though the related number sequence is set to **Manual** on the **Number sequences** details page.
16+
17+
## Cause
18+
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 asset. Editing it can cause data corruption and unexpected behavior in case of integrations.
20+
21+
## Workaround
22+
23+
To allow a user to edit the **Asset ID** on an existing asset despite the risk of data corruption, a developer needs to extend the `EntAssetObjectTable` form and change the property of the field.
24+
25+
1. Use Chain of Command (CoC) to change the control property by calling the `allowEdit()` method of the control and passing `false` as an argument.
26+
27+
1. Create an extension class and extend the `init()` form method to programmatically allow the field to be edited after the `next()` call.
28+
29+
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).
30+
31+
## More information
32+
33+
[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)