Results 1 to 5 of 5

Thread: Sugar 5.2, create custom popup

  1. #1
    carlos gomez is offline Member
    Join Date
    Oct 2010
    Location
    Venezuela
    Posts
    15

    Unhappy Sugar 5.2, create custom popup

    Hi, I am new in this sugar crm world.

    Am using Sugar 5.2, and I want to create a popup than display a CallsQuickCreate when users click on the contact´s phone in the listview.

    I had managed to create the popup as a link in the contact´s phone with a window.open() event refered to an action, however am stuck with the quick create.

    I can create the form from the scratch, and use ajax to send the data to the Calls module asking to save, but must be a more easy way to do it using the framework.

    any help is accepted.

  2. #2
    carlos gomez is offline Member
    Join Date
    Oct 2010
    Location
    Venezuela
    Posts
    15

    Unhappy Re: Sugar 5.2, create custom popup

    can this be done by editing the popupdefs?

  3. #3
    westbay is offline Member
    Join Date
    Nov 2009
    Posts
    6

    Default Re: Sugar 5.2, create custom popup

    Quote Originally Posted by carlos gomez View Post
    can this be done by editing the popupdefs?
    you'll have to do a few things here:
    modify your list views so that you link the contact's phone number to an action; can be open_popup, but you'll have to pass an additional parameter in, so that you can create a custom view to match the parameter, so that you can display a custom quick create form.

  4. #4
    carlos gomez is offline Member
    Join Date
    Oct 2010
    Location
    Venezuela
    Posts
    15

    Default Re: Sugar 5.2, create custom popup

    I updated the list view, so the phone number has a little phone pic, this pic does a window.open to a custom action, this custom action uses a socket to generate a call in asterisk using AMI, following Asterisk Voice RD Integration idea.

    the custom action uses a .tpl file to generate my own form; this form post data in Calls module asking to save action. The only issue than am missing is the time fomat for the date_start value than my form sends. The date_start field in db allways fills with '01/01/2000', no matter what datetime format I send.

    Any idea how to access this sugar datetime format??
    Last edited by carlos gomez; 2010-12-03 at 04:41 PM. Reason: being more specific

  5. #5
    carlos gomez is offline Member
    Join Date
    Oct 2010
    Location
    Venezuela
    Posts
    15

    Smile Re: Sugar 5.2, create custom popup

    Quote Originally Posted by carlos gomez View Post
    I updated the list view, so the phone number has a little phone pic, this pic does a window.open to a custom action, this custom action uses a socket to generate a call in asterisk using AMI, following Asterisk Voice RD Integration idea.

    the custom action uses a .tpl file to generate my own form; this form post data in Calls module asking to save action. The only issue than am missing is the time fomat for the date_start value than my form sends. The date_start field in db allways fills with '01/01/2000', no matter what datetime format I send.

    Any idea how to access this sugar datetime format??
    Finally, I use global $timedate object to understand this a bit better, at the end all i have to do was to generate my dates with php´s date function: date("d/m/Y h:mA"), so $timedate was able to understand my input and storage date time succesfully.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 2012-01-27, 03:41 PM
  2. Create POPUP Select for Custom Module.
    By Joshua.Stout in forum Developer Help
    Replies: 4
    Last Post: 2011-02-28, 10:20 AM
  3. Add create button to select popup for custom module
    By jwesley in forum Developer Help
    Replies: 0
    Last Post: 2010-06-08, 05:48 PM
  4. Replies: 3
    Last Post: 2010-05-11, 12:34 PM
  5. Custom modules "Create New" feature on Popup form
    By Glitch in forum Developer Help
    Replies: 0
    Last Post: 2009-08-05, 08:11 AM

Tags for this Thread

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
  •