Hi,
After upgrading from v.2018 to v.2020 this code does not hide the row in question: $brugernavn = $this->pf_brugernavn->CurrentValue; $pos2 = strpos($brugernavn, ‘_’); if ($pos2 === true) { $this->RowAttrs[“style”] = “display:none”; }
What am I missing her ?
tia /Poul
Please enable the Debug mode from “Tools” → “Advanced Settings”, and then re-generate the ewcfg.php file, and see whether any error/warning message.
No errors was shown with debug on.
Changed the test from: $pos2 = strpos($brugernavn, ‘_’); if ($pos2 === true) {
to $pos2 = strpos($brugernavn, ‘_’); if ($pos2 == 4 ) {
Since the substring (if present) is always at position 4, and now the code works as expected.
/Poul