Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sugarcrm 想要从pdf管理器(Sugar 7.6)获取pdf模板的html_Sugarcrm_Sugarbean - Fatal编程技术网

Sugarcrm 想要从pdf管理器(Sugar 7.6)获取pdf模板的html

Sugarcrm 想要从pdf管理器(Sugar 7.6)获取pdf模板的html,sugarcrm,sugarbean,Sugarcrm,Sugarbean,我想使用bean获得pdf管理器的html。我知道如何获取电子邮件模板的html,但无法获取pdf管理器中生成的pdf模板的html $template = new EmailTemplate(); $template->retrieve_by_string_fields(array(‘name’ => $template_name,’type’=>’email’)); $html=$template->body_html; 当我想从pdf m

我想使用bean获得pdf管理器的html。我知道如何获取电子邮件模板的html,但无法获取pdf管理器中生成的pdf模板的html

    $template = new EmailTemplate();
    $template->retrieve_by_string_fields(array(‘name’ => $template_name,’type’=>’email’));
    $html=$template->body_html; 

当我想从pdf manager获取html模板时,如何实现相同的功能

>P>检索函数BysStrigiFieldFieldFas函数为7.6,因此,您可能需要考虑使用。PDF管理器中没有“type”字段,所以我刚刚使用了代码中的name属性。这将为您提供与条件匹配的记录数组

require_once("include/SugarQuery/SugarQuery.php");
$sugarQuery = new SugarQuery();
$sugarQuery->select("body_html");
$sugarQuery->from(BeanFactory::newBean('PdfManager'));
$sugarQuery->where()->equals("name", $template_name);
$html = $sugarQuery->execute();

检索函数Byth-StrugFieldField函数按7.6表示,因此您可能需要考虑使用。PDF管理器中没有“type”字段,所以我刚刚使用了代码中的name属性。这将为您提供与条件匹配的记录数组

require_once("include/SugarQuery/SugarQuery.php");
$sugarQuery = new SugarQuery();
$sugarQuery->select("body_html");
$sugarQuery->from(BeanFactory::newBean('PdfManager'));
$sugarQuery->where()->equals("name", $template_name);
$html = $sugarQuery->execute();