Questions tagged as 'view'

1
answer

Correct value still within View

I would like to know how I can change the value of @Model still in the view, before sending it to the server and which is the best way to do this? Example: @{ var model = (Pessoa)Model bool isAtivo = pessoa.IsAtivo }...
asked by 30.03.2017 / 17:42
1
answer

How do I know where the route came from and redirect back?

I have 3 tables in BD : Emitentes, Pessoas e Cidades . Being that in the Issuers table and in the People table I have FK id_cidade . When I am registering one, both Emitente and Pessoa have in the views a li...
asked by 03.04.2017 / 15:05
1
answer

Laravel - How to do a try / catch in the view?

Is there any way to do some try/catch in a view of Laravel 4 ? How could I implement the syntax of blade ? I would like something like: @try <div class="laravel test"> {{ $usuario->nome }} </div>...
asked by 14.07.2015 / 17:31
1
answer

How to change the cakephp layout

I created a newsletter submission layout, called email.ctp , and put it inside the View / Layout directory. My question is how do I use this layout instead of the default.ctp     
asked by 18.12.2014 / 18:34
1
answer

View with two or more unbound tables, with different columns and that need to be merged

I have two tables, "PRIMEIRATABELA" with the fields name, surname, and age, another table "SEGUNDATABELA" with the fields name, last_name, and age both tables has no link but need to join in a view being for example PRIMEIRATABELA.name and SEGUN...
asked by 20.09.2018 / 14:25
1
answer

Action call as parameter in Html.BeginForm - ASP .NET MVC 5

I have a code that queries a WebApi, writes to the database, and queries the database, in this application, a view that has 3 buttons, namely: Query Ws Insert BD BD Query I'm using @ Html.BeginForm to submit the button action and call...
asked by 23.02.2018 / 18:43
1
answer

How do I get information from items in a java listview and insert them into a textview android studio?

I'm learning to program, and I started a project where q shows information about Formula 1 teams, such as riders, age, nationality and titles of each. ClickingonanitemwilltakeyoutoanActivitycontainingtheinformationabouttheteambeingplayed. Iwoul...
asked by 24.01.2018 / 20:13
1
answer

Scroll up after changing view [closed]

I'm using angular on my system I'm changing views with the command $state.go('main.shops.cart.success'); But problem is that when changes the view scroll continues below. I would like it when it changed view scroll to...
asked by 27.07.2017 / 14:56
1
answer

Information in multiple tables or just one? [closed]

I have a lot of information that I need to save to the database. Some of this information is very similar: Example: time1, time2, time3, ... hour10. My question is whether to store everything in the same table or create a table for the inf...
asked by 01.09.2016 / 19:06
1
answer

Passing an array via Ajax to Django view

I want to pass an array via Ajax to my Django view, but an error always occurs    stream_or_string = stream_or_string.read ()       AttributeError: 'NoneType' object has no attribute 'read' $.ajax({ url: 'ajax/', type: '...
asked by 12.08.2016 / 16:28