Questions tagged [dynamic]

Dynamic is a widely used term that, in general, describes a decision made by the program at run-time rather than at compile time.

Programs that perform some common tasks based on program inputs in contrast with programs that predetermine the task beforehand. Dynamic is often used to mean:

  • The dynamic keyword
  • using JavaScript to manipulate web pages in the browser.
  • have features that allow the of a variable to be bound at run-time.
  • Program generated content, especially content in contrast with web pages created by a person and stored on disk, ready to serve.
27209 questions
6
votes
10 answers

Is there away to generate Variables' names dynamically in Java?

Let's say that I need to generate variables to hold some input from the user (I don't know how many they are). Without using Array, ArrayList (and other kind of lists and maps) can my code generate (lets say) String variables X times with names like…
M. A. Kishawy
  • 5,001
  • 11
  • 47
  • 72
6
votes
5 answers

Telerik MVC Grid with Dynamic Columns at Run Time from a Collection or Dictionary

After spending the last couple days searching, I'm officially stuck. I'm working on a binding an object to the Telerik MVC 3 Grid, but the catch is that it needs to have dynamically created columns (not auto generated). Three of the columns are…
Eric Garrison
  • 291
  • 1
  • 10
  • 21
6
votes
3 answers

C# dynamic compilation and "Microsoft.CSharp.dll" error

I'm doing the example that can be found here. So I'm trying to run IronPython in a C# script: Python: def hello(name): print "Hello " + name + "! Welcome to IronPython!" return def add(x, y): print "%i + %i = %i" % (x, y, (x + y)) …
ssx
  • 184
  • 1
  • 4
  • 13
6
votes
1 answer

Jquery Validation : Adding/Removing Rules Dynamically based on dropdown selection

I have a dropdown selector, with values from 1-4. Depending on the selection, subsequent inputs in form are hidden and validation required is removed from each. eg, if 2 is selected, then inputs 1-2 are shown and validation required is added whilst…
naturelab
  • 79
  • 1
  • 2
  • 10
6
votes
1 answer

How to code for dynamic for-loop levels?

My problem is like this: I have several lists need to be permuted, but the list numbers are unknowable. And every element numbers in every list are also unknowable. Sicne I would like to traverse all list element combination, like 1) pick A from…
Asker
  • 113
  • 2
  • 6
6
votes
1 answer

How to select from dynamic table name

I have tables like changes201101 changes201102 changes201103 ... changes201201 And table whichchanges which contain rows Year and MONTH How I can select * from changes from whichchanges? I type this query SET @b := SELECT…
breq
  • 24,412
  • 26
  • 65
  • 106
6
votes
4 answers

When all previous fields are filled, add new input field

Here is my current HTML and CSS code:
1.
2.
Pienskabe
  • 83
  • 1
  • 5
6
votes
3 answers

c# multiple dispatch options?

I have these classes : class Asset { } class House:Asset { } consider these outsiders static functions : static void Foo (Asset a) { } static void Foo (House h) { } If i write : House h = new House (...); Foo(h); it will call…
Royi Namir
  • 144,742
  • 138
  • 468
  • 792
6
votes
1 answer

dynamic object - runtime reports field not present but can see it in debugger?

EDIT : restarting visual studio fixed this issue with no code changes. I have a ConfigSection handler that uses dynamic types and an expando object. The test fails reporting 'object' does not contain a definition for 'SportName'. I have tried to…
Myles McDonnell
  • 12,943
  • 17
  • 66
  • 116
6
votes
2 answers

Dynamically create jCheckBox and add to a jScrollPane

EDIT: Using the solutions presented below, I have changed the code to have a JPanel inside a JScrollPane. Using a JButton i add JCheckBoxes to the JPanel inside the JScrollPane. This was one problem solved, as the a JScrollPanecan only take one…
wmdvanzyl
  • 352
  • 2
  • 5
  • 17
6
votes
3 answers

Java - Dynamic Comparison with Primitive Data Types

Friends, We are writing a framework for a validation... We do have a config file like below... //Message/Request/Product/Benefit/Premium/amount float
6
votes
2 answers

Mathematica Dynamic List Manipulation

I am stuck on what I think should be a relatively simple concept. I am not understanding how Dynamic[] functions with regarding incremental list manipulations. Consider the following statements: In[459]:= x={{1,2}}; In[462]:= y=First[x] Out[462]=…
slouis
  • 63
  • 4
6
votes
8 answers

Is there a faster way to detect object type at runtime than using dynamic_cast?

I have a hierarchy of types - GenericClass and a number of derived classes, InterestingDerivedClass included, GenericClass is polymorphic. There's an interface interface ICallback { virtual void DoStuff( GenericClass* ) = 0; }; which I need to…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
5
votes
2 answers

knockoutJS dynamic chart with high charts

So, I have been playing with high charts and KO for the past week. The syntax for the high charts graph is very simple and easy to read. I'm coming from Java and I am pretty new to JS, so I'm not sure how to really play with the scope. Is there…
Phil Ninan
  • 1,108
  • 1
  • 14
  • 23
5
votes
2 answers

ParameterExpression of type 'System.Int32' cannot be used for delegate parameter of type 'System.String'

I'm creating a general setter using expression tree and here is my code public Expression> GetAction(string fieldName) { ParameterExpression targetExpr = Expression.Parameter(typeof(T), "Target"); MemberExpression…
kans
  • 225
  • 2
  • 8
1 2 3
99
100