view

Is it possible to configure a calendar view in SharePoint to list folders instead of files?

Does anyone know if it's possible to display items on a calendar view (on a document library) in SharePoint based on properties of a folder (which is a custom content type in itself) rather than for the files in the document library. For example: Folder1 Expires=20/4/2010 Folder2 Expires=21/4/2010 For these folders, there should be tw...

Creating a database view with boolean logic

My google search skills have failed me, and I am not a database expert by any means! I have a very simple database schema that looks like this: properties_id in the CANDY table is a foreign key to id in the EXPENSIVE_PROPERTIES table. The properties_id is only set if the candy is expensive. If it is expensive, then the correspondin...

What is the best way to move a UIToolbar?

Here is an interesting problem. On the iPhone, I have a view set up that has a toolbar on the bottom of the screen. I am currently trying to make this a universal app so that it runs on iPad as well. I would like the toolbar to be at the top of the iPad screen, so in the viewDidLoad method of the specific viewController I have the follow...

Cleaning tag soup from the View in ASP.Net MVC

I want to remove if-statements from my View, but I'm having problems with predefined controls like Html.DropDownList. For example, I have an DropDownList that in some case contains empty selection (or in other words.. possibility to Not select something) and other case is that there is no empty selection. <% if (Model.IsCreateEmptySel...

Ruby on Rails check box not updating on form submission

I have an entries controller that allows users to add contact information the website. The user-submitted information isn't visible to users until the administrator checks a check box and submits the form. So basically my problem is that if I check the check box as an administrator while initially creating an entry (entries#new) the entr...

view Large PDF file in iPhone SDK

I have followed some tutorial that teach me how to view PDF file in UIWebView, however I found that if the file size is large, it will be lag when I zoom the PDF, but it doesn't occur in Mobile Safari. So anyone know how to solve it? ...

android: How to set a listener that fires when my ViewFlipper shows a new child

Hi Android gurus, I have a ViewFlipper for which I want a listener to fire when the child displayed is changed. I have set an OnFocusChangeListener to the ViewFlipper but it never fires when I flip from child 0 to child 1 or vice-versa. The ViewFlipper contains two RelativeLayouts and I have tried setting OnFocusChangeListeners for th...

How to add View to Gallery?

Hi, I have multiple ListViews and would like to add those to Gallery. I tried with addView but it is not supported since Gallery view is an AdapterView. Can someone let me know how to go about it? Regards Sunil ...

JSF: Using same jsp page for different outcomes

Would it be possible to use a navigation-case as shown below with the same view-id but different from-outcomes? In the managed bean, I wanted to compare the from-outcome values and decide on the group panel that I would display on the page. How can I get the from-outcome value in my managed bean? <navigation-case> <from-outcome>modi...

run jquery code in partial view called by ajax link

Hi! I have read your guide for "run jquery code in partial view called by ajax link" but i don't understand May you show me more clearly, possible a sample project Thanks for support ...

avoid preselection of a view when focus is gained android

Hi all, I don't know if the title is very clear, but my issue is as follows : I have an activity with a listview, and on top of this listview, i have a searchfield (edittext). The issue is that when i try debugging on a phone, the virtual keyboard gets out straight after the screen displays the activity... And of course, it's hidding h...

MVVM View-First Approach How Change View

Hi everybody, Does anybody have an idea how to change screens (views) in a MVVM View-First-Approach (The view instantiates the ViewModel: DataContext="{Binding Source={StaticResource VMLocator}, Path=Find[EntranceViewModel]}" ) For example: In my MainWindow (Shell) I show a entrance view with a Button "GoToBeach". <Window> <DockPa...

Display a view using modalPresentationStyle

Hello, I have heard that you can make a view popup like in the Mail app for iPad by using modalPresentationStyle. Im having a hard time figuring out how to use it though. I looked a this post here and still couldn't figure out how to do this task. If anyone could explain how to hook up the controllers to make this code work that would b...

What does it mean to "preconcat" a matrix in Android?

In reviewing: http://developer.android.com/reference/android/graphics/Canvas.html I'm wondering translate(): "preconcat the current matrix with the specified translation" -- what does this mean? I can't find a good definition of "preconcat" anywhere on the internet! The only place I can find it is in the Android Source - I'm starting ...

Android InflateException on refactor of class

I have a simple application with a view and a class that should return a ListView. The application works unless I refactor, and I am refactoring not just renaming, the name of the class. Everything seems to get changed properly but the application throws an exception of : android.view.InflateException: Binary XML file line #2: Error infl...

How to map a database view using Ruby ActiveRecord?

How to map a mysql database view using Ruby ActiveRecord in Rails? ...

View and order by

Why can't a subquery of a view have an order by clause?Similarly why one cant change/delete a row through a view when 1)group by is used in view 2)distnct is used in view ...

Android setContentView operation

I've read that it's important to call setContentView() early in an activity since it builds the view objects that may be manipulated by subsequent code in onCreate(). In terms of lifecycle, does the view get drawn to screen as soon as setContentView() is called, or does it allow the onCreate() function to build/populate the information ...

SplitView in iPad -- Maintain two views without popover

Hi all In a switch view mode in iPad, is it possible to maintain the two views in landscape mode and also in portrait mode without having to use the popover?(Maybe just adjust the width of each views in portrait, instead of the popover) How would I do that? ...

Rails: textfield list to array of strings

I want to take input from a textfield and turn it into an array of strings. After having submitted the post request, I want to display again the textfield, but including the values of the textfield in an array. I have a view that would look like: <% form_tag "/list2array" do -%> <%= text_area_tag "mylist" %> <div><%= submit_tag 'save...