I created a datatable feature with options to 'ADD' and 'EDIT'. When the user clicks on the add-button, a popup will appear prompting for element name and symbol. After entering the details, the user can click the save button.
However, I am encountering an issue where I am unable to retrieve the form values in the component. Additionally, within the datatable, there is an edit option. If the user selects the edit button for a specific row, the element name and symbol should display in the same popup. Unfortunately, this functionality is currently not working. Can anyone assist me in troubleshooting this problem?
Below is the initial screen displaying the data table with the add and edit buttons:
https://i.sstatic.net/A1vWZ.png
When the user clicks the ADD button, a popup with two dropdowns should appear. However, I am encountering difficulties in retrieving the selected values when the Add button is clicked.
I have two expectations:
- Upon clicking ADD, I should be able to access the selected dropdown values in the component
- When the Edit button is clicked, the element name and symbol should be displayed in the same popup
View Demo