Search code examples
genexus

Change grid attribute value on runtime in genexus


How can I change the value of the attribute in a grid on runtime?

For example, I have an IsActive attribute with a boolean datatype in a Transaction and I put it on a Grid in web panel. I want it to display as Text like 'Active' if the value is true and 'Inactive' otherwise.

Here's the screenshot: link


Solution

  • Attributes in WebPanels grids are readonly

    You can add a variable in the grid... char(20), in load code, set something like this:

    iif(StaffIsActive, 'Active', 'Inactive')
    

    You are using WW+, here is a help for this: Grid Variable