Counter

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.

Counter user control; the number is not editable

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.

Updated on December 29, 2022

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support

Leave a Comment