Convivea

Bit Che => Bugs & Feature Requests => Topic started by: Bastian296 on June 11, 2019, 08:39:36 pm

Title: Wakanda query with dynamic attribute name in a variable
Post by: Bastian296 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?
Title: Re: Wakanda query with dynamic attribute name in a variable
Post by: JosephJennifer on June 16, 2021, 08:56:31 pm
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 (https://www.talktowendys.ltd/)