view

Table and List view with single Model in Qt

I have a 2D model where each row represents a frame in a video, and each column represents an object. The object can have different states on each frame, and this is stored in the model. Then I have a QTableView that shows this data. The model has header data, so each row has a header like "frame k" and each column has a header like "obj...

MVC Preview 5 - Rendering A View To String For Testing

I was reading a post by Brad Wilson (http://bradwilson.typepad.com/blog/2008/08/partial-renderi.html) on the new ViewEngine changes to MVC Preview 5 and thought that it would be great to be able to render a view to string for use in tests. I get the impression from the article that it may be possible to achieve this but cannot figure out...

Setting a key field on a view

I am creating an SQL view for a file that strips out the spaces in a particular field. My question is if there is a why to set a key on that new view so a person can still CHAIN the file. We are on V5R3. ...

ORA-01031: insufficient privileges when selecting view

When I try to execute a view that includes tables from different schemas an ORA-001031 Insufficient privileges is thrown. These tables have execute permission for the schema where the view was created. If I execute the view's SQL Statement it works. What am I missing? ...

Compare view with stream

I use ClearCase. I have a snapshot view. Is there a way to compare this view with stream to find changed files? In TortoiseSVN this is called "Check for modifications" and shows all difference between local copy and what we have in the repo. ...

Do you buy the reuse story for the presentation layer in MVP and its variations?

Besides the unit testing benefits, what I heard regarding MVP pattern was that the reusability of the presentation layer. So, you would design one presentation layer and use it for WinForms (rich) and Web. I am currently working on a windows forms application in .NET with possibility of creating a web UI in the future. However, when I...

Using MVC, how should one handle communcation between Views? Between Models?

Question number three in my quest to properly understand MVC before I implement it: I have two cases in mind: The primary application window needs to launch the preferences window. (One View invoking another View.) The primary Model for an application needs to access a property in the preferences Model. (One Model accessing another Mo...

Why is using '*' to build a view bad ?

Hello, Why is using '*' to build a view bad ? Suppose that you have a complex join and all fields may be used somewhere. Then you just have to chose fields needed. SELECT field1, field2 FROM aview WHERE ... The view "aview" could be SELECT table1.*, table2.* ... FROM table1 INNER JOIN table2 ... We have a problem if 2 fields have ...

ASP.NET MVC one route, two different views

Hi Folks, I'm trying to design a homepage for an MVC site that has two different views, based on if the user is logged in or not. So image the default (not logged in) view is showing general, nonspecific info. If i'm logged in, the view is showing mostly personal stuff instead. What's the best practice to handling this? Don't forget, ...

"Unknown column 'user_id' error in django view

I'm having an error where I am not sure what caused it. Here is the error: Exception Type: OperationalError Exception Value: (1054, "Unknown column 'user_id' in 'field list'") Does anyone know why I am getting this error? I can't figure it out. Everything seems to be fine. My view code is below: if "login" in request.sessi...

Load ajax load in JSF

Ok, heres my issue: I have a JSF application and some JSP files. Let's say i have main.jsp which has a view and includes sub.jsp. This works fine. sub.jsp contains a subview. As a result all the ID's of the form elements in sub.jsp follow the form of 'subview:component'. Now suppose I'm using some ajax and want to fetch the jsp page sub....

How to convert Perforce depot locations to client view locations

I'd like to know how to convert Perforce depot locations to client view locations for the purpose of script writing. I have a script that first checks out a file for edit in perforce and then interacts with the file. I need to have the depot location (i.e. \Projects\Project6) converted to the client view location. (i.e. d:\Projects\P...

Viewing swf files in magazine format

I have a set of swf files and can view them one at a time. However what I would like to is to view them in magazine format, as below: First view is: swf file1 (magazine front cover) Next view: swf file2 (magazine page 1) on left + swf file3 (magazine page 2) on right Next view: swf file4 (magazine page 3) on left + swf file5 (magazine pa...

Sharepoint List View Settings

We have created a new List View Style that shows thumbnails from a picture library, we have added a HyperLink Column and made the View style map the HyperLink url to an anchor tag. The intention is that when the Content Managers want to create a image based list of hyper links they just have to create a Picture Library, and then add a w...

Meta-Database Views / Data Integration

Is there a (free) tool or framework which allows defining views over multiple data backends (preferably for java and based on objects)? For example i have 2 databases: one database provides a table or class (doesn't matter much) PersonX(name, address), and the other one provides PersonY(name, dateOfBirth) Now i want to create a view wh...

Execute a SQL stored proc from a SQL view

I am finding that calling a stored proc in Excel is not as easy as it should be, but calling a view, or a direct table is very easy. So, how can I create a view that will call a stored proc with no params? I know I won't be able to pass any values into the view, and I don't need or want to, Just want to wrap a stored proc in a view. so...

SQL Server View Problem

We have a View (call it X) that is the base view called by 2 other views(call them Y and Z). Today we made a change to view X, after that view Y and Z started bringing back data that was incorrect. When we were in Management Studio and ran Select * from Y(which is exactly how the view is called in in code) it would get back data that w...

MSSQL -- Create View with PK

My create view code like this create VIEW [dbo].[vw_test] AS SELECT 'B' AS rtype, ID FROM TB_A UNION ALL SELECT 'V' AS rtype, ID FROM TB_B GO How to create a PK with. I need to do full-text search. Tks ...

ASP.NET MVC reminds me of old Classic ASP spaghetti code...

I just went through some MVC tutorials after checking this site out for a while. Is it just me, or does MVC View pages brinig back HORRIBLE flashbacks of Classic ASP spaghetti code with all the jumping in and out of HTML and ASP.NET with yellow delimiters everywhere making it impossible to read? What ever happened to the importance of ...

View lost when refreshing ObjectDataProvider

I'm implementing a textbox filter on a list based on Josh Smith's example at http://joshsmithonwpf.wordpress.com/2007/06/12/searching-for-items-in-a-listbox. Basically, it sets the Filter on the view to a delegate that checks against the text in the search box. I hook up the filter like so: var pickerView = FindResource("sortedRulesView...