dynamic-data

Users need to create dynamic rules that apply to other users access to the group

Okay so here is "in a nutshell" what I'm trying to accomplish... Users of my application can go and create a new group. They can specify criteria about other users which they will allow/deny to determine who is allowed to join the group. Example: Age: 12 - 16 yrs old Height: 5 - 6 feet The data table that stores the rules would be li...

When creating a new record, how do I fill some fields with values from the filter?

I'm working on an ASP.NET page, which basically is a quick hack around a database. It's used for an internal project and the site is set up in a way to provide several people read/write access to the data. Once a week, we collect a bunch of data from it, add it to an XML file and send it as part of an application update to our customers....

Dynamic Data without both database and model updates.

I have come to the conclusion that the very nifty ASP.NET Dynamic Data framework would be even more nifty if one only had to implement model changes from one side, model or DB. Right now, if I add a column or table, I must refresh my EF model, and then the scaffolding does the dirty work. I would much prefer a mechanism where I can upd...

Replace GridView with RadGrid in Dynamic Data List.aspx

I have found an adapted RadGrid from Telerik, with some overrides, for use in the ListDetails.aspx page template in dynamic data projects, but a cursory experiment yielded only a vast list of compiler errors. I was wondering if anyone has enjoyed any success here? I only need the list aspect of the grid, not edit, but I'm trying to ski...

Dynamic Data UIHint("MultilineText_Edit") in Grid and Edit

When a particular property on my model is attributed with UIHint("MultilineText_Edit") it renders the multiline text edit in the Details view, but not in the Edit view. In the Edit view it's a tiny little textbox. Any idea how to persuage DD to render that as a multiline in the Edit view as well? ...

Hide Page Extensions (Like StackOverflow)

Let me start off by saying that I've got very little experience with web-development. My question is simple, (taking SO as an example), how does the following work? http://stackoverflow.com/tags/foo http://stackoverflow.com/tags/bar I've seen a lot of sites that do this, but I still don't know how this is accomplished (I'll be workin...

Sorting by multiple fields using DisplayColumnAttribute in Asp.Net Dynamic Data App?

I've got a dynamic data app, and I want to sort based on multiple fields like so.. <DisplayColumn("FieldName", "Field1, Field2")> _ DisplayColumn doesn't seem to support more than one field? ...

Dynamically set defaults for scaffolded tables according to dynamic filters.

I have an ASP.NET Dynamic Data application that includes two tables, Departments and KPI's. When I capture KPI's, on the 'List' view, I set the Department field of the dynamic filter to e.g. 'Plant 1', but when I add a new KPI, I still have to select 'Plant 1' in a dropdown. Is there any way I can cause the dropdown in the 'Insert' vie...

php only get the first occurrence of a word from an array.

Hello, I have an array of tags that I'm pulling from a database, I am exporting the tags out into a tag cloud. I'm stuck on getting only the first instance of the word. For example: $string = "test,test,tag,tag2,tag3"; $getTags = explode("," , $string); foreach ($getTags as $tag ){ echo($tag); } This would output the test...

Dynamic Data one-to-many relationships using non-PK fields: Foreign table List.aspx links use incorrect key for one-to-many relationships

Hi, Problem: The urls created between tables with one-to-many relationships are incorrect. How can I fix this? I'm using LINQ to SQL with Dynamic Data. I have two tables: Users and Addresses: * There is a one-to-many from Users TO Addresses ie: A user may have one or more addresses. * The two tables are NOT linked using their prim...

Dynamic Data with Subsonic 3

i want to make a webproject with Subsonic and Dynamic Data... But when i go register the ContextData a don't have it in subsonic with LINQ... in Global.asax.cs a have to do something like this model.RegisterContext(SubSonicRepo, new ContextConfiguration() { ScaffoldAllTables = true }); how can i make it work? have some way to make ...

Can I change items in jquery dynamically?

I have the following jquery. $(function() { $('div#slideshow').append('<img src="images/forsiden/grans_julebrus.jpg" /><img src="images/forsiden/cappelen_hippo.jpg" /><img src="images/forsiden/capplen_grandmarap.jpg" /><img src="images/forsiden/agm_peace.jpg" /><img src="images/forsiden/cappelein_aboriginee.jpg" />'); ... ... I want t...

Variable symbol in Params object in rails

Hi all I have the following code: @profile.update_attributes(params[:xxxx_profile]) where xxxx stands for either male or female. Basically the form submit passes either a set of female_profile[foo] or a male_profile[foo] and i want to change it accordingly. Assuming I have a string that can be inserted in lieu of xxxx, how do I dyn...

How to do server side pre filtering with Entity Framework and Dynamic Data?

I use Entity Framework 4.0 and need to prefilter all queries using TennantId. I modified T4 template to add pre-filter to all ObjectSets like so and it works for "regular" part of the application. public ObjectSet<Category> Categories { get { if ((_Categories == null)) { _Categories = base.CreateObjec...

How to disable delete button in ASP.NET Dynamic Data?

I need to disable delete button GLOBALLY based on some condition? The following solutions will not work for me: http://csharpbits.notaclue.net/2009/07/securing-dynamic-data-preview-4-refresh.html http://csharpbits.notaclue.net/2008/05/dynamicdata-miscellaneous-bits-part-6.html Again, I do not want to go into every list and detail page ...

Adding Combo-box dynamically

Howdy folks.. I'm trying to design a table in HTML which can add a row when I click "add row" button & the same for deleting an added row if i intend to delete it. I have written a javascript for adding checkbox and text. But I want even combo-boxes in it and I m stuck in the middle. Could you guys just figure it out and let me know ho...

pass form builder in remote_function in rails ?

hi all i have select box where on change i need to grab the value and via remote function get some field names from db and then generate those field further down the form depwning on whatoption from the select box is chosen. The problem is is that the fields are in a f.form_for so are using the formbuilder f that has the select box in...

asp mvc - what is the best way to dynamically add data controls

Scenario: I have the following structure; Group (parent) -> Item (child). A Group can have many items. both group and item only have one editable field (string) In other parent/child table data I have used a partial view to display both the parent and child data - with the child data being a standard MVC index (i.e. list of items wit...

c++ create continguous array of type which is not known at compiletime

Hi! let's say i have a few different structure definitions (in fact, i have arround 50 such definitions): struct Type1{ int i; float f; }; struct Type2{ bool b1; bool b2; double d; }; they are all POD, but can contain completely different data. now, at runtime, i want to decide what type of those i need and then ...

Is there any way to load data dynamically into a python datastructure without recreating

I have a process that builds a list from a database table and runs real time. Every now and then new data gets added to the database table. Querying data from the table every now and then is cumbersome, and time consuming, and this need to be as real time as possible.What is the right way to approach the problem? The process is as follo...