dynamic-data

How can I dynamically add an <object> tag with JavaScript in IE?

I have to add either an embed tag for Firefox or an object tag for Internet Explorer with JavaScript to address the appropriate ActiveX / Plugin depending on the browser. The plugin could be missing and needs to get downloaded in this case. The dynamically added embed tag for Firefox works as expected. The dynamically added object tag fo...

Linq to Entity - can i get to another table in the model when in the list template MVC page

in the out of the project template solution (Dynamic Data Web Application), I have the model created and all is good. - Get the list of the tables, and the select edit etc. But my database has linking tables that just contain forgien keys - so the list template just displays the fk value Is there away to combine the list of the row ...

vba to make table when field names are dynamic

Hi, I have a crosstab query that uses a dynamic date function to result in the column headers and therefore the field names. Ex: ForecastPeriod:DateAdd("m",[Period],[StartDate]) This means that every time I run the crosstab query, I could end up with different field names. I need to take the results of this crosstab and combine it with ...

Order of fields in Dynamic Data ?

Hi, Does anybody know if it is possible to choose the order of the fields in Dynamic Data (of course, without customizing the templates of each table) ? Thanks ! ...

Dynamic Data Filter on many-to-many relationship, how?

I am using Dynamic Data with Linq to SQL, and have two tables: Team and TeamMember. From the user's perspective, its a simple one-to-many relationship, but on the database, a many-to many table sits between them, recording on which dates a member belonged to a team, using From- and To dates. How do I add a Team dropdown filter on the L...

Dynamic Data: Scaffolds are read-only for LINQ classes using Views instead of Tables?

I am trying to use the ASP.NET Dynamic Data features to generate CRUD scaffolding for my data model. My model contains supertype/subtype relationships, so some logical entities are split between two tables: one for the generic data and one for the subtype-specific data. In the LINQ context I expose these entities as a single class, back...

ADO.NET Entity Data Model Allows Circular Foreign Key Refs

I am using the new ADO.NET Entity Data Model on a simple database. I have a table/entity with a primary key (PageID) and a ParentID foreign key that references back to itself on PageID for a parent/child "0..1 to many" relationship. On a ASP.Net page, I'm using a FormView with a asp:DynamicControl to express this as a control. That p...

Hierarchical Filtering in ASP.NET Dynamic Data

I'm trying to create a simple system to keep track of how long I spend on certain tasks (creating a new control, modifying a report, etc) using ASP.NET Dynamic Data. I've got a hierarchical structure to the database where a Project has many Assignments, and an Assignment has many Tasks. When I go to create a new Task through the Dynami...

ASP.NET Dynamic Data & Membership (Roles)

hi Everyone, I am trying to setup roles in a dynamic data website.. the problem is that i cant set it by simpy doing this. <location path="List.aspx"> <system.web> <authorization> <allow roles="Administrators" /> <deny users="*" /> </authorization> </system.web> </location> so even when i lo...

How can I hook into the UI rendering "engine" of ASP.NET Dynamic Data?

I have decorated my model using Metadata classes attached to my model classes via the MetadataType attribute. I have some use the Range attribute, Required attribute, etc. and some custom attributes I have created. Now I want to hook into the rendering engine (or whatever it is called) of the Dynamic Data framework and be able to chang...

How can we get DynamicData working with EFPocoAdapter?

My team is hoping to use the EFPocoAdapter, but are also hoping to use the DynamicData tools with it but are having some issues. We basically added a "Dynamic Data Entities Web Application" project to the EFPocoAdapter Northwind sample solution (I am using the latest version, 1.03), referenced the needed assemblies and then uncommented ...

How well does ASP.NET Dynamic Data work with Nhibernate today?

I know there are a few people working on getting Nhibernate to support ASP.NET Dynamic Data. Anyone got real life experience of using it? ...

Storing and Retrieving Dynamically Changing Structures

I am creating a game using Allegro/C++. The game is almost done and now, I want to create a map editor. The game contains numerous classes and their number will vary depending on the number of objects the map requires. I was thinking of creating a separate structure to hold level data and store it as a map. The problem is that the size v...

Why Does This Pointer-Pointer Initialization Seg Fault?

I create a pointer-to-pointer of a class object and when I try to create a new object using the pointers it seg-faults. Why does this happen? struct Level { int SoldierCount; Soldier **soldier; int taskCount; int *taskPercentage; int *taskBitmapX; int *taskBitmapY; }level; void createM...

Hierarchical data in a drop-down list on Dynamic Data site

Hello all, I'm getting into dynamic data sites (remarkably powerful), and enjoying it. However, I have a requirement that I can't seem to meet. I have a self-joined category table (Id, Name, ParentId) to create a hierarchical category structure (e.g. the categories with null ids are top level, usual sort of thing). I then have a product...

How do I change the URLs that Dynamic Data generates me for entity relationships?

I am using ASP.NET Dynamic Data to create a website that has two aspects - a public view, where data can only be viewed, and a admin site where all the CRUD operations happen. I want this to be a single DD website. I have setup two routes: routes.Add(new DynamicDataRoute("admin/{table}/{action}.aspx") { Constraints = ne...

Dynamic data in postgresql

Hi world, I intend to have a python script do many UPDATEs per second on 2,433,000 rows. I am currently trying to keep the dynamic column in python as a value in a python dict. Yet to keep my python dict synchronized with changes in the other columns is becoming more and more difficult or nonviable. I know I could put the autovacuum on...

Dynamic 2D structure for C#

I'm working on a class that is storing a 2D array of class MyType and would like it to use dynamic data types. i.e. not MyType[,] The problem with MyType[,] is that the class doesn't know the size of the array ahead of time, and I don't want to go to the trouble of managing array re-sizing if it's been done elsewhere in the .NET Framewo...

How can I change order of the displayed columns in Dynamic Data ?

Hi, For some of my Dynamic Data meta data tables I would like to control the order of the displayed columns. I have a custom page and I created a sub-directory named the same as my table. I copied the ListDetails.aspx and code file to the new directory. And changed AutoGenerateColumns to false(in Gridview) and AutoGenerateRows to fals...

Use a Computed Property as DisplayColumn in ASP.Net Dynamic Data?

I am trying to display a 'Software Release' table in an asp.net dynamic data site. The Release table has a build number stored as three int fields (Major, Minor, Build). I'm using EntityFramework, so I have an EF model bound to my database schema. In my dynamic data site, I want the build number to show up as a single field (Major.Mino...