Procedure call for Visible property - warning/error in the future

dreezdreez Member Posts: 44
Hey.

I have a Group on Page. The group needs to show some content based on Blob field value.
So this is what I want to do:
group(MyGroup)
{
    Visible = Rec.Blob.HasValue();
    // some other stuff here.
}

Visual Studio Code tells me that:
Rec.Blob.HasValue() - procedure calls is not valid for client expressions. This warning will become an error in a future release.

How do I set this kind of group visibility in other way, so I don't get this warning...? As far as I know it's the only way I can hide/show this group dynamically.

Answers

  • bbrownbbrown MAMember Posts: 3,213
    Try assigning the "hasvalue" result to a global variable. Then assign that variable to the "Visible" property.
    There are no bugs - only undocumented features.
  • dreezdreez Member Posts: 44
    Okay, but whenever I update blob value in my record I will have to remember to update HasValue global variable too. I thought that there might be a "better" solution.
Sign In or Register to comment.