Search code examples
powerbuilder

How to set value of a field of the selected row in SAP PowerBuilder detail window


I wanted my project to hide/unhide column "my_column" of selected row at my detail data window. How can I achieve this. I am using SAP PowerBuilder 12.5. Below is my code:

this.modify("my_column_label.visible = true")
this.modify("my_column.visible = true")

Solution

  • In DataWindow:

    1º) For example, select the column: "my_column"

    2º) In its properties, locate "Visible" and click on its button "=" of expression

    enter image description here

    3º) Enter the code that determines when it should be visible, for example:

    IF (not IsNull (my_column), 1, 0)