Questions tagged [view]

This tag is for questions about database view or UI / architectural view. See also the following tags: sql-view, android-view, uiview.

The purpose of almost any computer program is to process data in one form or another. When the program requires user interaction it is often necessary to provide the user with a view of that data to represent it in a useful and comprehensible manner.

View also refers to:

  • A stored query in a relational database that can be accessed as if it were a table.
  • The display or presentation layer of a MVC architecture.

Questions tagged should also be tagged with the relevant language.

25981 questions
5
votes
2 answers

how to sort in .each loop in Rails 2.3

This is my code in the view. The Controller is simply getting the @category from the model. This sort is not working. Ultimately I need it to sort alphabetically by name. <%- @category.brands.sort_by{|brand| brand.name}.each do |brand| -%> …
TJ Sherrill
  • 2,465
  • 7
  • 50
  • 88
5
votes
1 answer

ERROR: must be owner of materialized view PostgreSQL

I get the following error: ERROR: must be owner of materialized view mv_sessions SQL state: 42501 When trying to refresh my materialized view: REFRESH MATERIALIZED VIEW CONCURRENTLY partners.mv_sessions; The owner of mv_sessions is my custom…
Nikk
  • 7,384
  • 8
  • 44
  • 90
5
votes
2 answers

Using a View from SQL Server 2008 in C# & Asp.net

I have a C#/ASP.net project has included a database that I have developed that includes a nice and convenient View that would be handy to use. I have the SQL connection setup to a SQL Server 2008 DB I created. It seems as though it is connecting…
ImGreg
  • 2,946
  • 16
  • 43
  • 65
5
votes
2 answers

Which one is faster view or subquery?

The question says it all. Which one is faster? And when should we use view instead subquery and vice verse when it comes to speed optimisation? I do not have a certain situation but was thinking about that while trying some stuff with views in…
Yasen Zhelev
  • 4,045
  • 3
  • 31
  • 56
5
votes
1 answer

drupal views module mysql error

i have enabled the view module and get this when i go to structure>views in drupal 7 Additional uncaught exception thrown while handling exception. Original PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: DELETE…
chan
  • 51
  • 2
5
votes
4 answers

Codeigniter Undefined property: xxxx_model::$db only from Model

First the Model class: class Xxxx_model extends Model { function XxxxModel() { parent::Model(); $this->load->database(); } function isInDatabase() { // Please ignore the sql query, it's…
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
5
votes
1 answer

Postgres View, after alter table to change table name, View still queries it?

Using Postgres database. I have an existing table, and several existing Views that query that table. Call the table, 'contacts'. I alter the table, changing the name to 'contacts_backup'. I then created a new table with the same name the older…
5
votes
2 answers

Custom View - How do I set their ID's so that they can be found via findViewById()?

So I have a custom view set up in code (no XML layout defined for it) and am wondering how to get the child Views ID's defined correctly. I DO have an xml file defining id's similar to this.. But how I understand it, at least, since I don't have…
Joishi Bodio
  • 438
  • 6
  • 17
5
votes
1 answer

How to create view/python reference on scipy sparse matrix?

I am working on an algorithm that uses diagonal and first off-diagonal blocks of a large (will be e06 x e06) block diagonal sparse matrix. Right now I create a dict that stores the blocks in such a way that I can access the blocks in a matrix like…
Jonas
  • 145
  • 1
  • 4
5
votes
1 answer

Drawing anywhere on screen in Mac OS X / Objective C

I'm trying to create a little utility that will draw an arbitrary shape on the screen below the mouse pointer (basically like drawing a line that follows the cursor). This could be anywhere on the screen not in a specific window. My problem is that…
iamamused
  • 2,720
  • 3
  • 25
  • 17
5
votes
1 answer

why this view function is not free ether function?

Show Image as you can see the image above, the function 'custLogIn' is view type (free on ether) but after deploy the contract trhough Remix, it changed into non-free function. I want to know about it and change into ether free function. please give…
mecha kucha
  • 111
  • 1
  • 2
  • 10
5
votes
2 answers

Changing the default view path in Rails?

I want to be able to change dynamically the view folder. The aim is to be able to change completely the web design depending on the request. I am thinking about something like this : Class PagesController …
Hartator
  • 5,029
  • 4
  • 43
  • 73
5
votes
3 answers

Laravel - Lot of Accessors (Mutators) for rendering Views with Blade

I have a Laravel 7 project with the need of a lot of data transformation from the model to the views before being displayed. I thought about using Laravel Accessors and use them directly in my blade.php files. But when I finished dealing with a…
Alice
  • 116
  • 8
5
votes
3 answers

Rails content_tag helper for simple things?

Should I be using the content_tag helper for all html tags when working with Rails? Is it The Rails Way to use content_tag for even simple things like Header tags? <%= content_tag :h2, :class => "bla bla" do %> Header <% end…
ardavis
  • 9,842
  • 12
  • 58
  • 112
5
votes
2 answers

display widgets on map view

i am new developer in android application.i would like to display Google map in my application.here i would like to display android widgets on map view.can i display android widgets like Buttons,Edit text boxes,Text views et., i have design code for…
prasad.gai
  • 2,977
  • 10
  • 58
  • 93
1 2 3
99
100