Results 1 to 2 of 2

Thread: addAlert wrap

  1. #1
    muscariello is offline Senior Member
    Join Date
    Jul 2009
    Location
    Napoli
    Posts
    45

    Default addAlert wrap

    Hi to all,
    I'm working with SugarCE 5.5.0.
    I hope someone can help me.

    I've changed jsAlerts.php to add more informations in reminder popup.
    I'd like to show informations on multiple lines, but I can't wrap...


    $this->addAlert($app_strings['MSG_JS_ALERT_MTG_REMINDER_CALL'], $row['name']." ".$row['azienda'] ......)

    How can I wrap $row['azienda']?

    Thanks in advance,
    Martina

  2. #2
    muscariello is offline Senior Member
    Join Date
    Jul 2009
    Location
    Napoli
    Posts
    45

    Default Re: addAlert wrap

    Nobody can help me?
    I've changed jsAlerts.php according to my needs.
    Having retrieved the information from db and then I'd like to show informations on multiple lines in reminder popup.
    To do this I've changed line

    $this->addAlert($app_strings['MSG_JS_ALERT_MTG_REMINDER_CALL'], $row['name'], $app_strings['MSG_JS_ALERT_MTG_REMINDER_TIME'].$timedate->to_display_date_time($row['date_start']) , $app_strings['MSG_JS_ALERT_MTG_REMINDER_DESC'].$row['description']. $app_strings['MSG_JS_ALERT_MTG_REMINDER_MSG'] , $timeStart - strtotime($dateTimeNow), 'index.php?action=DetailView&module=Calls&record=' . $row['id']);


    to

    $this->addAlert($app_strings['MSG_JS_ALERT_MTG_REMINDER_CALL'], $row['name']."\n".$row['azienda']."\n".$row['first_name']." ".$row['last_name']."\nTel.1: ".$row['phone_work']." Tel.2: ".$row['phone_office'], $app_strings['MSG_JS_ALERT_MTG_REMINDER_TIME'].$timedate->to_display_date_time($row['date_start']) ,$app_strings['MSG_JS_ALERT_MTG_REMINDER_DESC'].$row['description'].$app_strings['MSG_JS_ALERT_MTG_REMINDER_MSG'] , $timeStart - strtotime($dateTimeNow), 'index.php?action=DetailView&module=Calls&record=' . $row['id']);

    but instead wrap, \n is printed as text.

    What should I do?
    Can you help me, please?

    Thanks in advance,
    Martina

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. text in subpanel table set to wrap
    By yanyan in forum Developer Help
    Replies: 2
    Last Post: 2011-10-07, 12:08 PM
  2. Word wrap in text area
    By kkumar in forum Developer Help
    Replies: 4
    Last Post: 2009-07-07, 05:39 AM
  3. Sugar gets a wrap
    By Scott_Savage in forum Help
    Replies: 1
    Last Post: 2006-10-11, 10:46 PM
  4. Wrap to fit browser
    By gosugar in forum Help
    Replies: 14
    Last Post: 2006-07-27, 02:04 PM
  5. Replies: 11
    Last Post: 2006-04-16, 07:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •