view

Codeigniter: php not working in the view!!!

Hello, I have just moved my working codeigniter site to a new xampp installation on new computer and now when the view loads the php inside the view doesn’t work!! e.g. the addresses in my links have the code in them instead of the base address of the site!!! Can anyone explain this strange behavior??? (using windows 7) Thanks! jk ...

how can you tell when an Android activity is finished loading?

I'm in the process of working on an automated test suite for our android app, and running into trouble waiting for activities to fully load. I can call getActivity, but just because it shows the activity that I'm hoping to see in my test doesn't always seem to mean that the activity's components are ready for use (fully loaded). Lookin...

Django - reversing wrapped view functions

I am trying to incorporate django-schedule into my project. Django-schedule's source is here. I don't like the urls, because they all capture a slug. My project will only allow one calendar per user, so it doesn't make sense to capture the slug. So, I wrapped the django-schedule views like this (look up the slug using the current user, a...

UIView Overgive Value

Hello, when calling another UIView how can I send a value: ServerSelect *neu =[[ServerSelect alloc] initWithNibName:nil bundle:nil]; [self presentModalViewController:neu animated:NO]; to this view? Andreas ...

Error referencing an inner class View in layout/main.xml

Grrr... I create a subclass of view as an inner class in my Activity. Before I simply linked to this view from my activity with: setContentView(new CustomView(this)); without problems. Now, however, my view is getting more complex so I am making it part of a FrameLayout so that I can make this the base view and add a Spinner widget ...

CakePHP view problem... please help

I have these lines in my view file //////////////////////////// $a = 5; showme() showme() { global $a; echo $a; } //////////////////////////////// Problem: $a is not accessible in showme() function. I have no choice to pass $a as argument and no choice to move function from view. and it should be accessible in function through ...

iPhone window add subview crashing problem

I have the code [window addSubview:[self.mvController view]]; where mvController is a view controller and whenever I run the program (device and simulator) it crashes. ...

T-SQL View to select FULL OUTER JOIN and add additional rows on "A" based on "B" table

Hi, I hope someone can help me. I need to solve a problem with a view that get me the correct result based in the following scenario. I have two tables: Language and ReportDescription Language Id Tag Description ---- ---- ---------------- 1 en English 2 de German 3 fr French 4 it Italian ReportDe...

Ruby on Rails: Initializing instance variables with helpers in view

I'm running into some type of a scope issue that's preventing instance variables from being properly initialized by helpers called from the view. #sample_controller.rb class SampleController < ApplicationController def test end end #application_controller.rb helper_method :display def display if not defined? @display return ...

Make imageview appear above Gallery

I have a Gallery widget and 2 imageviews, one on the left of the screen and one on the right. I want the imageview and gallery to stay on the same line, but if there is an overlap, the imageview's z-index should be higher then the gallery's. The problem is the imageview appears underneath the gallery item. I've had a look in the android...

Text and Image on SWT Button

Is there a way to have a SWT buuton with both image and text in a view? I have tried embedding Swings in SWT and the view looks exactly as I want, but when there is an operation going on, this view doesnot load till it gets over. This makes my perspective look unstable. Please help. ...

iPhone SDK - WebView activity indicator

Hey guys, I have a big problem with the UIWebView in iPhone SDK. I have a TabBarApplication with one WebView on each Tab (except the first). Because it takes quiet a while to load the views I'd like to show an activity indicator. Here is the code I'm using in order to do that: -(void)webViewDidStartLoad:(UIWebView *) portal { [UIApp...

Why can't indexed views have a MAX() aggregate?

I have been trying out a few index views and am impressed but I nearly always need a max or a min as well and can not understand why it doesn't work with these, can anyone explain why? I KNOW they are not allowed, I just can't understand why!!! Count etc. is allowed why not MIN/MAX, I'm looking for explanation... ...

Do root views of an Activity in Android have any prior knowledge of the child views that will be loaded into them?

Is there any way to query a root view of an activity for all of its child views even before the root view or its children have been inflated? I guess what I'm looking for is whether a view knows ahead of time what children it will have before it gets inflated, and can I get that list in some way. Bizarre I realize, but I think it will ...

Context-Dependent Model Defaults in Rails from link_to

What's the standard for applying default values to Rails models from links? Here's the situation: There is a model in Spree called ProductGroup, which is a collections of settings defining how to find a Product (based on a bunch of property values you set). I want to be able to use this structure for defining common ProductGroups: E...

SQL [CASE Query View]

SELECT DT, FlowParam, Abs_P, T, Volume, Energy, FlowTime_T, (SELECT ' > 1 ' AS Expr1 WHERE ( (SELECT COUNT(*) AS Expr2 FROM dbo.BACS_Alarm_1 WHERE (DT_T >= dbo.BACS_HourFlow_1.DT_T) AND (DT_T <= dbo.BACS_HourFlow_1.DT_T + dbo.BACS_HourFlow_1.FlowTime_T) ) > 1 )) AS...

database design question

Hi all, I am building a database as a simple exercise, it could be hosted on any database server, so I am trying to keep things as much standard as possible. Basically what I would like to do is a 'code' table that get referenced by other entities. I explain: xcode id code r role p property code r admin r staff p title .... then I ...

Is possible call animatesDrop in a MKAnnotationView rather than MKPinAnnotationView?? (IPHONE)

I, do you know that MKPinAnnotationView has a method "animatesDrop" to animate a pin annotation from the top to point on the map with a shadow?!..OK...is possible do this with a custom image?? thanks..:) ...

How to render a a complex widget inside a tree view item in QT?

Hey! I have the following problem with QT model/view framework. I want to render a widget inside a table view item. First my thought was to use void QAbstractItemView::setIndexWidget( const QModelIndex & index, QWidget * widget ) But the documentation for this function explicitly states: This function should only be used to di...

TSQL: Create a view that accesses multiple databases

I have a special case, for example in table ta in database A, it stores all the products I buy table ta( id, name, price ) in table tb in database B, it contain all the product that people can buy table tb( id, name, price .... ) Can I create a view in database A to list all the products that I haven`t bought? ...