Table not updating when model queried

  • 1
  • Problem
  • Updated 3 years ago
  • Not a Problem
I have a button on a table to "Query Model". When pushed all the data is wiped out from view. The table shows the message "No Inventory Positions to Display" where inventory positions is the name of the object.

If I hit the refresh button in the browser the data will come back.

Any thoughts as to why this is happening?
Photo of Tami Lust

Tami Lust

  • 5,280 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Tami Lust

Tami Lust

  • 5,280 Points 5k badge 2x thumb
I have solved the issue. There was an abandonRow() action event attached to the model. I honestly can't remember adding this so I am not sure how it go there. 

Basically, when I would attach any action event to this model it would trigger the abandonRow() and my table would wipe out. I could not see any of this in the page builder. Only when I looked at the console and the XML did I realize what was going on.

Hopefully this will help someone out!
Photo of Emily Davis

Emily Davis, Employee

  • 3,502 Points 3k badge 2x thumb
Tami,
I'm glad you were able to figure this out! Thanks for posting with an update.
Emily