view

How to set "Folders" properties in Sharepoint View

Hi all, I want to programmatically set the Folders property for a document library to show this view in the folder of a certain content type. I have check the SPView class. But still have no idea how to do that. anyone has any idea? Cheers ...

Two Step View Pattern: XSLT vs. object graph

I intend to implement Martin Fowler's Two-Step View Pattern for rendering HTML in a web application I'm writing. The general idea is that rather than having the application output raw HTML, it outputs an custom intermediary XML which is then converted to HTML/CSS. This has a number of advantages including reduced code duplication and a ...

How to get store type of an entity set

Hello, I'm trying to filter entities based on their store types (either table or view). I have 2 entities in my test project, one's source is a table and the other's source is a view. <EntitySet Name="Test" EntityType="TestModel.Store.Test" store:Type="Tables" Schema="dbo" /> <EntitySet Name="TestView" EntityType="TestModel.Store.Test...

sql server clustered index on a view

hey everyone, Im trying to create a view out of quite a complex select query and it wont let me put a clustered index on it because i have to use subqueries and some aggregate functions. I have to get a clustered index on it otherwise the queries that use the view will take forever. Apparently sql server will only store the result set ...

How would I reference a global variable in my UIView ?

I have a UIView which is accessed by two different View Controllers. Whenever the user presses a button through the view controllers, I increment/decrement a shared variable like: -(void) viewWillAppear:(BOOL)animated { [[self appDelegate] sharedData].count++; } The shared variable gets created and initialized in the app delega...

Rails - Easy way to display all fields in view

OK I'm sure I'm missing something here, but please forgive me I'm new to Rails. Is there some way in Rails to display all the fields for an object rather than specifying each? In my show.html template rather than going <p>Name: <%=h @user.full_name %></p> <p>Email: <%=h @user.email %></p> I just want a oneliner to do this without...

How do I access the ModelState from within my View (aspx page)?

How do I access the ModelState from within my View (aspx page)? ...

Access application settings from ASP.Net MVC View

In an ASP.Net MVC 1.0 applicati0n, is it possible to access the application settings (MyProject.Properties.Settings.Default.*) from inside my View (aspx page)? I've tried but the intellisense and compiler don't like it. It says that it is inaccesible due to the protection level. ...

Javascript question: Detecting children currently in view within an 'overflow: auto;' parent element?

See title. Additionally, how can I tell if a given child element is only partially or else wholly out of view (that is, not within the currently scrolled portion) of my 'overflow: auto;' parent element? ...

Calling ViewModel Methods

I'm pretty new to WPF and using the MVVM design pattern. To help learn this, I'm developing a simple dice-rolling application. Right now, I have a Dice class and a DiceViewModel class. I also have a MainWindowViewModel class that contains an observable collection of DiceViewModels. When a user clicks the "Roll" button, it launches a ...

Available fields for ADSI Linked in SQL Server

We currently have a View that queries active directory info. I was wondering if there was a good reference as to what fields (field names) are available in AD for me to query against. I don't have access to Active Directory so I can't go playing around in there to maybe figure it out myself. Any help would be appreciated. ...

LinqToSql and Views don't have foriegn keys/associations?

Hi folks, I've got some tables in my Linq2Sql designer (in Visual Studio 2008). Works great. Now, I just tried dropping in a View onto the designer. It dropped on there ok, but there's NO foreign keys/associations. hmm. Ok, so then I tried to manually add an association between the View and a parent table. That worked .. but when i ...

MVC - Ajax form - return partial view doesnt update in <div> target

I have an index view that I want to update automatically as the user types in a client id. I got something similiar to work (only it was updating just a label) - but this will not work. What happens is the partial is just rendered by itself (not in place of the UpdateTargetID). So the data is rendered on a new page. Here is my code: Co...

How SQL View can be used in this scenario

Hi Guys, I am using Datareader in my C# code to get data from db and dumping it into excel sheets. I am able to do it for everyrow correctly (based on the data from the sql view). I have a problem in one of the sql views. rolename roledesc roletype roleuser Team Leader (required) xyzxyz Primary Mike Team Leader (r...

iPhone Pushing View Controller in a left direction

I have an app that has a centre view with two views off to each side of it. I want to have two navigation bar buttons, left and right which push a new navigation controller onto the view from the left or the right. When you change views by pushing a new view using the pushviewController: method of NavigationController, the view appears ...

UITableView Animation Headache

NSIndexPath* updatedPath = [NSIndexPath indexPathForRow: 0 inSection: 0]; NSIndexPath* updatedPath2 = [NSIndexPath indexPathForRow: 1 inSection: 0]; NSArray* updatedPaths = [NSArray arrayWithObjects:updatedPath, updatedPath2, nil]; [self.mySexyTableView reloadRowsAtIndexPaths:updatedPaths withRowAnimation:UITableViewRowAnimationTop]; ...

Always escape output in view? Why?

The Zend Framework Manual says the following: 60.3.1. Escaping Output One of the most important tasks to perform in a view script is to make sure that output is escaped properly; among other things, this helps to avoid cross-site scripting attacks. Unless you are using a function, method, or helper that does escaping...

Working with Partial Views in ASP.NET MVC

Background I'm receiving the following error when trying to render a partial view in ASP.NET MVC. I am new to ASP.NET MVC and am sure the error is simple to resolve and just stems from my lack of complete understanding. Question (for those not wanting to read everything): What is causing this error ? Exception Details: System.I...

Expose multiple collections as a single collection

I have run into a problem w/ my model for databinding in WPF. I have an object which has a collection of objects (Variable), and each in turn has yet another collection of objects (VariableCode). What I need to be able to do is somehow expose a single collection from the highest level object - which is a fusing of the lowest level co...

Difference between views and SELECT queries

If views are used to show selected columns to the user, and same can be done by using SELECT col1, col2 FROM xyz , what is the point of using views? ...