expecting a successfully created form like smart actions which takes in the existing values of 2 columns in a row and allows me to update the values of these 2 columns.
Context
I am trying to create a smart action for the client table (collection). This smart action is to be used to update values. So it will be a form like smart action which displays the current values of the fields and allows us to update the value of that field. But the client.rb file in the models section includes a module VivColendingApi inside which exists a class Client. So when I include ‘collection :Client’ in /lib/forest_liana/collections/client.rb, there is absolutely now change in my admin panel, i.e no smart action is getting created. So I replaced collection :Client with collection “VivColendingApi::Client” which is giving the error shown in the logs. I do not understand what to call my file, collection, class etc. to actually make the smart action work.
Please provide in this mandatory section, the relevant information about your configuration:
The smart action is not getting reflected on the admin panel even after making the change that you’ve mentioned. Only the default duplicate and delete actions are currently visible and not the update incorrect values action that I am trying to create. What should I do?
Seems like you initial error is gone, that’s nice.
I properly see the “Update Incorrect Values” in our database, and I tried to refresh your project on my end.
By chance, did the action appear on your admin panel?
If not, could you try to change it a little (eg, append a “2” to its name) to force an update?
If this still not works, could you check this documentation page about Smart Action permissions? Some settings may be missing.
There has been no change on my admin panel. The action did not appear. I changed the name of the smart action and am attaching the screenshots of the same. But there was no impact of changing the name either.
I have also tried creating a smart action very similar to mark as live on a different model (called integration) because mark as live has a simpler code than update incorrect values and therefore a smaller chance of an error but even that mark as live smart action is not getting reflected on the admin panel.
Sorry for the delay in my response. I was trying to make atleast one smart action fully functional before we concluded this thread and it was successful. I have created an update namespace SA that that is working as expected.
The issue was what you have pointed out. Once I changed the name of the collection to VivColendingApi__Client, the smart action started reflecting on the UI.