function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lizzappilizzappi 

How to merge and print labels (Barcodes) from desired records

Hello we are a non profit 501c3 using salesforce
 
We use salesforce also to track text books and recipients.
We generate a profile for each textbook and a profile for each recipient.
We check-out text books to recipients.
 
Barcode Zone generates barcodes for each record (textbooks and recipients).
I would like the ability to merge and print all the labels (Barcodes) so we place the labels on the books.
 
This will add the functionality to scan books in or out of a recipient profile.
 
Currently Barcode Zone was able to add a print label button that print one label.
<apex:page standardController="Book_Bank_Inventory__c" renderAs="pdf">
  <BarcodeZone:ACBarcodeZone Value="{!Book_Bank_Inventory__c.Name}"
  BrcdType="{!Book_Bank_Inventory__c.Barcode_Type__c}"
  rendered="true"
  />  
</apex:page> 
 
Alternatively on the visual page code we could manually add multiple values.
  <apex:page standardController="Book_Bank_Inventory__c" renderAs="pdf">
  <BarcodeZone:ACBarcodeZone Value="{!'99199-082012-P2-12'}"
  BrcdType="{!'code128'}"
  rendered="true" /> 
  <BarcodeZone:ACBarcodeZone Value="{!'99199-082012-P2-12'}"
  BrcdType="{!'code128'}"
  rendered="true" /> 
  <BarcodeZone:ACBarcodeZone Value="{!'99199-082012-P2-12'}"
  BrcdType="{!'code128'}"
We will have 2800 textbooks and the above solutions will not work.
 
Will you be able to help?
 
THANK YOU                



abdulqabdulq

Try Using Apex:repeat tag

 

<apex:repeat value = "{!Book_Bank_Inventory__c}"  var = "bb">

 

<BarcodeZone:ACBarcodeZone Value="{!bb.Name}" BrcdType="{!bb.Barcode_Type__c}" rendered="true"/>

 

</apex:repeat>

 

If this doesn't work then you might need to use a custom controller, but let me know how it goes.

 

Thanks,

Abdul