Bit Che > Bugs & Feature Requests

Wakanda query with dynamic attribute name in a variable

(1/1)

Bastian296:
Please, take a look at following code:

var platNom = "apero"; // I set the value of my attribute in one variable

var monAttribut = ds.Convives.attributes[platNom]; //this works

var invitants = ds.Convives.query("$(this[platNom] == 'oui') ", {allowJavascript: true});// This does not work

Is there a problem in my syntax?

JosephJennifer:
A new feature in 4D allows you to add or insert new columns dynamically at  Array, Field, Variable, Nil pointer, ->, Column array name or field or variable.
TalkToWendys.com

Navigation

[0] Message Index

Go to full version