<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged convert</title>
<link>https://overflow.efficy.io/?qa=tag/convert</link>
<description>Powered by Question2Answer</description>
<item>
<title>convertAttachmentToPdf, PDF generated with an image with a size in style / attributes shows image in original size</title>
<link>https://overflow.efficy.io/?qa=6639/convertattachmenttopdf-generated-style-attributes-original</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;We are using convertAttachmentToPdf to convert HTML to a pdf. This is ok except for image with a size defined (via CKEDITOR), this stores the size in the style attribute. When the size is defined the generated pdf just shows the original size. Adding the width and height attributes to img element changes nothing.&lt;/p&gt;

&lt;p&gt;Does anyone know how to solve this? &lt;/p&gt;

&lt;p&gt;Best regards,&lt;/p&gt;

&lt;p&gt;Rob&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6639/convertattachmenttopdf-generated-style-attributes-original</guid>
<pubDate>Tue, 19 Jul 2022 14:38:39 +0000</pubDate>
</item>
<item>
<title>Efficy addins : Convert Mail to Oppo (Detail not exist in EditContext)</title>
<link>https://overflow.efficy.io/?qa=3989/efficy-addins-convert-mail-oppo-detail-not-exist-editcontext</link>
<description>&lt;p&gt;Geoffrey Deldique, ‎3‎/‎11‎/‎2015‎ ‎15‎:‎56‎:‎42&lt;/p&gt;

&lt;p&gt;I changed the SYS_ENTITYVIEWS (Name : OppoEdit) and added &lt;strong&gt;Oppo_Mail=Mail&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;OLD STRING :&lt;br&gt;
Oppo;Oppo&lt;em&gt;User=User;Oppo&lt;/em&gt;Comp=Comp;Oppo&lt;em&gt;Cont=Cont;Oppo&lt;/em&gt;Proj=Proj;Prod&lt;em&gt;Oppo=Prod;Oppo&lt;/em&gt;Acti=Acti;Prof_Oppo=Prof;&lt;/p&gt;

&lt;p&gt;NEW STRING :&lt;br&gt;
Oppo;Oppo&lt;em&gt;User=User;Oppo&lt;/em&gt;Comp=Comp;Oppo&lt;em&gt;Cont=Cont;Oppo&lt;/em&gt;Proj=Proj;Prod&lt;em&gt;Oppo=Prod;Oppo&lt;/em&gt;Acti=Acti;Prof_Oppo=Prof;&lt;strong&gt;Oppo_Mail=Mail&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Then I made a DB Upgrade&lt;/p&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3989/efficy-addins-convert-mail-oppo-detail-not-exist-editcontext</guid>
<pubDate>Wed, 27 Feb 2019 14:32:19 +0000</pubDate>
</item>
<item>
<title>PDF OFFICE CONVERTER Error Class not registered</title>
<link>https://overflow.efficy.io/?qa=3661/pdf-office-converter-error-class-not-registered</link>
<description>&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=8797581208294428711&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;How resolve this problem ? &lt;/p&gt;

&lt;p&gt;I follow this process, with success on an 11.1 but in production with a version 11.0 it doesn't work properly.&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.com/edn/admin/scpr_pdfofficeconverter&quot;&gt;https://help.efficy.com/edn/admin/scpr_pdfofficeconverter&lt;/a&gt;&lt;/p&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3661/pdf-office-converter-error-class-not-registered</guid>
<pubDate>Tue, 13 Nov 2018 13:28:19 +0000</pubDate>
</item>
<item>
<title>Visio PDF Converting</title>
<link>https://overflow.efficy.io/?qa=3417/visio-pdf-converting</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;would be great if somebody could help. I have Neevia PDF Converter and it works fine. But for Visio Files (vsdx) the button &quot;convert to pdf&quot; does not appear.&lt;/p&gt;

&lt;p&gt;Can we add vsdx to the convertible formats? Should be just a linking, because Neevia can do it.&lt;/p&gt;

&lt;p&gt;Best regards&lt;/p&gt;
</description>
<category>Efficy Installation/Settings</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3417/visio-pdf-converting</guid>
<pubDate>Tue, 24 Jul 2018 12:32:43 +0000</pubDate>
</item>
<item>
<title>How to make changes into Opportunity.js</title>
<link>https://overflow.efficy.io/?qa=2788/how-to-make-changes-into-opportunity-js</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I would like to add content into Opportunity.js&lt;br&gt;
That's why, i created a new folder named &quot;serverscripts&quot; into custom folder in which i moved the related js file. I made these changes after &quot;docu copy&quot; part.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var ContextHandle = Database.OpenTemporaryContext();
var SQL =   &quot;select CL.F_CHECK, CL.F_CHECKDUEDATE, CL.F_CHECKED &quot;+                      
                        &quot;from &amp;lt;#TABLE NAME=LK_CHECKLIST&amp;gt; CL &quot;+
                        &quot;where CL.DISABLED = 0 order by CL.K_SORT&quot;;

var DS = Database.ExecuteSystemSQLQuery(QueryHandle, ContextHandle, SQL, '', true, true, 0)
DS.First
while (! DS.Eof) {              
var ActiContext = Database.OpenEditContext(ntActi, 0);
var ActiDS = DataBase.GetMasterDataSet(ActiContext, 0)
var ActiKey = DataBase.GetEditKey(ActiContext);
ActiDS.Edit();
ActiDS.FieldByName('SUBJECT').AsString = DS.FieldByName('F_CHECK').AsString;    //NAME
ActiDS.FieldByName('NATURE') = 8;
ActiDS.FieldByName('MODE') = 14;    
Database.AddLink2(ntActi, ntProj, ActiKey, ProjKey, true);                  //Link to project
Database.CloseContext(ActiContext);         
DS.Next
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After restart IIS and connect to custom environment, when i try to convert an opportunity to project, standard release seems to be run.&lt;/p&gt;

&lt;p&gt;(I tried to add an alert but no use)&lt;/p&gt;

&lt;p&gt;Have i miss a thing ?&lt;/p&gt;

&lt;p&gt;Thank you for your feedback.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2788/how-to-make-changes-into-opportunity-js</guid>
<pubDate>Thu, 30 Nov 2017 13:55:47 +0000</pubDate>
</item>
<item>
<title>Workflow run twice on EditInitilize on converting email to oppo directly from outlook</title>
<link>https://overflow.efficy.io/?qa=2585/workflow-twice-editinitilize-converting-directly-outlook</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm facing a strange behavior on workflow triggering.&lt;/p&gt;

&lt;p&gt;A work flow is triggered on inserting new opportunity to link some standard products by default.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;// =================================================================================================
//                  VARIABLES
// =================================================================================================



var LK_PROD_FAMILY_STANDARD = 1;

var OPPO_CREATE_DATE_FIELD = &quot;F_CREATE_DATE&quot;;
//var PROJ_CREATE_DATE_FIELD = &quot;D_START&quot;;
var OPPO_LEAD_REF = 2;
//var PROJ_LEAD_REF = 3;
var SHARES_OPTION_DIG = 1;
var SHARES_OPTION_DOVESCO = 2;

// =================================================================================================
//                  TRIGGERS
// =================================================================================================

//On Edit Initilize

function EditInitializedOppo(EditHandle, Inserted) {
    if(Inserted){
        SetCreateDate(EditHandle, OPPO_CREATE_DATE_FIELD);
        LinkStdProducts(EditHandle);
    }
}


// MAIN COMMITS

function BeforeCommitOppo(EditHandle, Inserted) {
    if(Inserted){
        SetReference(EditHandle, OPPO_LEAD_REF);
    }
}

/*function BeforeCommitProj(EditHandle, Inserted) {
    if(Inserted){
        SetReference(EditHandle, PROJ_LEAD_REF);
    }
}*/

function AfterCommitOppo(EditHandle, Inserted) {
    SetCustomReference(EditHandle, Inserted, 'F_SHARE');
}


// =================================================================================================
//                  FUNCTIONS
// =================================================================================================
//AAL: Link all products with family category &quot;Standard&quot;
function LinkStdProducts(EditHandle){
    var SQL = &quot;SELECT K_PRODUCT, NAME, F_SORT FROM PRODUCTS WHERE FAMILY =:PARAM1&quot;
    var prodDS = ExecuteQuery(SQL, LK_PROD_FAMILY_STANDARD, 810);
    if(prodDS &amp;amp;&amp;amp; !prodDS.IsEmpty){
        while(!prodDS.Eof){
                Database.InsertDetail(EditHandle, ntProd, prodDS.FieldByName('K_PRODUCT').AsFloat, -1, false);
                Database.UpdateDetailStringField(EditHandle, ntProd, 0, 0, 'NAME', prodDS.FieldByName('NAME').AsString);
                Database.UpdateDetailField(EditHandle, ntProd, 0, 0, 'K_SORT', prodDS.FieldByName('F_SORT').AsFloat);
            prodDS.Next();
        }
    }
}

function SetReference(EditHandle, RefNo) {
    Database.SetReference(EditHandle, RefNo);
}

function SetCreateDate(OppoHandle, Field){
    var dsOppo = Database.GetMasterDataSet(OppoHandle, 0);
    var createDate = new EffiDate();
    createDate.FromJavaDate(new Date());
    dsOppo.Edit;
    dsOppo.FieldByName(Field).AsString = createDate.GetDateStr_Format2();
}

function SetCustomReference(EditHandle, Inserted, Field){
    var DS = Database.GetMasterDataSet(EditHandle, 0);

    var Reference = &quot;&quot; + GetReference(DS.FieldByName(&quot;REFERENCE&quot;).AsString, DS.FieldByName(Field).AsFloat, Inserted);
    if(Reference != &quot;&quot;){
        var PrevSecState = Database.DisableSecurity;
        var PrevWFState = Database.DisableWorkflow;
        Database.DisableWorkflow = true;
        Database.DisableSecurity = true;

        DS.Edit;
        DS.FieldByName(&quot;REFERENCE&quot;).AsString = Reference;
        Database.CommitChanges(EditHandle, false);

        Database.DisableWorkflow = PrevWFState;
        Database.DisableSecurity = PrevSecState;
    }
}

function GetReference(Reference, FieldValue, Inserted) {
    if(Reference &amp;amp;&amp;amp; Reference != &quot;&quot;){
        var oldRef = Reference.split(&quot;-&quot;);
        var share = &quot;&quot;;
        switch (FieldValue){
            case SHARES_OPTION_DIG:
                share = &quot;DIG&quot;;
                break;
            case SHARES_OPTION_DOVESCO:
                share = &quot;DOVESCO&quot;;
                break;
        }

        var newRef = [];
        newRef.push(oldRef[0]);
        newRef.push(share);
        if(Inserted){//X-YYYY-nnnnn
            newRef.push(oldRef[1]);
            newRef.push(oldRef[2]);
        }
        else{//X-DIG/DOVESCO-YYYY-nnnnn
            newRef.push(oldRef[2]);
            newRef.push(oldRef[3]);
        }
        return newRef.join(&quot;-&quot;);
    }
    return &quot;&quot;;
}

function ExecuteQuery(SQL, QueryParams, storeID) {
    var QueryHandle = 0;
    var ContextHandle = Database.OpenTemporaryContext;
    Result = Database.ExecuteSystemSQLQuery(QueryHandle, ContextHandle, SQL, QueryParams, true, true, storeID);
    return Result;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;When i create new opportunity in Efficy, it's working perfectly. Even when i convert some project or email in Efficy is also ok.&lt;/p&gt;

&lt;p&gt;Only when using outlook add-in to convert email directly to opportunity then the products are linked twice. In queryLog the query to get the products to link is run twice when converting email to opportunity from outlook.&lt;/p&gt;

&lt;p&gt;I made test to disable the call for the function, then the products are not linked at all in any case.&lt;/p&gt;

&lt;p&gt;So basically for some reason the trigger is run twice (even Inserted flag is checked) when converting email to oppo fro outlook. So Any idea why?&lt;/p&gt;

&lt;p&gt;Please advice and thank you in-advance for your help.&lt;/p&gt;

&lt;p&gt;Best Regards.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2585/workflow-twice-editinitilize-converting-directly-outlook</guid>
<pubDate>Thu, 29 Jun 2017 08:49:17 +0000</pubDate>
</item>
</channel>
</rss>