RefreshCapcha

Author Topic: Wakanda query with dynamic attribute name in a variable  (Read 74 times)

Offline Bastian296

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Wakanda query with dynamic attribute name in a variable
« on: June 11, 2019, 08:39:36 pm »
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?