view

Django view returns string which is not represented correctly in html template

A view I am using returns a string to a html template. The string which is returned contains special characters which are not represented correctly in the template. To put it simply a string which is returned from the view might look like this: test = "\"Foo bar\"" return render_to_response('index.html', {'test': test}) And is displ...

How can the disable file operation, file selection and filter panel from JFileChooser(JAVA Swing)?

I need to embed JFilceChooser dialogbox in a Panel. I only need the file and folder view. How can i disable others panel that are included in dialogBox i.e(file operation, file selection and filter panel) from JFileChooser() dialogBox.. Thank you ...

SharePoint: Filtering a List that has Folders

I have a SharePoint document library that has a folder structure used for organizing the documents (but also for controlling access, via permissions on the folders). The documents in the library are updated every month, and we store every month's version of the document in the same folder; there's a "month" column used for filtering tha...

ASP.NET MVC How to apply role-based or authentication-based View rendering?

Hi, i want to show/hide certain parts of a View based on Authentication-status or Roles. For my controller actions I have extended ActionFilterAttribute so I can attribute certain Actions. <RequiresRole(Role:="Admin")> _ Function Action() as ActionResult Return View() End Function Is there a similar way (attributing) which I ca...

Is there any way to create a table with the same layout as a view in SQL Server 2005?

I can't really think of the best way to phrase this question, so I'll just give an example. Suppose I have a table that is created like this: CREATE VIEW People AS SELECT id, --int name, --varchar(20) birthdate --datetime FROM SomeTable If I wanted to change this from a view to a physical table, is the...

a standalone eclipse view on the right side

This question is similar to How to write a Vertical Right-Side IE Explorer Bar I have a Eclipse RCP application consisting of various views only. How do you layout a view that stays on the right side? I have tried using perspectiveExtension placing it relative to org.eclipse.ui.editorss and didnt managed to get it to work. ...

How would you implement an scrollable grid in your iPhone app?

I have about 50 images of 50 x 50 pixel size each. I want the user to pick one of them. So first I thought about an UITableView, but that's just not the right thing. It wastes a lot of screen space. Rather than putting all images one below the other, it would be better to show a grid of lets say 6 columns and n rows. I would use an UISc...

Changing modal UIView's orientation to landscape mode on iPhone

Hi All, Im having a modal view displayed on top of tab bar controller the orientation of tab bar controller and my modal view is currently in portrait mode, i need to only change my modal views orientation to landscape mode, i Tried usign UIDevice Orientation but no success it only works when .plist has UIDeviceOrientationKey, and i ...

How do I set the page title in an ASP.NET MVC view?

In an ASP.NET MVC view I have the following code: <% Page.Title = ViewData.Model.MyPageTitle; %> and when I step through it I see the Page.Title value changing to the title that I want but when you look at the page's title shown in the browser it has not been modified. It appears that this value is overwritten by something later on. ...

Custom SharePoint List View - can I put it in a feature (WSP)?

Here's my situation: I'm working in SharePoint 2007 Enterprise, I have a feature that creates a list for me when I deploy and activate it. My usual workflow thus far has been to deploy the solution, activate it, then open up SharePoint Designer to customize the list. My customizations are typically pretty complex, but I'll keep things ...

CouchDB Views: created_at greater than a passed value

I'm trying to write a couchdb view that takes a created_at timestamp in a sortable format (2009/05/07 21:40:17 +0000) and returns all documents that have a greater created_at value. I'm specifically using couch_foo but if I can figure out how to write the view I can create it in futon or in the couch_foo model instead of letting couch_f...

Set UIImage of a new view and display it

Hi, I'm trying to set the image of a new view. I set the controller's image an then display the view. But in the controller's viewDidLoad, no image is available. - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo { EditPictureSaveViewController...

how to return an asp.net mvc view with a query string?

In Asp.NET MVC, how do you make your controller return a view with a query string? thanks ...

Call UIViewController from "subview"

Hello, I have a UIViewController which when it loads it loads up this.. MapViewController *mapController = [[MapViewController alloc] initWithNibName:@"MapView" bundle:nil]; self.mapViewController = mapController; [self.view insertSubview:mapController.view atIndex:0]; [mapController release]; I also have a switch views b...

How do I check what current view is?

I want to check what the current view is objective c (in cocoa touch) Could I do something like this? if (viewA == current view) { run code here } Thanks ...

ASP.NET MVC - How to create a strongly-typed view from classes in referenced class-library?

Hi, i'm trying to create a strongly-typed view using Visual Studio 2008. I can right-click a controller action and choose: Add view... In the next dialog window there is an option 'Create a strongly-typed view'. If I check this option I can select a list of classes that are in my current project. However I cannot select the class I ne...

How to restrict a lotus view to the content of some folders ?

I am trying to make a view which selects all unread mails which also belong to a specific list of folders and subfolders. I created a view by coying the existing "view unread" one, but despite my research in the documentation and in google I am at a loss as to how to restrict the content of the view to documents in a list of folders. ...

Assigning a IBAction to the Back Button of the Navigation Bar (iPhone SDK)

In this (http://stackoverflow.com/questions/843534/flip-view-iphone) post, I have created a flip view for my iPhone app. Now, I want to make sure that whenever the user hits the 'Back' button in the navigation bar, the next time around when he drills down to the flippable view, this view is in its original, non-flipped position. Current...

MVC. Strongly-typed view difference (MVC sources vs. assembly)

I'm trying to create a strongly typed partial view <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Pt.Data.Services>>" %> <table> <% foreach (Pt.Data.Services item in Model) { Html.RenderPartial("ServiceItem",item); } %> </table> in Controller IEnumerable<...

Using Progress Bar Load new view

In my application one of my views takes longer than normal to load (it is a scroll view with many pictures) so I figured I would let the user know what was going on while the view was loading. So I put in a progress bar that uses a timer for how long it usually takes to load. The only problem is that when the button is touched the iPhone...