Hi,
I am using the following code in the pages onReady function and it is working as expected, however, the same code is not returning the same results in an button onClick(). Is there a reason for this?
The button is definitely being clicked because I’ve added an additional console log but it is not reaching the if/else statement as nothing is displayed in the log for itemData.approved?
The button click now seems to be reaching the ‘if’ statement but is not displaying the correct formatting and it is still not reaching the ‘else’ statement.
Hi,
I checked your site, it seems like you are trying to display all the items in the database after you filtered them.
In order to do that you need to clear the filter (filter the dataset without parameters) and then go through the items.
Try this code for you button click event and let me know if you figured it out