why when I filter data where there is no data table it does not display the message No data available in table, I use three table relations through the model and server side in this ajax my code:
Controller with function json
enter image description here
ajax in blade
enter image description here
Related
I am getting the error of “outlets cannot be connected to repeating content”. I am trying to have a table view where the image shows url images from an API. How do I do this?
I have several types of data included in a web page.. only one data set is paginated. In the first page all the other data is shown. But when I navigate to the second page of that data set, the other data sets in the page is not shown.. Why this happens in Laravel?
I used paginate function in controller and {{ $variable->links() }} in the view.. how to solve this issue?
I'm totally new to CI. I am working on the project that fetch data from a db and send it a particular data to a form on a click of a ADD button. Here is the screen shot of my table..enter image description here
Here is the screenshot of my form..
enter image description here
Your add button should collect the data it needs, send it to controller, and controller passes it to model so it can collect the data that you need by sql. Pass it back to controller and controller passes the data to the view ( your form . In your view you just put the data where ever you need.
I'm using AMChart stacked chart to report test execution status from DB. Php file with query is feed into the dataLoader and the stacked columns displays Pass, Fail and NoRun count data for each category. I'm trying to use handleClick function to make the column clickable and once clicked, a query is fired to retrieve data specific to that column's Pass, Fail or NoRun count data and displays the data on the same page. I'm not sure how to implement this. Any help is greatly appreciated!
Below is all I have so far, clicking the column triggers an alert with name of the category and a count, my goal is to be able to trigger a php file with parameters passed in and display data from DB,
// add click listener
chart.addListener("clickGraphItem", handleClick);
function handleClick(event)
{
alert(event.item.category + ": " + event.item.values.value);
}
The issue has been resolved by using JSON (converted from DB data in PHP) and AJAX to display. Within handleClick I call another JS function and pass in the graph variables that the query inside PHP needs.
How can i Auto Load controller function to show data in a view?
Controller function, receive data from a model (query to the database).
And i want to show the info in the view, automatically.