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

Ludovic THEBAULT ludovic.thebault at laposte.net
Thu Feb 21 09:16:40 EST 2019


> Le 20 févr. 2019 à 17:58, zryip theSlug via use-livecode <use-livecode at lists.runrev.com> a écrit :
> 
> Ludovic,
> 
> Try:
> 
> on FillInData pData
> 
>        if pData["email"] <> "" then show btn  "sendmail" of me
> 
>        else hide btn  "sendmail" of me
> 
> end FillInData
> 


As i use Table datagrid, pData is just the value of the cell, so with this script it’s work.

if GetDataOfIndex(the dgIndex of me, "email") <> "" then
	 show btn  "sendmail" of me
 else hide btn  "sendmail" of me

Ludovic



More information about the Use-livecode mailing list