Tuesday 17 September 2013

Barcode pdf

11/9/12 only works with EAN-13 barcode at the...
https://docs.google.com/document/pub?id=1v bIk4JsJ4Kv uMy v MtK4zQskBjm8eoGsciwBTBF2ZYNc
only works with EAN-13 barcode at the...
Salesforce Barcode
Ver 1.01
- Introduction
The Salesforce barcode application is a light-weight, native application designed to generate barcode
in Salesforce (as Figure 1 shows).
- No custom object needed.
- Work with all standard and custom objects.
- 100% native,does not need any external resources or host server.
- Easy to integrate with standard Salesforce page, only needs to provide code and
description(optional).
- Very fast, no need to generate the barcode image.
- Compatible with most of modern browsers, like IE6.0,7.0,8.0,Firefox 2.0,3.0 and above.
- Work with professional,enterprise and unlimited edition.
Figure 1. Salesforce Barcode
- How it works
The barcode application itself is in a managed package, which will install all things you need to run
the application. It also includes a demo visual force page to show you how to generate the barcode
with standard Salesforce page.
The theory behind the barcode application is very simply. The visual force page will load the code and
description, which you need to provide, generate all necessary HTML, CSS and Javascript code,
which eventually will be used to 'make up' the barcode (not draw an image).
- Demo Visual Force Page
11/9/12 only works with EAN-13 barcode at the...
https://docs.google.com/document/pub?id=1v bIk4JsJ4Kv uMy vMtK4zQskBjm8eoGsciwBTBF2ZYNc 2/5
After you installed the Salesforce Barcode package, you will find there are two new custom fields for
Products object, S4SBarcode__Code__c and S4SBarcode__Code_Desc__c. Also, there is a new visual
force page called MyBarcode is available. Add these two custom fields and the visual force page into
the Products object page layout, provide the value to these field, and then you will see the barcode
displays as figure 1 shows.
If you don't know how to add custom fields and visual force page into the page layout, please read
'Barcode visual force page' section, or consult your Salesforce admin.
- Test drive or free trial
Because the nature of the product, there is no test or free trial for the barcode application.
However, we do have video demonstrations on our website www.sales4s.net. Those videos covers all
aspects of our barcode applications, and if you still have questions, please feel free to contact us via
our website.
- Limitations
- Only works with EAN-13 barcode at the moment.
- Needs to create visual force page (we do provide creating visual force page service for extra
charge). Don't be afraid with creating visual force page :), it ONLY takes one minute! See following
"Barcode visual force page" section.
- Barcode visual force page
Barcode works on visual force page. For each object (like Product), you need to add the barcode
visual force page into the object page layout (or the record detail page ). If you want to display
barcode on multiple object (like Product and Account), then you will need totally two barcode visual
force pages( one for each object).
There are three steps to display the barcode on your standard record detail page:
1. Add two custom fields into the object which you want to display the barcode, and then,
2. Create a visual force page to generate the barcode, and then,
3. Add the visual force page into the page layout.
Step 1: Add custom fields
Barcode needs to read code and description in order to generate the barcode. Therefore, you need to
have two fields to hold the code and description. Please note, both fields need to be Text data type
(as Figure 2 shows).
11/9/12 only works with EAN-13 barcode at the...
https://docs.google.com/document/pub?id=1v bIk4JsJ4Kv uMy vMtK4zQskBjm8eoGsciwBTBF2ZYNc 3/5
Figure 2. Creating custom fields
In the above screen shot, I have created two custom fields "Code" and "code desc" for
the Products object.Please consult your Salesforce administrator if you do not know how to create
custom fields.
Step 2: Create a visual force page
Thanks for easy use interface of Salesforce, creating a visual force page has never be easier. Go to
Setup->App Setup->Develop->Pags, click New button to create a new visual force page (as Figure 3
shows).
Figure 3. Create a new visual force page
Add the label and name on the top of the page by whatever you want, then in the following example,
I will create a visual force page for the Product object as figure 4 shows.
Figure 4. Make the barcode visual force page works for Product object
Delete all the code, paste following code into the text area.
<apex:page showheader="false" standardcontroller="product2">
<body style="background-color:white;">
<c:Barcode code="{!product2.S4SBarcode__Code__c}" desc="
{!product2.S4SBarcode__Code__c}" />
</body>
</apex:page>
As you see, only five lines code will make this barcode visual force page. The first line tells Salesforce
you want to link this visual force page with Products object. The second line set the page
backgound color as white. The thrid one tells barcode component the names of your code custom
field and description custom field. The last two lines are static, so don't need to change them at all.
As I highlighted in red in above code, Product2 is object name, and custom fields names Code__c
and code_desc__c are highlighted in green. All you need to do for your own object is to replace the
object name and custome fields names.
Something to note:
1. Your object name is not always what you see from the Salesforce UI. For example, the
Products object's name is Product2 rather than Product. If you don't know the object name, please
consult your Salesforce admin.
2. Your always need to add "__c" to the end of custom fields name. So, the "Code" ends up like
"Code__c".
Save the page, and then the product barcode visual force page is ready to go.
Step 3: Add the visual force page into the page layout
Go to the object page layout setting. Following my example, there is products page layout as figure 5
shows.
11/9/12 only works with EAN-13 barcode at the...
https://docs.google.com/document/pub?id=1v bIk4JsJ4Kv uMy vMtK4zQskBjm8eoGsciwBTBF2ZYNc 5/5

Figure 5. Setting up page layout
As you see from the top of the page layout, after you created barcode visual force page for the
Products object, you will see there is an item called "Visualforce Pages" comes up. Click the
"Visualforce Pages" and you will find the visual force page you just cretaed is displayed on the right
hand side. Add the visual force page to your page layout by drag and drop it into an area.
If you don't know how to manage the page layout, please consult your Salesforce admin.
Done, that's all we need to do to make a barcode to display on the salesforce page. There are some
steps involved, but it will only takes mins to do once you are familiar with it. We also can help you to
create the visual force page and add it to the page layout with extra charge.
- About Us
www.Sales4s.net is managed by LJH Technology Consulting, a small software development team in
Sydney, Australia. Focusing on Salesforce.com and its force.com platform, we aim to help customer
to maximize their Salesforce investment and extend its usage beyond CRM.
- Support
If you have any problem with using our product. Please go to www.sales4s.net and visit support page
to log in our customer support portal. From customer support portal, you can log a case or browse
solutions.
Please note, we do not provide support agreement to our products. It means the product is sold as it
is, and we do not guarantee this application is bug free. However, for both our and customers
benefits, we will try to solve all support cases as soon as possible, but we can not provide a time
frame for any support case.
Published by Google Drive – Report Abuse – Updated automatically every 5 minutes

No comments:

Post a Comment