-
Hello, I'm strugglign with refreshing the table after external event update. I'm always one step behind (after next external event update the previous $this->externalId is executed in builder()). Is there a way to run the basic query after the $this->externalId is updated? Here is the code:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi! Any news? |
Beta Was this translation helpful? Give feedback.
-
I think I just found a way. I had a problem that is related to this. If you want to execute the builder just after something, you can use the following:
I think this shouldn't be the way, but it works to me better than refreshDatatable, which just loaded an empty table. |
Beta Was this translation helpful? Give feedback.
-
On the same path, we moved $this->setBuilder($this->builder()); and $this->setColumns(); to render() from booted() for now. |
Beta Was this translation helpful? Give feedback.
-
I think this is a very serious problem, I was struggling with this issue until I found this post, I expect the data would refresh when I call |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same problem. I'm filtering between two dates and do some calcs, but I'm one step behind in updates. |
Beta Was this translation helpful? Give feedback.
I think I just found a way. I had a problem that is related to this.
If you want to execute the builder just after something, you can use the following:
$this->setBuilder($this->builder());
I think this shouldn't be the way, but it works to me better than refreshDatatable, which just loaded an empty table.