CoreBOSBB
[ solved ] - Service Contracts - doubt - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: [ solved ] - Service Contracts - doubt (/showthread.php?tid=961)

Pages: 1 2 3


RE: Service Contracts - doubt - rslemer - 10-21-2018

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 ?


RE: Service Contracts - doubt - joebordes - 10-23-2018

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


RE: Service Contracts - doubt - rslemer - 09-09-2019

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 !!