cancel
Showing results for 
Search instead for 
Did you mean: 

Has anyone seen an output doc become blank after clicking "finalize"?

Grill Chef
Grill Chef

Has anyone seen an output doc become blank after clicking "finalize"?

I recently created a new Output doc using the standard Customer Service Report template. The doc generates fine initially, but when you click "finalize" it goes blank and the saved copy is totally blank as well.

0 Likes
Reply
Sushi Chef
Sushi Chef

Re: Has anyone seen an output doc become blank after clicking "finalize"?

Dan, after you click the SFM button you need to wait for 10 seconds before you click finalize. If it still doesn't work then post your code I will have a look at it.

Thanks,

Srikanth.

0 Likes
Reply
Grill Chef
Grill Chef

Re: Has anyone seen an output doc become blank after clicking "finalize"?

Srikanth,

I waited almost a minute before clicking. Here is the Code:

<style type="text/css">

p{padding:0; margin:0}

  .container {font-family:Arial, Helvetica, sans-serif; font-size:12px; margin:0 auto; width:100%}

  .logo-title {overflow:hidden}

  .logo-title .title-txt {float:left; width:50%; padding:30px 0 0 0; font-size:12px; text-transform:uppercase; text-align:right}

  .logo-title .logo {float:left; width:50%;}

  .address-container {clear:both; position:relative; line-height:17px; text-align:right}

  .title{clear:both; text-align:center; font-size:22px; line-height:40px}

  .address-to-for {border:1px solid #000; clear:both; margin:15px 0 0 0}

  .address-to-for .address-to-for-container {width:100%; overflow:hidden; background:#f2f2f2}

  .address-to-for-container .block {width:50%; float:left}

  .address-to-for-container .block .header {background:#AEACB5; padding:5px; font-weight:bold; border-bottom:1px solid #000; color:#FFF}

  .address-to-for-container .block .content {padding:5px; line-height:18px}

  .workorder-details table, .part-details table {border-collapse: collapse; margin:20px 0 0 0}

  .workorder-details table th, .workorder-details table td, .part-details table th, .part-details table td {border: 1px solid #000; padding: 5px; text-align: left; white-space: normal; background:#f2f2f2}

  .workorder-details table th, .part-details table th {background:#AEACB5; color:#FFF; text-align:left; text-transform:uppercase;}

  .part-details table th.theader {background:#f2f2f2; color:#000; text-transform:capitalize}

  .part-details table tr td {background:#fff;}

  .part-details tfoot tr td{font-weight:bold; background:#f2f2f2}

  .footer {clear:both; width:100%; margin:40px 0 30px;}

  .footer strong {font-size:18px;}</style>

<div class="main-container">

  <div class="container">

  <div class="logo-title">

  <div class="logo">

  <img alt="CRL Logo" height="72" src="" svmx-data="{{$F.IMAGE('CRL_Logo')}}" width="297" /></div>

  <div class="title-txt">

  <p>

  <strong>Charles River Laboratories.</strong></p>

  <p>

  {{$F.ADDRESS()}}</p>

  </div>

  </div>

  <div class="title">

  <strong>Service Report</strong></div>

  <div class="address-container">

  <strong>DATE</strong>: {{$F.TODAY()}}</div>

  <div class="address-to-for">

  <div class="address-to-for-container">

  <div class="block">

  <div class="header">

  TO:</div>

  <div class="content">

  <p>

  {{$D.Work_Order.SVMXC__Contact__c.Name}}</p>

  <p>

  {{$D.Work_Order.SVMXC__Company__c.Name}}</p>

  <p>

  {{$D.Work_Order.SVMXC__Company__c.BillingStreet}}</p>

  <p>

  {{(function() { var ret = $F.FORMAT(&quot;{0}{1}{2}{3}{4}&quot;, $D.Work_Order.SVMXC__Company__c.BillingCity, $F.IF($D.Work_Order.SVMXC__Company__c.BillingCity, &quot;,&quot;, &quot;&quot;), $D.Work_Order.SVMXC__Company__c.BillingState, $F.IF($D.Work_Order.SVMXC__Company__c.BillingState, &quot;,&quot;, &quot;&quot;), $D.Work_Order.SVMXC__Company__c.BillingPostalCode); if(ret.match(&quot;,$&quot;) == &quot;,&quot;) return ret.substring(0,ret.length - 1); else return ret;} )()}}</p>

  <p>

  {{$D.Work_Order.SVMXC__Contact__c.Phone}}</p>

  </div>

  </div>

  <div class="block">

  <div class="header">

  FOR:</div>

  <div class="content">

  <p>

  <strong>{{$M.Work_Order.Name.label}}#</strong>: {{$D.Work_Order.Name}}</p>

  <p>

  <strong>{{$M.Work_Order.SVMXC__Case__c.CaseNumber.label}}#</strong>: {{$D.Work_Order.SVMXC__Case__c.CaseNumber}}</p>

  <p>

  <strong>{{$M.Work_Order.SVMXC__Street__c.label}}</strong>: {{$D.Work_Order.SVMXC__Street__c}}</p>

  <p>

  {{(function() { var ret = $F.FORMAT(&quot;{0}{1}{2}{3}{4}&quot;, $D.Work_Order.SVMXC__City__c, $F.IF($D.Work_Order.SVMXC__City__c, &quot;,&quot;, &quot;&quot;), $D.Work_Order.SVMXC__State__c, $F.IF($D.Work_Order.SVMXC__State__c, &quot;,&quot;, &quot;&quot;), $D.Work_Order.SVMXC__Zip__c); if(ret.match(&quot;,$&quot;) == &quot;,&quot;) return ret.substring(0,ret.length - 1); else return ret;} )()}}</p>

  </div>

  </div>

  </div>

  </div>

  <div class="workorder-details">

  <table border="0" cellpadding="0" cellspacing="0" width="100%">

  <tbody>

  <tr>

  <th colspan="4">

  Work Order Details</th>

  </tr>

  <tr>

  <td width="25%">

  <strong>{{$M.Work_Order.SVMXC__Top_Level__c.label}}</strong></td>

  <td width="25%">

  {{$D.Work_Order.SVMXC__Top_Level__c.Name}}</td>

  <td width="25%">

  <strong>{{$M.Work_Order.SVMXC__Order_Status__c.label}}</strong></td>

  <td width="25%">

  {{$D.Work_Order.SVMXC__Order_Status__c.label}}</td>

  </tr>

  <tr>

  <td>

  <strong>{{$M.Work_Order.SVMXC__Component__c.label}}</strong></td>

  <td>

  {{$D.Work_Order.SVMXC__Component__c.Name}}</td>

  <td>

  <strong>{{$M.Work_Order.SVMXC__Order_Type__c.label}}</strong></td>

  <td>

  {{$D.Work_Order.SVMXC__Order_Type__c.label}}</td>

  </tr>

  <tr>

  <td>

  <strong>{{$M.Work_Order.SVMXC__Product__c.label}}</strong></td>

  <td>

  {{$D.Work_Order.SVMXC__Product__c.Name}}</td>

  <td>

  <strong>{{$M.Work_Order.SVMXC__Billing_Type__c.label}}</strong></td>

  <td>

  {{$D.Work_Order.SVMXC__Billing_Type__c.label}}</td>

  </tr>

  <tr>

  <td>

  <strong>{{$M.Work_Order.SVMXC__Purpose_of_Visit__c.label}}</strong></td>

  <td>

  {{$D.Work_Order.SVMXC__Purpose_of_Visit__c.label}}</td>

  <td>

  <strong>{{$M.Work_Order.SVMXC__Customer_Down__c.label}}</strong></td>

  <td>

  {{$F.IF($D.Work_Order.SVMXC__Customer_Down__c == true, &quot;Yes&quot;, &quot;No&quot;)}}</td>

  </tr>

  <tr>

  <th colspan="4">

  {{$M.Work_Order.SVMXC__Problem_Description__c.label}}</th>

  </tr>

  <tr>

  <td colspan="4">

  {{$D.Work_Order.SVMXC__Problem_Description__c}}</td>

  </tr>

  <tr>

  <th colspan="4">

  {{$M.Work_Order.SVMXC__Work_Performed__c.label}}</th>

  </tr>

  <tr>

  <td colspan="4">

  {{$D.Work_Order.SVMXC__Work_Performed__c}}</td>

  </tr>

  </tbody>

  </table>

  </div>

  <div class="part-details">

  <table border="0" cellpadding="0" cellspacing="0" width="100%">

  <thead>

  <tr>

  <th colspan="7">

  Parts Used</th>

  </tr>

  </thead>

  </table>

  <table border="0" cellpadding="0" cellspacing="0" svmx-data="{{$D.Parts}}" width="100%">

  <thead>

  <tr>

  <th class="theader" svmx-data="{{SVMXC__Product__c.Name}}" width="16%">

  {{$M.Parts.SVMXC__Product__c.label}}</th>

  <th class="theader" svmx-data="{{SVMXC__Actual_Quantity2__c}}" width="12%">

  {{$M.Parts.SVMXC__Actual_Quantity2__c.label}}</th>

  </tr>

  </thead>

  </table>

  </div>

  <div class="part-details">

  <table border="0" cellpadding="0" cellspacing="0" width="100%">

  <thead>

  <tr>

  <th colspan="7">

  Labor Details</th>

  </tr>

  </thead>

  </table>

  <table border="0" cellpadding="0" cellspacing="0" svmx-data="{{$D.Labor}}" width="100%">

  <thead>

  <tr>

  <th class="theader" svmx-data="{{SVMXC__Activity_Type__c.label}}" width="16%">

  {{$M.Labor.SVMXC__Activity_Type__c.label}}</th>

  <th class="theader" svmx-data="{{SVMXC__Product__c.Name}}" width="12%">

  {{$M.Labor.SVMXC__Product__c.label}}</th>

  <th class="theader" svmx-data="{{SVMXC__Actual_Quantity2__c}}" width="12%">

  {{$M.Labor.SVMXC__Actual_Quantity2__c.label}}</th>

  </tr>

  </thead>

  <tbody>

  <tr>

  <td colspan="6" style="text-align:right">

  <strong>Total</strong></td>

  </tr>

  </tbody>

  </table>

  </div>

  <div class="part-details">

  <table border="0" cellpadding="0" cellspacing="0" width="100%">

  </table>

  </div>

  <div class="part-details">

  <table border="0" cellpadding="0" cellspacing="0" width="100%">

  <tbody>

  <tr>

  <td colspan="4" style="text-align:right">

  <strong>Total</strong></td>

  </tr>

  </tbody>

  </table>

  </div>

  <table border="0" cellpadding="0" cellspacing="0" width="100%">

  <tbody>

  <tr>

  <td>

  <div class="footer">

  <strong>Customer Signature:</strong> ____________________________</div>

  </td>

  <td style="text-align: right;">

  <strong> Technician: {{$F.USERNAME()}} </strong></td>

  </tr>

  </tbody>

  </table>

  </div>

</div>

<p>

   </p>

<h3 style="text-align:center">

  TERMS AND CONDITIONS</h3>

<p style="font-size:10px;font-weight:bold">

  1. The terms and conditions set out herein contain the entire agreement between the parties and the Buyer agrees that any purchase order given or delivered to the Seller shall constitute an acceptance by the Buyer to purchase on the terms and conditions contained herein and the Buyer agrees that such terms and conditions shall constitute the final agreement between the parties in respect of the sale of the products.<br />

  2. All Federal, State or Local government taxes, duties or imposts of any nature whatsoever levied, whether directly or indirectly, including any increases or variations in thenature thereof, upon the sale of the products or arising out of the agreement between the parties shall be borne by the Buyer.<br />

  3. The Sellers terms of payment are net and within thirty days from the date of invoice<br />

  4. The product is supplied on a firm sale basis only, that is to say that the Seller shall neither supply the product on an &lsquo;on approval&rsquo; basis nor shall it accept returns of theproduct for reasons other than imperfection or damage to the product from a cause or causes beyond the control of the Buyer.<br />

  5. Warranty<br />

    (a).The Seller warrants the product and parts for a period of twelve (12) months from installation, for all labour during normal working hours (8:00am to 5:00pm Monday to Friday) and 2 years warranty from date of invoice for new operator product only.<br />

    (b).The warranty contained in sub-clauses 5(a) shall lapse and be of no effect whatsoever if defects and/or malfunctions result from any of the following:<br />

    (i)improper assembly or installation, where the product was not installed by the Seller,<br />

    (ii)abuse or imperfect maintenance:<br />

    (iii)use of the product for a purpose for which it was not designed.<br />

    (c).The liability of the Seller in respect of a breach of any term or condition contained herein or any warranty implied by virtue of any applicable legislation shall be limited to the Seller&rsquo;s obligation at the Seller&rsquo;s sole discretion to either:<br />

    (i) repair the product or component part:<br />

    (ii)replace the product or component part or supply an equivalent product or component part:<br />

  6.<br />

    (a).The total of the Seller&rsquo;s liabilities under or in connection with the sale of the product (whether arising from negligence, contract or howsoever) in respect of each event or series of connected events shall be limited to the price charged by the Seller for the product and it is hereby expressly agreed by the Buyer and the Seller that the Seller shall not be liable in damages above the amount of such charge for any loss, delay or damage whatsoever caused in relation to the sale of the product, subject always to Clause 4 hereof.<br />

    (b).The Buyer agrees to indemnify the Seller against all claims arising out of installation of the product not performed by the Seller and where the Seller&rsquo;s recommended safety measures have not been complied with.<br />

  7. Until the moment of payment in full of the purchase price of the product comprised in any purchase order and until other sums due by the Buyer to the seller on any account whatsoever have been paid or satisfied in full:<br />

     (a).title to the product comprised in any purchase order shall remain the property of the seller notwithstanding the delivery of the product and the passing risk therein.<br />

     (b).The Seller may at the time recover the goods if they are in &lsquo;the Buyers&rsquo; possession and resell the product if any payment owed by the Buyer on any account whatsoever is overdue or if the Seller considers that the amount outstanding from the Buyer on the general statement of account between the parties is in excess of the credit limit which the Seller is willing to accord the Buyer and for this purpose the Seller and its servants or agents may enter upon the Buyer&rsquo;s or other premises upon which the goods are situated in order to seize the same.<br />

  <br />

  8. Any special terms of sales on the reverse side hereof are by this reference incorporated herein with the same force and effect as those set forth herein in full and shall prevail to the extent of any inconsistency with the printed terms and conditions hereof.<br />

  9. If any term or provision (or part thereof) of these Terms and Conditions of Sale is held by a Court of competent jurisdiction to be illegal, unenforceable or contrary to public policy these terms and Conditions shall be read as if such term or provision (or part thereof) was not included herein, leaving the remainder of the Agreement valid and enforceable.<br />

  10. This Agreement is to be construed in accordance with and governed by the laws of the State of Victoria.<br />

  11. Any notice authorised or required to be given shall be given by certified or registered mail, postage prepaid to either party at the address of such party as set out herein or such address as may be notified from time to time.<br />

  12. No waiver of any of these conditions by the Seller nor any time or indulgence granted by the Buyer shall prejudice any rights the Seller may have had but for any such waiver or grant of time or indulgence.</p>

<p>

   </p>

0 Likes
Reply
Highlighted
Sushi Chef
Sushi Chef

Re: Has anyone seen an output doc become blank after clicking "finalize"?

Hi Dan, I tested your source code in our devbox and it worked perfectly when I clicked on Finalize. Try in any different browser(Google Chrome) if it still doesn't work then log a case with Servicemax support they will fix the Issue.

Output

Thanks,

Srikanth.

Grill Chef
Grill Chef

Re: Has anyone seen an output doc become blank after clicking "finalize"?

Is your Org Summer 15 SP? This only seems to happen in the Orgs that have been upgraded to Summer 15 SP.

0 Likes
Reply