view

Subclass of View constructor not being called

Hi all, I'm subclassing Android's view class, but whenever I make an instance of the view from another class, the constructor never gets called (or so it seems). I've implemented both public myclass (Context context) and public myclass (Context context, AttributeSet, attrs) I can't figure out what I'm doing wrong. Do I need to override...

UITableView Header View Scrolls

I am using a header view, not section header, with my UITableView. The documentation says that the header view sits on top of the table, but my header view scrolls just like a normal row. Is there a way to make the header view always visible at the top of the table? ...

Grails: Getting current View name from within a Taglib.

Is there any way too find out the current view (or gsp file) that is being executed? RequestURI doesn't work due to URL Mappings and forwards. I'm trying to retrieve resources dynamically based on the currently executing GSP file. For example, if product/view.gsp is being executed, I want to include product/view.css and product/view.js...

Partials vs for loop — best practices

In coding up your view templates you can render a partial and pass an array of objects to be rendered once per object. OR you can use a For blank in @blank loop. How do you decide when to do which? It seems that if you use a partial for every iterable object you will end up having to modify tons of separate files to make changes to poten...

Can I include a view in Kohana 3 that is not within `application/views`?

I am building a staff area for a website, which is completely different to the main brochure style site. I have 2 Kohana systems setup. I realise they can both share the same system and modules folder. Now, with the second one, I want to make the main template view a view in a different folder. I tried this in my base controller $thi...

Adding a new row in between rows in a grid view.

I have an ASP .net grid view. It has some template columns like a command button, a text box, and a dropdown control. When I click the command button, a new row needs to be inserted below the current row (from where I hit the command button). If I have rows 1 and 2 and I hit the command button in row1 a new row needs to be inserted betw...

Index View Index Creation Failing

I'm trying to create an index on a view and it keeps failing, I'm pretty sure its b/c I'm using an alias for the column. Not sure how or if I can do it this way. Below is a simplified scenario. CREATE VIEW v_contracts WITH SCHEMABINDING AS SELECT t1.contractid as 'Contract.ContractID' t2.name as 'Customer.Name' FROM contr...

MySql: How can I use temp table when creating view?

MySQL doesn't allow temp table when creating a view, is there any work around for that? ...

Is there a standard pattern for updating android views?

I'm currently building an android application with quite a few different connected activities. In each activity I've got a private updateView() method to update all the textViews and stuff on that screen. This gets called in the onResume() method so that each time the activity comes to the front it's views will be updated. Is this the r...

How are activities and views related in the Android platform?

I am attempting to learn how to develop on the Android platform but do not quite understand the relationship between Activities and Views, because according to the documentation an Activity is almost always linked to a UI object that the user can interact with, but if this is the case where does the whole idea of Views come in? There is...

reloading a table view with an Iphone app

I am using a table view controller that makes a call to a web service and then parses the XML and display it in the table view. The problem is that the first time that I load it the XML apparently is not finished parsing before the view is shown. How can I reload the view after the XML is done parsing? ...

How add logic to Views? Ruby on Rails

Right now I'm building a project management app in rails, here is some background info: Right now i have 2 models, one is User and the other one is Client. Clients and Users have a one-to-one relationship (client -> has_one and user -> belongs_to which means that the foreign key it's in the users table) So what I'm trying to do it's on...

get UIView's viewcontroller (iphone)

I've done this to get the view: [self.superview viewWithTag:10] But how can I get that view's viewcontroller. Just like you can get the the viewcontroller's view I want to go the other way so I can send a message (call a method) to that viewcontroller. eg: [[self.superview viewWithTag:10].viewController doSomething]; (obviously tha...

how to display a text in a new view or window

thanks for ur feedback about uitext view,i am able to display text view as u told .. i dont want to allow user to edit text in it and dont want to show key board when my text view gets loaded .. another thing is i should exit or hide text view when home button pressed... thank you ,i am waiting for your valuable answer... ...

Problem Viewing PDF in Browser

hi everybody, I have a link in my page : <a href="sharedfiles/general.pdf"> View PDF</a> The problem is that when the link is clicked, Instead of viewing the content of the file in the browser, the file is downloaded . Any ideas what's wrong? ps : I have Mozilla FireFox 3.6 & Adobe Reader Installed ...

Rendering spatial data of GeoQuerySet in a custom view on GeoDjango

Hello. I have just started my first project on GeoDjango. As a matter of fact, with GeoDjango powered Admin application we all have a great possibility to view/edit spatial data, associated with the current object. The problem is that after the objects having been populated I need to render several objects' associated geometry at once...

Register view_helper zf 1.10.3

I create my view helper it located in /library/My/View/helpers/SpecialPurpose.php the class name is My_View_Helper_SpecialPurpose it have public function specialPurpose() it return some HTML i register this path in bootstrap.php $view = Zend_Layout::getMvcInstance()->getView(); $view->addBasePath('/my/view/helpers',"My_View_Helper"); ...

Sharepoint Filter

Hi All, I have two lists, Status Name (string) Active (yes/no) Task Name (string) Status (Lookup to Status list) I have the following statuses (These can be changed at any time by the client): New, Active = Yes Open, Active = Yes Not Resolved, Active = No Resolved, Active = No I want to create a view for the Tasks list, tha...

How will you register a custom view engine where in the Areas will not be affected?

I made a custom view engine for my application. ~/Themes/Default/Views.. And I have an Area called Admin. Area/Admin/Views.. I register my custom view engine in Global.asax : RegisterViewEngines(ViewEngines.Engines); AreaRegistration.RegisterAllAreas(); RegisterRoutes(RouteTable.Routes); When I browsed my admin site, it cant fin...

MySQL VIEW vs. embedded query, which one is faster?

I'm going to optimize a MySQL embedded query with a view, but I'm not sure whether it will give an effect: SELECT id FROM (SELECT * FROM t); I want to convert it to: CREATE VIEW v AS SELECT * FROM t; SELECT id FROM v; I've heard about "indexed views" in SQL Server, but I'm not sure about MySQL. Any help would be appreciated. Thank...