Data grid : show an button in a column only if there is an email in other column

Ludovic THEBAULT ludovic.thebault at laposte.net
Wed Feb 20 11:54:17 EST 2019


Hello,

I have an address table (data grid) including an "email" column. An other column contains a button to send an email.  I want to hide this button if the line does not contain an email.
I put this script in the behavior of the button column :

on FillInData pData

	if pData["email"] <> "" then show btn  "sendmail"

	else hide btn  "sendmail"

end FillInData


But it seem to work only for the first line of the table.

Any ideas ?

Thanks in advance !

Ludovic


More information about the use-livecode mailing list