This is more of a best-practices question, and given that I'm quite tired it mightn't make much sense.
I've been putting together a blog app as a learning experience and as an actual part of a website I am developing.
I've designed it like most apps so that you can list blog posts by multiple criteria i.e.
/blog/categories/
/blog/au...
Hello, I have this line of code in my view but it doesn't work. It keep throwing this error:
The ViewData item that has the key 'Material.Modelo.Categoria.Familia_Id' is of type 'System.Int32' but must be of type 'IEnumerable'
<%= Html.DropDownListFor(model => model.Material.Modelo.Categoria.Familia_Id, Model.Familias, " -- Seleccione ...
I'd like to add an OR expression to Drupal 6.x Views 2 query in the following way:
Existing query:
SELECT node.nid AS nid FROM node node WHERE (expr1) AND (expr2)
New query - this is what I want to achieve:
SELECT node.nid AS nid FROM node node WHERE (expr1) AND (expr2 OR new_expr)
The question is how to update my existing query (...
I have a ViewGroup defined in XML with a view inside, at onCreate time I'd like to have a variable of those.
I don't want to go through the hassle of using a listview+adapter cause its clearly overkill as I know the list won't change since onCreate()
This is more or less the code I'd like to have.
TextView mytextview = myViewGroup.find...
How do I implement CRUD access with actions using the same view?
class UserController : Controller
{
[ActionName("User")]
[HttpGet]
public ActionResult GetUser() {/* ... */}
[ActionName("User")]
[HttpPost]
public ActionResult PostUser() {/* ... */}
}
I would like both actions to use the same view.
Is there an attr...
I have a ViewFlipper that is transitioned between each view, I want to draw animation to a set of canvases, one for each view. How would I go about integrating the canvas into the view so that I can still have my buttons on top of it for example?
If this isn't possible, how would I go about making images drawn to the canvas clickable s...
To perform transformations in my database, I frequently use a chained set of views. Within the views will be common table expressions. For example I would have the following:
CREATE VIEW TransformationStep1 AS
WITH Transformation1A AS (
SELECT Field1, Field2, Field3, Bla(Field1) AS Calc FROM Table1
),
Transformation1...
Hi Folks,
I have a Content-Type with taxonomy-terms. It's a select-list, so it can have only one taxonomy - at least of that vocabulary. Now I need to build a view that lists all nodes with the same taxonomy.
Thought that this wouldn't be too hard since it sounds pretty basic. Yet I can't get it working. Any ideas? I'm trying to avoid...
Hi,
I am having some issues with Views 3 on Drupal 7 Beta when rescanning template files. I've put a new template in my theme folder called views-view-fields--blog--block-1.tpl.php which is the filename Theme Information suggests. When I click "Rescan Template Files" the pane disappears and it doesn't bold the new template (and doesn't ...
Hi guys,
I have a WebView that I've added to a view group:
webView = new WebView(context);
addView(webView, ViewGroup.LayoutParams.WRAP_CONTENT);
This lives in my viewgroup's constructor.
Then on layout, I want to do this:
webView.measure(View.MeasureSpec.makeMeasureSpec(getWidth(),View.MeasureSpec.EXACTLY),
View....
I'd like to manually specify a view to show certain nodes.
I can add a Node id filter (e.g. display if node id = 50), but I can make a multiple filters becomes they are "AND"'d (e.g. display if node id = 50 AND node = 51).
I'd prefer to not have to use taxonomy or whatever, as Im not currently using this. It would be easier to just man...
Hi guys.. I'm using EF4. I've found a very annoying issue.
I have a db view that I've dragged into my Entity Model class.
When I try to iterate over the hole collection, the data displayed, it's almost the same that the first objects... I've tried enabling Lazy Loading, but nothing works.. it's a really simple snippet.. why doesn't work...
Hi Everybody, i want to know whether views or stored procedures are faster. i am developing application in asp.net with sql server. Which one should i use for good performance of asp.net application.
Thanks
...
I am trying to write a view spec to drive out a form with a nested model. In my example every Organization has many Users. When you create a new organization you create the first user at the same time. This part works:
require 'spec_helper'
describe 'organization/new.html.erb' do
let(:organization) do
mock_model("Organization")....
I have been reading a lot of the questions here on vim. I can't locate something that I want to do with vim but I am sure its possible.
I like vim(I am still new at it) using tabs and I have adjusted my vimrc so that H & L keys take me back and forth between tabs.
I was hoping to find a way to be able to use tab commands to open up a t...
I am starting out with views and I wrote an extremely simple view which really just filters if the node is published and if it is of type banner. In preview and when I try to print the view I get no results. When I search through my content and filter by type banner and published, I get 3 results (in /content/node/overview). I must be do...
Hello,
I need to recursively iterate over an array in a view and was wondering what are some best practices for this type of situation? I'm trying to avoid building my desired html output in the controller or model.
FYI I'm using the framework codeigniter.
Thanks for the help!
...
Is it possible to add TextView and ImageView on canvas?
...
I have 3 forms on my View. Each of these all post back to a different action. When the action is complete, I call my original Action that led the user to the page originally, but MVC is looking for a view of the postback Action. How can I get MVC to post to an action of a different name of the current view, while still having it reloa...
When I try to save or delete the view this message appears ... when deleting the error is in function delete(), when saving the error is in function validate().
I'm trying to get answer for 2 days already, browsing the drupal forum etc.
I cannot get the solution.
I'M STUCK! I cannot continue my work! IT'S HELL!
People THANK YOU!
EDI...