Questions tagged as 'view'

1
answer

DataAnnotation: How to validate "e-mail" property, check whether or not it exists in the database, with attribute not being in the client but in the Server

I have a layered application, and in my presentation layer, I have a ViewModel that is UsuarioViewModel within this I have a property call public email {get; set;} . > that is being registered already exists in...
asked by 05.01.2015 / 21:39
1
answer

I can not get into the foreach of a blade in laravel 5.7

I have a small problem that I still can not figure out how to solve, I have a View and I can not get into foreach of this same, follow View : <div class="form-group"> {!! csrf_field() !!} <!--{{ dd...
asked by 19.12.2018 / 18:29
1
answer

Pass variables on all renders

I have an application using NodeJS, Express (and a few more dependencies). I reduced the application to the file below to explain my question: app.js: // Dependências. const express = require('express'); // Criar a instância do express. le...
asked by 18.01.2018 / 17:16
3
answers

How to get a variable that is in the controller and put inside a view (laravel)

I'm playing with laravel and then came the following doubt. I need to get a variable that is in the controller and put it inside a view. In case I am sending an email with data contained in a form. Basically this is how the user types the inf...
asked by 17.02.2017 / 19:45
1
answer

How to use variables in view in laravel 5

I'm developing a project of "borrowing" things from a company and I'm locked in a key module. So I do not have much experience in laravel, so I came across the following situation: Database - I have a LOCAL table that correlates with multip...
asked by 20.06.2016 / 23:53
2
answers

"Object reference not set to an instance of an object." error when displaying a null value in view

Within C # MVC5, I'm creating a user registration form with multiple fields. One of them is the (Gratified) Role field, which the user may or may not have. The following is the class User: public class Usuarios { public int Id { get; s...
asked by 19.02.2016 / 19:37
3
answers

Laravel - How to use a combobox in the 'on load' event of a view (blade)

I need a combobox with data coming from the database, but this fill should occur when loading the view. Since the view is not the correct place to write code, how to feed the combobox? Through a method in a controller? What is the 'mechanism'...
asked by 17.05.2016 / 13:33
1
answer

How do I remove a view created in the java code by the Id of this view?

How do I remove a view by the ID? Because in my application it has an "add" button to add a group of components that "group" which is a LinearLayout has a field and an "X" button of delete. When you press the "X" button it has to delete on...
asked by 07.10.2015 / 20:03
1
answer

How do I open a ViewController via Local Notification?

I have an application that sends notifications to the user from time to time, but how do I open a View other than the main View when the user clicks the notification? Example, Whatsapp conversations, Messenger notifications, ie open specific...
asked by 23.06.2015 / 19:22
2
answers

Call a controller action for the views

I'm using Yii2 and doing a site project where one of the features is to list the movies bound to a specific user. I already have a method to associate the movies with the accounts and one that does the inner join of the tables. (Actions Code)...
asked by 15.12.2017 / 18:03