Setting the Visiblity of Tables based on a variable in a loop

62 views Asked by At

I have a Table Looping over structure that have elements. One of these elements is the type, that should be used to determine the visibility of the tables inside of the loop (1 Table should be visible)

In the java script, I tried to assign this value to a variable and compare it with the Type but no luck.

Something like this didn't actually work, initializing with visibility set to hidden.

var x = $record.main.table[*].typ ;
  if ( x == "03" ) {
  this.prescence = 'visible';
}

Setting another textfield to this value actually shows the value.

I tried everything with single quotes and double quotes, invert the process by using != and so on..

0

There are 0 answers