views

Separating Django App Views

If the app/views.py file gets very large, should I separate it? If so, what is the best way to do this? ...

Can I use one single exposed filter to filter multiple block views on a different page?

I have four block views on a page (call it "info" page) that are filtered by proximity to give me four pieces of information relating to one particular filtered location. I would like to be able to create an intro page with an exposed proximity filter that when executed would take me to the (info) page and simultaneously filter the four...

MVC Views | How do *YOU* handle IsAuthenticated Scenarios?

Typically, in sites that allow membership, you want to offer your users a bit of data that is only visible when they're logged in. For my site, if the logged in user is the data owner, I want to offer some tools to let them manage the data. My question is this. Do you split this duty between two different views? One view that gets load...

CouchDB views erroring out

I've been playing with CouchDB (and the RelaxDB ruby library) but creating a view and then trying to access it causes a nasty non specific error. I stepped back a step because I thought RelaxDB might be incompatible with the CouchDB version I'm using(0.8.1), but even when I create a new database and equivalent views and call it by manual...

Unable to create a simple view on Oracle table

An external DB admin guy exported a production database and imported it into test environment. We are using Oracle 9.2. Majority of imported database objects (tables, views, idexes, packages,...) works fine, but we have problems with three specific tables: we can do SELECT,UPDATE, DELETE on those tables, but we can not create views on ...

Create an index on SQL view with UNION operators? Will it really improve performance?

I am trying to create an index on the following view: SELECT 'Candidate' AS Source, CandidateID AS SourceId, LastName + ', ' + FirstName AS SourceName FROM dbo.Candidates UNION SELECT 'Resource' AS Source, ResourceID AS SourceId, LastName + ', ' + FirstName AS SourceName FROM dbo.Resources UNION SELECT 'Deal'...

How do "directory VIEWS" auto-update their file list?

I am just curious about this. I had a network folder open on one computer viewing the files in the folder. From another computer I opened the same folder on the network and deleted a file. On the first computer the deleted file immediate disappeared from the list. The only way that I can think of how it knows that is that it is constan...

Use SQL to Filter Drupal Views

I have a content type with a CCK integer field which takes a unix timestamp. I would like to create a view with a filter that takes the MySQL function "UNIX_TIMESTAMP": If there is no way of doing this, how can I alter the SQL generated for the view? ...

How do you use Linq to connect tables in different databases?

I'm a bit of a Linq newbie, and I couldn't find any documentation to help me with what seems to be a pretty trivial problem - so your help will be much appreciated! I have a table Table1 in database DB1, which has a "pseudo" foreign key Table2ID to table Table2 in database DB2, on the same server. "Pseudo", because obviously I can't ha...

Manually coding MVC Views vs. asp:ServerControls

I barely got into ASP.Net webforms when MVC came out, and now I'm ready to try it out. But, I want to clarify something to be sure I understand the View coding in ASP.Net MVC... I've heard that you must hand-code all the HTML in the View layouts, and that you cannot use server controls for this. Now, I like the way you can use the asp:L...

How to specify the location a Mvc view will be created for a Mvc controller?

Important Update Since the release of MVC 2.0 Preview 1 this feature has been implemented as the part of the actual framework itself in the form of Areas. More details available on Phil Haack's blog here I have a controller called ListManagerController. This controller contain an ActionResult method called Index(). When I right ci...

How to show Number of Views (like This link/page has been viewed 68 times) in rails?

How to show Number of Views (like : This link/page has been viewed 68 times) in rails? I sthere any gem or plugin available for it ? ...

Should I use .erb or .rhtml files for a Rails app in which all Controller logic exists in Views?

I'm just starting to learn Rails. I created an empty Rails app. And instead of writing a Controller, I want to put all of my Controller logic in my Views instead of in separate Controller classes. To do this, should I use .erb files or .rhtml files and what's the difference? ...

Drupal: How to show specific view in a particular block

Let's suppose I have created a view that shows some kind of stories. But I want to show this view in a left bar - not link to view, but the view itself. How can I connect my new view with a fixed block position? I want to be able to show real view data in various places on my page. Is it possible or I am limited only to central area and...

Asp.Net MVC - View -> Create 2 objects

First of all, I'm really new to the MVC Asp.Net ideology. I would like to know how can I create two objects (model) into one view ? because if I look at the view header it's inherit from one model : \<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> So, if, for example,...

How can I do this without breaking the MVC framework in CakePHP?

Sorry for what is a generic title. I'm not the best at titles. Anyway the way Cake passes around data (as a hash) is pretty much the reason why I even need to ask this question. If when I passed a variable/obj from the controller to the view, it was an object that I can ask questions to (i.e. $duck->quack() ) rather than having it be an...

Retrieving key from new object created from create_object using Django generic views

My code looks as such: def add_cart(request): return create_object(request, form_class=CartForm, post_save_redirect=reverse('test.views.show_cart', kwargs=dict(object_id='%(key)s'))) Ideally, I would like it to look like so: def add_cart(request): newobject = create_object(request, form_clas...

JQuery Grid or Loop through partial views?

Hello Has anyone been able to customize jQGrid? While I'd like something easy I can pluing and use that provides paging, I find that the layout is "tight" ( not in the cool way ) the gird is too excel-like. I'd much prefer one with spaced out grid rows and ability to use icons. But before I write the grid off and start hand rolling a...

alternate to indexed views

Whats the alternate approach to indexed views in sql server? Thanks, Salman Shehbaz. ...

Drupal: how to move node comments under Read More link?

My Drupal is displaying a simple custom view, with a nodelist. The trick is that my view displays comments under nodes in the list. That is too much for one page and I need to get a list of pure nodes and hide comments under ReadMore link. I've tried to play with comments settings for my the custom node type I am displaying, but even if...