{"title":"Dialog.Update([Integer] [, Any]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/dialog/dialog-update-method/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/dialog/dialog-update-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/dialog/dialog-update-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Updates the value of a '#'-or '@' field in the active window.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Dialog.Update([Integer] [, Any]) Method","slug":"dialogupdateinteger-any-method","at":0,"chars":1919},{"level":2,"title":"Syntax","slug":"syntax","at":164,"chars":144},{"level":2,"title":"Parameters","slug":"parameters","at":308,"chars":626},{"level":2,"title":"Remarks","slug":"remarks","at":934,"chars":851},{"level":2,"title":"Related information","slug":"related-information","at":1785,"chars":134}],"text":"# Dialog.Update([Integer] [, Any]) Method\n> Version: _Available or changed with runtime version 1.0._\nUpdates the value of a '#'-or '@' field in the active window.\n## Syntax\n```al\n Dialog.Update([Number: Integer] [, Value: Any])\n```\n> NOTE\n> This method can be invoked without specifying the data type name.\n## Parameters\nDialog\nType: dialog-data-type\nAn instance of the dialog-data-type data type.\n*[Optional] Number*\nType: ../integer/integer-data-type\nEach '#' or '@' field has a specific number. The Number argument tells into which field the Value should be inserted. If you omit this parameter, then all '#' or '@' fields in the active window are updated.\n*[Optional] Value*\nType: ../any/any-data-type\nThis value or expression can be any simple AL data type such as Boolean, Option, Integer, Decimal, Date, Time, Text, and Code. If you omit this value, then the value from the variable in the OPEN method (Dialog)] call is used.\n## Remarks\nDialog windows that are opened by an object are closed when the object terminates.\nDialog windows are automatically sized to hold the longest line of text and the total number of lines.\nWe recommend the following guidelines:\n Enter messages as text constants.\n Write messages using active voice. For example, write \"Processing items\" instead of writing \"Items are being processed.\"\n Align the \\# field to the left with at least one space character between the text and the variable.\n> NOTE\n> With the Dynamics NAV Client connected to Business Central, you can use @ characters instead of # characters for the String parameter to display the value as percentage and a progress indicator. The percentage value that is displayed is the percentage of the variable value from 0 to 9999. This is not supported in the Business Central Web client.\n## Related information\ndialog-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}