Announcement

Collapse
No announcement yet.

How to show/Hide grid record button

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to show/Hide grid record button

    I have a column with the button (in a record line) The button simply selects a record (for processing).
    I want this button to show conditionally based on another column. In this case Email column. another words I want to hide this button if the Email is Empty (so the records with no Email are not accidently selected).

    So far most of the SC macros apply to Forms only. Any ideas how to implement it ?


  • #2
    I'm not sure how your button is created. And I don't know of a way to HIDE a column per record conditions.
    You might be able to blank that field or alter it's properties with something like this in the onRecord event.

    if(strlen({EmailAddress})==0){
    // blank the column
    {Cell} = '';
    // OR change properties
    //sc_field_style({Cell}, "#000000", , "#FFFFFF", , );
    }

    Comment

    Working...
    X