Results 1 to 9 of 9

Thread: Custom edit task

  1. #1
    mjunior is offline Senior Member
    Join Date
    Jun 2009
    Posts
    22

    Question Custom edit task

    Hi there,

    I wonder how can I add a custom field into the edit task in order to save extra info into the description.
    I tried to add it into edit html and then into edit php but it seems to have extra pages where I need to reference the new custom fild to be passed forward that Iīm missing...

    Any help is welcome.

    tks

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Custom edit task

    Hello,

    What version of SugarCRM do you use?
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    mjunior is offline Senior Member
    Join Date
    Jun 2009
    Posts
    22

    Default Re: Custom edit task

    I was trying to add the new input value into $focus so I can update table including previous description value
    as in:$xtpl->assign("DESCRIPTION", $focus->description.$focus->newvalue);
    Running 4.5.1 version here.

  4. #4
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Custom edit task

    Hello,

    Do let me know what steps you have followed till now.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  5. #5
    mjunior is offline Senior Member
    Join Date
    Jun 2009
    Posts
    22

    Default Re: Custom edit task

    Hi there,

    so far I added the new input field into html edit;
    added te new var into task.php (class Task extends SugarBean);
    added the new referente to input into field_arrays.php( $fields_array);
    added itīs reference at editview.php (if(isset($_REQUEST['newvalue'])) {
    $focus->solution = ($_REQUEST['newvalue']);
    } )

    added update reference to this new value at editview.php ($xtpl->assign("DESCRIPTION", $focus->description.$focus->newvalue)

    Not sure if the transition to index.php carry the new value though...

  6. #6
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Custom edit task

    Hello,

    I didn't get what exactly you want to achieve, can you please explain a little bit in more detail?
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  7. #7
    mjunior is offline Senior Member
    Join Date
    Jun 2009
    Posts
    22

    Default Re: Custom edit task

    Hi there,

    Iīd like to add extra input into edit task and then update itīs value along with description to the data base (into descriptionīs data base field).

  8. #8
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Custom edit task

    Hello,

    Create a logic_hook before_save add following line,

    PHP Code:
    $bean->description .= $bean-><YOUR_CUSTOM_FIELD>; 
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  9. #9
    marcelojunior is offline Junior Member
    Join Date
    Oct 2010
    Posts
    1

    Default Re: Custom edit task

    So are u suggesting me to use:
    $xtpl->assign("DESCRIPTION", $focus->description.= $focus->newvalue);instead of previous update string I sent?
    This results in the same response...seems like my new value isnīt available at editview.php...
    Maybe lost in some transition between index.php or other Iīm not sure...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Edit task issue in 5.0 release
    By pbperche in forum General Discussion
    Replies: 16
    Last Post: 2008-07-09, 09:55 AM
  2. task from case - view.edit location
    By mikesolomon in forum Help
    Replies: 0
    Last Post: 2008-05-01, 10:02 AM
  3. Task Edit - Status Default
    By columbiacrm in forum Help
    Replies: 2
    Last Post: 2007-03-02, 06:22 PM
  4. Others can edit my task!
    By bennn in forum Help
    Replies: 1
    Last Post: 2005-10-11, 01:16 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
  •