Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ solved ] - Service Contracts - doubt
#21
Hi Joe,

Is more clear now

But at the first part, I understood to change vtiger_fieldmodulerel and in this video table is vtiger_relatedlist

Thru layout editor not workeded, I try delete and recreate again

I see your code, and change database directly,

and almost there ...

I think now relation is created but, at screen, system not show a correctly name of service contract

Probably, with my fault, at first part ...

I did changed something wrong

How I can to do for clean all changes and redo ( I think is a way to correct now, right ?


Attached Files Image(s)
   
Ranieri
eCRM Web
Reply
#22
Try creating a new database and load the install database which is in the schema directory, compare the entries for SC see if that helps
Joe
TSolucio
Reply
#23
I created two scripts like your video

to add a todo -> Service Contracts works fine
but for add a Tickets -> Service Contracts returned a error

I try with HelpDesk, Support Tickets, Trouble Tickets, without a sucess

<?php
$Vtiger_Utils_Log=True;

include_once 'vtlib/Vtiger/Module.php';
error_reporting(E_ALL);
ini_set('display_erros','on');
$usr=new Users();
$current_user=Users::getActiveAdminUser();

$modCal = Vtiger_Module::getInstance('HelpDesk');
$field = Vtiger_Field::getInstance('rel_id',$modCal);
$field->setRelatedModules(array('ServiceContracts'));

$modSC = Vtiger_module::getInstance('ServiceContracts');
$modSC ->setRelatedList($modCal,'HelpDesk', array('ADD'), 'get_dependentes_lists');

?>
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"setSCRelationticket.php" 17L, 492C

solved changed rel_d to parent_id

=)

Thanks Joe, for this video and explanation !!
Ranieri
eCRM Web
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)