Help on Creating a Formular Editor/Input Component in Blazor
Budget: $50 – $100 USD
I have a payroll app I am working on in Blazor.When the wage is created the user is asked to enter the formular of how the wage will be calculated (see attached screenshot).There are standard tokens allowed in the app and they include
Percent
Basic Salary/Base Hourly Rate
Number Of Litres
Rate Per Litre
Fixed Amount/Fixed Rate
and the mathematical operators allowed include
*,/,+ and- including (,and )
Now when the wage is being assigned to an employee the user is presented with a screen indicating the formular (see drawing and screenshot) the user enter the amounts in the textboxes for example if the formular is
Basic Salary * Percent the Formular editor will have two input elements one for the Basic Salary (But because the Basic Salary is a based on another wage it is read only) and the user is required to enter the percent in the percent input element.The problem I am having is that blazor is not disposing the previous dynamic components should the user attempt to add another wage to an employee. The code I am using the screenshots are attached.
Percent
Basic Salary/Base Hourly Rate
Number Of Litres
Rate Per Litre
Fixed Amount/Fixed Rate
and the mathematical operators allowed include
*,/,+ and- including (,and )
Now when the wage is being assigned to an employee the user is presented with a screen indicating the formular (see drawing and screenshot) the user enter the amounts in the textboxes for example if the formular is
Basic Salary * Percent the Formular editor will have two input elements one for the Basic Salary (But because the Basic Salary is a based on another wage it is read only) and the user is required to enter the percent in the percent input element.The problem I am having is that blazor is not disposing the previous dynamic components should the user attempt to add another wage to an employee. The code I am using the screenshots are attached.