Questions tagged as 'controller'

1
answer

Page loads before the firebase data returns.

I'm having a controller, where I look for data from the firebase, but when doing this search the code undergoes a delay and the page is loaded before with empty data before the query actually ends. My controller: function DashboardControlle...
asked by 12.10.2018 / 19:57
2
answers

Problem in the Controller JSP class

Hello, I need help, I have the problem on my system when I send an edit command. When I click the button to edit the table row I want, the screen turns white and does not show the options to edit. In the URL it shows that the fields are passing...
asked by 30.07.2018 / 18:40
1
answer

Null Exception when importing service in controller res

In the example below, I'm trying to do a RestFul Service by completely separating the @RestController, @Service, and @Repository. But I have a difficulty, because when I try to use the service inside the controller, the instance is always NULL,...
asked by 25.04.2018 / 16:49
1
answer

How do the Spring MVC ResponseEntity return on a new page?

I have a method of a report controller (posted below), to which I get a PDF. The problem is that it returns the pdf on the same application tab and this is killing it. How can I do to return in a new tab? Post method that is submitted in h...
asked by 05.02.2018 / 00:18
1
answer

ASP .NET MVC - Use an @Html.DropDownList for two ActionResult

Hello, I'm developing an application with ASP .NET MVC and using the EPPlus API for XLS export. In the View of an equipment report I have two @Html.DropDownList with Equipment Type and Status respectively. To display the report...
asked by 19.10.2017 / 19:50
1
answer

Controller Laravel?

How can I style an object in a array in controller Laravel? Mapper::marker($marker['lat'], $marker['lng'],['label'=> "<div>".$marker['label']."</div>"]); Controller public function index(){ Map...
asked by 10.09.2017 / 01:35
1
answer

Save in the database the information of a variable in Codeigniter

I'm getting a lot of product information from the Cosmos API and storing it into variables, but how do I save the information from those variables in the database? VIEW $curl = curl_init($url); curl_setopt($curl, CURLOPT_HTTPHEADER, $hea...
asked by 27.06.2017 / 21:48
1
answer

Call Action via javascript

Good afternoon, I need help with a simple problem, but it's knocking me down. I need to call a controller method and pass two parameters to it, I did something, but it's not working, does anyone know where I'm going wrong? View <input...
asked by 13.03.2017 / 19:33
1
answer

Add field to standard laravel 5.3 log form

Good afternoon, I want to add the type field to the user of a laravel system and I'm doing it as follows: migration public function up() { Schema::create('users', function (Blueprint $table) { $table->increment...
asked by 12.03.2017 / 16:51
1
answer

How to create a query form with Angular?

Person, how do I create a form with some fields to query for example: Name and Phone and a Query button to send this data to the backend query and display in another view the return in a PivotTable. I can do this using Service normally, but i...
asked by 28.09.2015 / 21:01