view

How to make two parallel and adjacent lines in Android xml?

I'm trying to make a custom list divider. It has one horizontal line that's a subtle gradient, and a second horizontal white line immediately below it as a sort of "drop shadow". I'm trying to use <layer-list> to accomplish what I want, but it's not working out the way I expect. Here's the code: <layer-list xmlns:android="http://...

How to stream an MP3 from an ASP.NET MVC Controller Action

Hello, I have an mp3 file in my site. I want to output it as a view. In my controller I have: public ActionResult Stream() { string file = 'test.mp3'; this.Response.AddHeader("Content-Disposition", "test.mp3"); this.Response.ContentType = "audio/mpeg"; return View(); } But how do I return the ...

Drupal theming a row in a view's display

I'm trying to theme a single "display" in a view. What I'm trying to achieve is to have some control over how the row is rendered (eg. print the fields in the row, and maybe add some text in between. along with some divs for styling purpose). I've looked for days for the template to edit. I've used even the Theme Developer and the View's...

Am I understanding Drupal regions and views correctly?

We're building a very content rich site in Drupal. It's my first time working with it. There are a variety of sections to this site, each with a different layout. I plan on determining the page.tpl.php via the phptemplate_preprocess_page() method. My question is how best to specify where in a given page to put different chunks of second...

iPhone Switch views _KILL ! Problem

hi guys ... i have a problem with switch view between 2 views with nib files ! here my code . my first page goes to page 2 ! but at page 2 i cant back to first page ! my app go out .. here is my code : from page 1 to 2 : #import "HafezViewController.h" #import "GhazaliateHafez.h" -(IBAction)gh:(id)sender { HafezViewController...

Deploy view or use function for lookup

I've two master tables Org & Item and then there's an OrgItem table.I have to fetch ItemCodes for a particular Org. TABLE STRUCTURE: Org ( Id, OrgCode, Name) - Org Master table Item ( Id, ItemCode, Name) - Item Master table OrgItem ( ItemId, OrgId, ItemCode) - Some Org specific ItemCodes Now only some Item's have Org specific Item...

Android: EfficientAdapter with two different Views

I'm using an extended version of BaseAdapter based on the EfficientAdapter example from the SDK demo samples. My data is basically an object (ListPlaces) which holds an ArrayList with the actual list of places, accessible via listPlaces.getValues(). This ArrayList data is sorted by range and the ArrayList consist of some special items (...

How is the ChartViewWebPart used in Sharepoint?

How is chartviewwebpart used in Sharepoint? Please tell me and give an example ...

Unable to resolve uploaded images paths in partial view on server.

My ASP.NET MVC web app requires the upload of image files. These image files are then displayed via a partial view rendering where the path of the image file is inserted into the scr parm of the image tag. This works great in development mode however when I deploy to the server the images won't display. I have tried many way to specify t...

View Control name concatenated with ClientID and masterpage control name in ASP.NET MVC

I am working with ASP.NET MVC application. I have One master page having one contentplaceholder. I have one view placed in the contentplaceholder of master page. i have few textBoxes say "name", "age" , "email" in it. I also have submit button in my master page. when i click submit button , postback event will be called in the control...

Derived Interface with derived interface member

Hi I have 2 base interfaces, IViewBase (which all views will implement) and IPresenterBase (which all presenters will implement): public interface IViewBase { } public interface IPresenterBase { IViewBase View { get; set; } } Then i've created a new interface ILogPresenter that derives from IPresenterBase and ILogView deriving f...

Oracle Pl/SQL trigger compilation error via SQL*PLUS

I have a problem with compiling an Oracle trigger via SQL*PLUS - I don't think I'm being dumb but I can't see what the problem is. We have an installer script which is essentially a batch file which creates/refreshes all the objects in the database by calling SQLPLUS on multiple scripts, each containing one view, trigger, etc. The table...

Should a view be dependent on its controller? (ASP.NET MVC)

Hi all, Have a question about the design/usage of asp.net mvc here. In the html helper class, you can get to the current controller by Html.ViewContext.Controller. Moreover, you can get to the request, route collection and much more from the html helper class. Doesn't this go against the rule of MVC? Doesn't this opens up a ways for...

Call method from Modal View Controller

I have a view controller which presents a modal view when a certain button is tapped. Upon closing the modal view and re-revealing the original view underneath, I want a refresh method to be called. How do I call this refresh: method in OriginalViewController from ModalViewController? I know this works if I do it in -viewDidAppear, but ...

Keep Modal View row checkmarked

I have a RSS parser that displays the articles in a UITableView. I also have a button that brings up a Modal View where you can change the source of the RSS feed. I have 2 questions: 1) How do I keep the selected feed row checkmarked after I quit the app and open it again? 2) How do I call for the article table to reload when the modal...

To display secondary views under Eclipse menu Window -> Show VIew

I have created a Eclipse plugin application, in which there are many secondary views created at runtime for a single static view. In the menu 'Window-> Show View', only the entry for the view statically created in the plugin.xml is displayed. But the view that is created statically is useless in terms of showing results because the resu...

Display view in Eclipse menu Window-> Show View

"I have created an Eclipse plugin which creates a view in Eclipse. Currently it is displayed in the Eclipse menu as : 'Window->Show View->Others'. I want to show it in 'Window -> Show View' and not under the submenu 'Others'. I have tried it giving the 'Category' of the view in the plugin.xml file as 'org.eclipse.ui' but it is still sh...

Zend Framework / MVC: What type of objects to push to the View?

Hey guys - here's a question on Zend Framework or better on MVC in general: I am asking myself for a quiet a long time now, if it is a good idea to push business objects (User, Team, etc.) to my views or if it would be better just to push dump data containers such as arrays to the view for rendering. When pushing business objects to m...

Android: View.setID(int id) programmatically - how to avoid ID conflicts?

I'm adding TextViews programmatically in a for-loop and add them to an ArrayList. How do I use TextView.setId(int id)? What Integer ID do I come up with so it doesn't conflict with other IDs? ...

A View Over a XML Data Type Column

I have a table that contains a column of XML Datatype (column name FileContent). I want to create a view that queries the contents of the XML datatype column so that I no longer have FileContent column but two additional columns called FuelPathwayCode and PhysicalPathwayCode from the underlying XML document. Is this possible with SQL S...