Announcement

Collapse
No announcement yet.

alert not works fine

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

  • alert not works fine

    now, not works ,not read field

    sc_alert("{title}");
    Last edited by andreaparisi; 04-07-2015, 03:33 AM.

  • #2
    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...
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      do not get it worked before, not now, use in a grid in the event onrecord:
      /**
      * Checking the difference between due date to current date.
      */

      //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
      }

      Comment


      • #4
        not touch nothing, but now works....

        Comment

        Working...
        X