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

Calling MYSQL CREATE VIEW using php code?

need some enlightment here, and this is my first post here. I would like to call and use my previously created mysql view using php... is it possible? or in another words, i'm wondering....can we OR how do we call mysql view, that we already created…
Bayu
  • 53
  • 1
  • 1
  • 5
5
votes
4 answers

Is it more efficient to query from a view in database than from table?

Suppose I have a table A, creating a view V from that table. Then I do several queries from V. I wonder if V will be re-constructed each time I query? or it will be constructed only 1 time, and being saved somewhere in memory by DBMS for next…
user188276
5
votes
2 answers

Rails 3.1 Asset Pipeline for Javascript

Ok, I've read a lot of information about the new Asset Pipeline for Rails 3.1 and I couldn't find a proper answer to my doubt. I was loading my .js files according to the view#action I was rendering, on demand. I was doing this to prevent incorrect…
Rafael Oliveira
  • 2,823
  • 4
  • 33
  • 50
5
votes
3 answers

How to load a very large sourceimage in WPF image?

I have a very large image (600mb) 30000x30000 and want to load it into a wpf image control. I can watch this image with the Windows Photo Viewer! I set my testapp to 64bit and used the following code. var image = new…
Andreas
  • 3,843
  • 3
  • 40
  • 53
5
votes
1 answer

Add view to already existing xml viewgroup in code

I would like to be able to add a view to an already existing xml layout in code: LinearLayout ll = (LinearLayout) findViewById(R.layout.common_list); TextView tv = new TextView(this); tv.setLayoutParams(new…
Klau3
  • 317
  • 1
  • 2
  • 9
5
votes
1 answer

Ruby on Rails: Get next item in model

Say I have simply ran rails g scaffold book name:string about:text On the 'show' view, how would I implement a button to go to the next item in the model. I can't simply do @next = @book.id + 1 because if @book.id = 2 (for example) and I clicked…
Keenan Thompson
  • 980
  • 3
  • 13
  • 31
5
votes
2 answers

How to place views in a specific location (x, y coordinates)

I have a problem with placing my views (my class extends View) in a specific location. I have designed a game that treats the screen as a net of grids. I get from the user x and y coordinates of a specific view (I have different types of views). My…
amigal
  • 517
  • 3
  • 8
  • 21
5
votes
2 answers

mysql view if else problem

I m working with mysql view and i want use IF ELSE statement on that view. its giving me error like this #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near…
Roshan Wijesena
  • 3,106
  • 8
  • 38
  • 57
5
votes
1 answer

simple_form input with multiple fields

I'm not quite sure what the correct terms are, but what I'm trying to do is in a form (preferably using the simple_form gem) have one of the inputs, :maximum, use both a text field and select box. The user would type in the text box a number, and…
Alexei
  • 127
  • 13
5
votes
2 answers

Adding background to entire UISplitViewController

Hey I want to add a background image to my UISplitViewController that spans the entire iPad screen and is visible underneath both my master and detail views. I've tried this a number of different ways and have yet to be successful. If I place it in…
Evan Davis
  • 462
  • 1
  • 4
  • 9
5
votes
2 answers

Backbone.js - Binding from one view to another?

I have a main app view, with a filter menu in the header. When it's clicked, I want to filter content in a seperate news-feed view. But I don't know how to bind events (and pass class data) from clicks in one view to a function in another. How can I…
Danny Anges
  • 237
  • 5
  • 10
5
votes
1 answer

Eclipse RCP application - multi-window design for multiple monitors

Question about Eclipse RCP and whole perspective/view/editor design - what is the best way to create application which will display multiple windows on multiple monitors? Tutorials and book I've seen always pack RCP/SWT design into views inside…
tomash
  • 12,742
  • 15
  • 64
  • 81
5
votes
1 answer

Index is not being used on a view with WHERE CONTAINS clause

I created a table and one of the columns is address. I then created a view with a WHERE CONTAINS clause that states select can only be performed on address that contain a specific word. I then created an index of the address column on the…
Christopher
  • 671
  • 3
  • 10
  • 18
5
votes
3 answers

YII : How to Change datetime format displayed on the View

A newbie question in Yii: I have a model of a table in Yii that contain a datetime field. I'm using CActiveForm to display this field:
labelEx($model,'createdon'); ?>
Calua
  • 495
  • 4
  • 11
  • 18
5
votes
5 answers

Rails 3, only rendering partial if a user is logged in

On a Rails 3.1 app, I have a method called user_logged_in? from Devise, which I want to use to render a partial selectively. Here's the code in layouts/application.html.erb: <% if user_logged_in? %> <%= render :partial => "home/statusbar" %> <% end…
joseph
  • 780
  • 7
  • 20