Questions tagged [dynamic-properties]

75 questions
0
votes
1 answer

json loop access via dynamic property

var opt = $.extend({ jsonOptions :{ value : 'id', text : 'text', }, }, options ); return elem.bind("keyup.myPlugin", function () { $.ajax({ url:'abc.php', …
alamnaryab
  • 1,480
  • 3
  • 19
  • 31
0
votes
1 answer

Electric commander - Set a property based on the status of the status of a step

I have an ecloud procedure which has few steps in it. I want to set the value of a property based on the status of the step after its completion. E.g Procedure P1 has steps S1 - Runs a command S11 - Set a property value based on the status of S1 S2…
Rajesh
  • 96
  • 10
0
votes
0 answers

dynamically change text of tab created using Qt Designer

I have a dialog created using Qt Designer. How can I make Qt Designer output something more dynamic than the hardcoded "Survex Errors" I18n key in the following code it generates? (scroll to the right to see it) For instance make it get the value…
Andy
  • 7,885
  • 5
  • 55
  • 61
0
votes
2 answers

C# ASP.Net MVC dynamic object properties

I am working on a ASP.NET MVC project, with C#, and EF code first. I am required to add dynamic properties to entities. For example - I have a car as a base object. I can add custom properties for it like engine power, length, color etc…
0
votes
2 answers

Laravel Checking if a Dynamic property is set

I have a class foo that belongs to bar. within foo I have: public function bar(){ return $this->belongsTo('App\Models\Bar'); } I have an object $foo who's bar_id is null. Within Foo, I have an if statment: if ($this->bar->id == 1){ echo "in…
ajon
  • 7,868
  • 11
  • 48
  • 86
0
votes
1 answer

Gstreamer Pipeline Dynamic Change Python

I have been trying to dynamically change the gstreamer pipeline but it just stops the stream as soon as I change the state. What is it that I am doing wring here. Here is my code : #!/usr/bin/python import gobject import…
0
votes
0 answers

Vb.net Dynamic Properties on inherited objects

I cannot get this to work! I want to be able to create dynamic properties on derived classes that inherit from a base class that inherits from system.dynamic.dynamicobject? I have created a VB.net abstract class which I want to inherit from with…
0
votes
2 answers

Javascript Objects: Dynamically create properties and property names

I'm trying to dynamically create objects within objects that all have dynamic property names and properties. Here is a sample: jobs: | name | job | building | ----------------------------- | adam | mop | school | | adam | teach | …
0
votes
1 answer

JSON Objects, Dynamic Properties and Serialization wtih Grails & MongoDB

I am trying to save a generic JSONObject to a Domain object using Grail's MongoDB plugin. Basically it doesn't work with regular properties (not surprising). So I added a dynamic property which saves the JSONObject to the DB and pulls it back out…
chubbsondubs
  • 37,646
  • 24
  • 106
  • 138
0
votes
1 answer

How to use dynamic key name in object during object construction?

I want to use a dynamic key name during the creation of the object. var myKey = 'text'; var myObj = { [myKey]: 'Hello' // not working }; alert(myObj.text); I know you can do it on the next line after the object is created myObj[key] =…
0
votes
3 answers

Getting a value of a dynamic class and dynamic property

Is it possible to get the value of a instance variable that is a class and the value needed to get is just a string? I'm getting strings that are "$user->Prop" lets say, and I want to eval() this string to get the value, but it seems the eval…
Justin T. Watts
  • 547
  • 1
  • 4
  • 16
0
votes
1 answer

Support for dynamic properties in DataGrid

I have a simple DataGrid, that looks like this