now, not works ,not read field
sc_alert("{title}");
now, not works ,not read field
sc_alert("{title}");
This is very little info to work on. In which event did you use it, according to the docs (helpfile) is this macro certified for this event etc? If it is, and you leave out the quotes…
do not get it worked before, not now, use in a grid in the event onrecord:
/**
//getting the current date from php
$current_date = date(‘Y-m-d’);
{amount_days} = sc_date_dif({end_date}, ‘aaaa-mm-dd’, $current_date, ‘aaaa-mm-dd’);
if({amount_days} > 0)
{
//if amount is bigger then 0, means that current date is bigger then {end_date}
//send an email to the user, this bill is overdue.
//sc_alert("This is an alert ");
}
elseif({amount_days} == 0 && {stato_appuntamento} == 1 )
{
//if amount is 0, means that current date igual {end_date}
//send alert
sc_alert("{title}");
}
elseif({amount_days} < 0)
{
//if amount is less then 0, means that {end_date} is bigger then the current date
//dont do nothing, the due date didnt pass yet
}
not touch nothing, but now works…