Most voted "view" questions
This is the application display layer (which is separated from the other layers in the MVC standard).
Learn more…185 questions
Sort by count of
-
2
votes1
answer134
viewsHow to perform mathematical operation within the MVC view
I am creating a web application MVC 5 for studies and I have a question: it is possible to perform a mathematical operation in view? I wanted to multiply line 16. What would be the solution?…
-
1
votes1
answer166
viewsGroup Textviews and then access them
Example: I have 3 TextViews and its id's: TextView tv1 -> id: "um" TextView tv2 -> id: "dois" TextView tv3 -> id: "tres" I would like to group them in some way that I can access them…
-
1
votes1
answer383
viewsPassing value from one view to another view - PHP
Guys, I need to pass a value from one View to another View, in case an ID. For example: In the Main View I have a list of vacancies, when I click on one of the vacancies will load the second View…
-
1
votes1
answer1642
viewsHow to return to View items checked by Checkbox?
I am developing a project in ASP.net MVC. In my registration form, I have a checkbox where I select the items I would like to add in the BD. My edit form, I have to get these checked items and show…
-
1
votes1
answer307
viewsHow to fill a code column for reference with repeated values
I have a query where I have returned several data of each user. However, when performing a search, I have as return the repeated data. I know that this repetition of the data happens because I do…
-
1
votes3
answers1378
viewsDatetime field display in View with hours, minutes, day/month/year?
How to manipulate the datetime and show in view in the following format? HH:MM dd/MM/aaaa
-
1
votes1
answer3970
viewsPass a list of View objects to the Controller
I have a Customer class and an address, and a customer can have many addresses. I am trying to create a Client View where I can add as many clients as I want, and then I can add these addresses to…
-
1
votes3
answers220
viewsReturn in a view-specific div
I have a view where the contact form is at the bottom of the page, with validation via Dataannotations. When I click the send button, the controller checks the Modelstate, if it is not valid, it…
-
1
votes2
answers239
viewsHow do I see a view inside the Viewcontroller after pressing a button?
I’m starting to program in Swift and would like to know how do I hide and show a view which is inserted in ViewController after pressing a button. In the app, the user will pass some data and click…
-
1
votes1
answer1724
viewsWhat is Recyclerview on Android?
What is the function of RecyclerView in an Android app?
-
1
votes1
answer203
viewsHow to open a Dialog without darkening the Android background screen
I have an Activity, and in this one I call a Dialog, but when I open this 'popup' the background Activity screen that called it darkens, but I wish that didn’t happen. You can do it?
-
1
votes0
answers169
viewsCake PHP - Form in the view index.ctp
I got the views: index.ctp, add.ctp, edit.ctp. Generated via modified Bake and everything, now what I need is in the view index, when you click ADD NEW or EDIT, instead of going to the respective…
-
1
votes1
answer105
viewsSelect Betweeen in data Cakephp
I’m trying to select records in a date range. $mesAtual = $this->requestAction(array('controller' => 'compras', 'action' => 'comprasMes'), array('condicoes' => array('Compra.status'…
-
1
votes2
answers1616
viewsHow to Send Controller Checkbox?
I have a View where in a client list there is in the first column (table) a Checkbox so that it may be possible to select one or more customers and send to Controller. In View I am using the…
-
1
votes2
answers158
viewsViews with php transition with the controller
I am a beginner in php, and so I have caught a lot. Also because I have used sublime text with apache and php installed separately (use Ubuntu with OS). Well my question regarding views and php is:…
-
1
votes2
answers112
viewsHow to pass post variables, save them until the last step and show all values
I have a form that is divided into 10 parts, IE, I will save via post the variables from page to page. However, if you refresh on the page all previous variables are lost. How can I solve the…
-
1
votes1
answer85
viewsHow to correctly insert a Bootstrap navbar into the Codeigniter view?
I am learning Codeigniter and would like to know what or what are the correct ways to insert a navbar in my view taking into account that it will be inserted by all views present in the system. My…
-
1
votes1
answer412
viewsHow to add a view dynamically to android as registered in mysql
I would like to know how to add a view (Relativelayout) dynamically in my xml, as records are found in my Mysql BD... (My connection is made through Volley lib)
-
1
votes2
answers68
viewsHow to rewrite the initial array and remove items by the ID in the view with Smarty?
I’m using the View rendering library with Smarty. In my view, I have an output with the product information array inside a foreach: {assign var='remove_products' [712, 716, 717, 718, 719, 720, 745,…
-
1
votes1
answer1175
viewsHow to take the value of a Dropdownlist to choose the action to be executed
I ask for your help to help me to assemble the following situation: I have a structure in EF database first where I have a type that the user must select and after selecting this type in the…
-
1
votes3
answers534
viewsHow to access view components that are inside a Listview Xamarin Forms
I need to access the properties of the components created on View to set some values (example height and width), but are within a ListView, with that, in the .cs I can’t give This.Component even…
-
1
votes0
answers555
viewsBootstrap with cellular-aligned navbar
I have the following code defining a navbar with bootstrap: <nav class="navbar navbar-default"> <div class="container"> <div class="col-xs-1 hidden-xs"> <div…
-
1
votes1
answer166
viewsFunction to return the binary value of an image
I created the following Function to return the binary value of an image. However, when executing the query you are displaying the following message: CREATE FUNCTION [dbo].[fn_image](@DSCAMINHO…
-
1
votes1
answer1231
viewsHow to create this view in postgres?
CREATE VIEW grafico AS SELECT AVG(realizacao) , AVG(estima), AVG(fisiologica),AVG(seguranca),AVG(social) FROM necessidade; I am trying to create a view that brings the average of five columns of the…
-
1
votes3
answers506
viewsHow to get the object focused on Android
Hello to all I have the following Listener below which checks if an editText has been changed, the Listener will be identical to several editText so I would like to get the current editText through…
-
1
votes1
answer211
viewsSelect with cast(Numeric as decimal) works, but view creation does not
Good morning to all! I currently work with postgresql and am doing a database migration, and need to create a view of my old database tables. Well, I need the numerical columns to be rounded 15.3…
-
1
votes2
answers2424
viewsTrying to get Property of non-object?
This is my View: <tbody> @if(isset($pessoas)) @foreach($pessoas as $p) <tr> <td>{{$p->nome}}</td> <td>{{$p->idade}}</td>…
-
1
votes1
answer229
viewsHow to make a date filter in Django
I need to do a filter on the views where you bring me the date of the last 30 days. And I’m not sure how to do that.
-
1
votes1
answer104
viewsIs it more correct to use the Master-Detail concept?
I have a situation that I would like to use the most correct (elegant) way to implement. The scenario is as follows: I’m building a Helpdesk system where Tickets are stored in one table (and…
-
1
votes1
answer1036
viewsUndefined variable: users
Undefined variable: users (View: C: Users Vitoria Desktop Laravel Resources views painel.blade.php) Panel.blade.php <!DOCTYPE html> <html lang="pt-br"> <head> <meta…
-
1
votes1
answer309
viewsAlternative to using view variables in mysql
I need to create a view that gets the percentage of each product in relation to the total of products, I made the query below and this working as a normal select: set @total := (SELECT…
-
1
votes0
answers19
viewsPTBR FATAL EXCPETION:main java.lang.Runtimeexception - window get call back
I am making an application that needs to swap between screens and appears the following error: early java.: package com.example.deadsec.gerflores; import android.content.Intent; import…
-
1
votes1
answer450
viewsSave visit cookie to page
Hello I am using a mysql php code that counts the visits of each page, but whenever the page is updated it adds one more visit, I would like a help with my code so that it saves the cookie for a…
-
1
votes1
answer161
viewsHow to redirect to another view after sending email?
In the code below, after sending the form via e-mail, the same is loaded view. Instead, I need you to be directed to another view. (thanks for example) Below follows the code: public function…
-
1
votes1
answer161
viewsViewholder Pattern in an Activity
Let’s assume that I have an Activity with its layout and, using the Butterknife and the Viewholder Pattern, I create a nested class in which I pass the View root and inject the Butterknife in it.…
-
1
votes1
answer1242
viewsForm validation - Angularjs
I am trying to validate a simple form, where when the user leaves some field blank a div is damaged with this error. Follow the code var playlistApp = angular.module('playlistApp', []);…
-
1
votes2
answers570
viewsCreate a VIEW or a new TABLE in Postgres?
Olás! I have a situation... I have a table that will have about 3*10 12 lines (3 trillion), but with only 3 attributes. In this table will have the Ids of 2 individuals and the similarity between…
-
1
votes1
answer88
viewsPlaying Controller Info for View CI3
I’m working with Codeigniter3 in the MVC model and I’ve been having problems for a long time, I’m slowly solving some problems here and there and I’m almost getting to the point. I’m making a query…
-
1
votes1
answer46
viewsFor every time I make a page in Codeigniter I need to put the links of JS, UI, VALIDITY?
I could use the help of the experts there. Every time some codeigniter application I need to put the links, that usually get in the head or footer inside the page I created? Example: I create a User…
-
1
votes0
answers718
viewsSpring+JPA, visible Transient field in View and not persistent?
Good evening guys, I have a filter that I do manually with @query() that in it I make a total calculating Join of a sale ie, SUM(valor * quantidade) as total At the end I’ll put the filter for…
-
1
votes1
answer43
viewsError when modifying a View column with calculation
I need to insert a calculation column in this view below, but the message appears Msg 205, Level 16, State 1, Procedure Consolidadoestudobasesifix, Line 4 [Batch Start Line 9] All queries Combined…
-
1
votes1
answer82
viewsI can’t display anything in a JSF view
I’m working on a web application to develop a module, but I can’t display anything in the view, not even a simple message. The view loads the template, but does not display anything I put in the…
-
1
votes1
answer283
viewsHow to add values after filtered in Django?
Here’s my loop (in my.html template): {% for item in filter.qs %} <tr> <th scope="row">{{ item.id }}</th> <td>{{ item.nome }}</td> <td>{{ item.data|date:"d, F"…
-
1
votes1
answer101
viewsMVC and JAVA doubt
Giving continuity to a project of the college that was stopped, I intend to do it in Java already I did and I remade from scratch about 2 times however, it was horrible and to each class I realized…
-
1
votes1
answer433
viewsUndefined variable: page (View: ... Resources views layouts app.blade.php
Variable does not work when logging in. in the login view I’m injecting the layout: @extends('layouts.app') and in the layout has the variable <p class="num">Telefone:…
-
1
votes0
answers17
viewsMixin Django Class Based View Python3
Good morning guys: Problem = add a new functionality via a mixin in Jango for a CBV. reason = I want to create two records in two different records. Trying = class CreateUserMixin(object): def post2…
-
0
votes1
answer834
views -
0
votes1
answer110
viewsButton on top of a View with Canvas
I’ve been trying for some time to put a Button on top of a View I’m using with Canvas. I looked in several places (this seems to be a common problem) but found no answer. When I try to run the…
-
0
votes1
answer76
viewsCustom view longClickListener does not respond
I’m trying to get my view to accept long clicks, but nothing happens. I looked at other similar posts but found no solution. Any idea what might be going on? <?xml version="1.0"…
-
0
votes2
answers496
viewsForm to change variable for a calculation in the same view
I’m starting with the Rails. I have a view that receives information from the database and by means of a model methods do several calculations. For example: <% @profundidade = 0.5 %> <%…