The counter component is used to generate a numeric value and assign it to a concept as it’s created and is displayed as a read only field.
The format of the counter is highly customizable, simply create a custom format by following the Custom numeric format strings article provided by Microsoft and put your desired format in the Counter Format field in the field definition.
Component Code
The first section of the code for the component contains the standard parameter set along with the variables needed for the component to function. Following the variables are the methods used by the component which are listed below.
OnParametersSetAsync()
This method is called when the component initializes and when there’s an update to the parent component. It’s purpose is to assign values to the variables and add the new values to DataChanges to be saved.