Hi!
I have a grid which starts by Search. In Search i need to hide field using a variable…
I used the following code in event onScriptInit (in the search part of the grid)
if ([somevar] == ‘somevalue’)
{
sc_field_display({Type}, ‘off’);
}
else
{
sc_field_display({Type}, ‘on’);
}
and it is not hiding the field…
I have tried the same code in the grid part and it is working there…hides the field
am i putting the code in the wrong event? or am i missing something?
Thanks!