Results 1 to 1 of 1

Thread: display message on dialog box

  1. #1
    tamhd_vn88 is offline Member
    Join Date
    Jun 2010
    Posts
    18

    Default display message on dialog box

    I am learning about SugarCRM.i met some problem:
    + I want to dispay a message on a dialogbox ( exam display a message on a dialogbox when name='123')
    + I want to cancel save when a condition = true
    + I created 1 module to add new account.But i cant lgin by this account because password is wrong. In sugarCRM, use MD5, SHA or ....? and please show for me the way to use MD5 or SHA in file hook.
    + i want to take information of account login,after that display this infomation in a field.

    Please help me!!!!
    <?php

    class kiemtra_class
    {


    function kiemtra_method(&$bean, $event, $arguments=null)
    {
    if ($event != 'before_save') return;
    // Insert your custom logic between these comments
    $query="select count(*) from md1_dangkykhachhang where name='$bean->name' and diachithuongtru='$bean->diachithuongtru' and dienthoaicodinh->'$bean->dienthoaicodinh'";
    $results = $bean->db->query($query, true);
    if ($bean->db->fetchByAssoc($results) == 0){
    // Insert your custom logic between these comments

    //show dialogbox
    //cancel save in database



    }

    }

    }

    ?>
    Last edited by tamhd_vn88; 2010-06-03 at 08:48 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Skip Save & Display Message
    By ardn0001 in forum Developer Help
    Replies: 5
    Last Post: 2010-06-04, 08:24 AM
  2. How to display error message in a before save logic
    By piccirm in forum Developer Help
    Replies: 2
    Last Post: 2009-01-28, 09:07 AM
  3. Replies: 1
    Last Post: 2006-12-06, 07:26 PM
  4. Replies: 0
    Last Post: 2006-10-06, 10:29 AM
  5. New Opportunities dialog Freezes in 2.0.1e
    By philicservnet492635 in forum Help
    Replies: 0
    Last Post: 2005-01-13, 05:00 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
  •