Skip to content

Commit 7804157

Browse files
authored
Update workaround for editing Asset ID field
1 parent ec7e4b2 commit 7804157

1 file changed

Lines changed: 3 additions & 1 deletion

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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ A user can't edit an existing **Asset ID** because the **Asset ID** is the natur
2020

2121
## Workaround
2222

23-
To allow a user to edit the **Asset ID** on an existing asset despite the risk, extend the `init()` method on the **EntAssetObjectTable** form.
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
2424

25+
26+
2527
## More information
2628

2729
[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)