Skip to content

Commit

Permalink
It was impossible to rename record with boolean in PK.
Browse files Browse the repository at this point in the history
Do better data type conversation
  • Loading branch information
Drakonian committed Aug 30, 2024
1 parent 591de20 commit 607fcb2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Codeunits/Cod81001.DETDataEditorMgt.al
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ codeunit 81001 "DET Data Editor Mgt."
FieldRefVar.Value(TempNameValueBuffer.Name);
end else
if WithValidate then
FieldRefVar.Validate(format(ResultVariant))
FieldRefVar.Validate(ResultVariant)
else
FieldRefVar.Value(format(ResultVariant));
FieldRefVar.Value(ResultVariant);
if DataEditorSetup.Get() then
if DataEditorSetup."Enable Data Editor Log" then
LogRename(RecRef.Number(), FieldRefVar.Number(), RecRef.RecordId(), xFieldRefVar, FieldRefVar, true);
Expand Down Expand Up @@ -132,7 +132,7 @@ codeunit 81001 "DET Data Editor Mgt."
if BindSubscription(SingleInstanceStorage) then;

RecordRefTemp := inRecRef.Duplicate();
RecordRefTemp.Field(FieldRefVar.Number()).Value(NewValueAsVariant);
RecordRefTemp.Field(FieldRefVar.Number()).Value(TextValueAsVariant(FieldRefVar.Type(), Format(NewValueAsVariant)));

case KeyValueIndexRelDict.Count() of
1:
Expand Down
Binary file not shown.
Binary file modified Volodymyr Dvernytskyi_Data Editor Tool_Latest.app
Binary file not shown.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "e28d62da-ceb0-46e7-9e06-774bc46f4bac",
"name": "Data Editor Tool",
"publisher": "Volodymyr Dvernytskyi",
"version": "3.0.0.5",
"version": "3.0.0.6",
"brief": "https://vld-nav.com/",
"description": "https://vld-nav.com/",
"privacyStatement": "https://vld-nav.com/",
Expand Down

0 comments on commit 607fcb2

Please sign in to comment.