Monday, May 29, 2017

New Google+ Community Launched - Nepz Solutions !!

A new Community ?

  yes, a new community specifically for who's interested in Salesforce in general & more specifically in Apex, Visualforce, Lightning & also in basic web technologies like HTML, CSS & Javascript.

click here to join - Nepz Solutions - Google+ Community

What is it for ?

  I have been blogging & publishing videos for Salesforce Developers for quite sometime. But, it looks like more of a one way communication. So, i thought to create a community where we actively discuss about various development issues & get to know about each other & help each other. Here's the few things i'm expecting to deliver through this community,

  • Tutorials
  • Share Development Tips & Tricks
  • Online Events (like coding puzzles, bootcamp, etc)
  • Weekly Hangouts
  • Personalized Training (one to one)

What is next ?

  As soon as i reach 10 members in the community, i'm going to schedule a launch event & discuss about the community & chit chat with the people to get to know about each other.

In Video ?


Thursday, February 23, 2017

Visualforce - Beyond Basics Series 50 - Easy Global Search

What is Global Search ?

In Salesforce, there's a standard global search functionality at the top Header. This will search all the text, email, phone fields in Objects & list them.


How to implement one ?

If you want to implement one, it's simple to do so. we need to use SOSL for fuzzy search on fields in specific objects.


Where is the Code ?


Any Screenshots ?




Walk through in a video ?


Visualforce - Beyond Basics Series 49 - Mark a table column as Required

How to give help text for a Table ?

In visualforce, table can be generated using PageBlockSection, PageBlockTable, DataGrid tags. If one wants to provide help text for a column, they need to use apex:facet tag.

How it will be useful to indicate Required Field ?

In some cases, developer may want to indicate a column as Required. So, it's possible to provide that in the table column header


Where is the Code ?


Any Screenshots ?



Walk through in a video ?


Wednesday, February 22, 2017

Visualforce - Beyond Basics Series 48 - Required field Help Text

How to give more emphasis on Required fields in form ?

Prevention is better than Cure. Most of the time users forget to fill in required fields in the form & realize than while saving the record.


How to prevent that ?

Giving a highlighted Help text through each section of the forms would give more emphasis on required fields. By doing so, user will fill some values & will never have any issues while saving the record.

Where is the Code ?


Any Screenshots ?




Walk through in a video ?


Visualforce - Beyond Basics Series 47 - Extend standard sObject

What is the purpose of extending the sObject ?

There's no inheritance to standard sObject. So, if one wants to extend the record, one need to create a wrapper to store the record inside it.

How to do that ?

The wrapper is a Apex Class which will have the record and other extended fields. So, in visualforce page, both standard and extended fields can be used seamlessly.


Where is the Code ?



Any Screenshots ?



Walk through in a video ?


Visualforce - Beyond Basics Series 46 - Treat each User differently

What is Personalization ?

Sometimes Visualforce page needs to behave or look differently for different set of users. This is called Personalization.

How do achieve this ?

In salesforce, we can use 'Custom Settings' to store the personalization data for User, Profile or entire Organization. We need to be very careful in not misusing this. If any data that does n't different between user, then it's App Configuration which should be stored in 'Custom Metadata'.

Where is the Code ?


Any Screenshots ?



Walk through in a video ?


Visualforce - Beyond Basics Series 45 - Keep the pages alive

What is keep-alive for the page ?

For every visualforce page, there's a timout for session, after which the session expires. This is configurable under security controls in Salesforce Setup. Normally, it will be few minutes in best secured Org.


How to prevent that ?

But, practically, you might have a visualforce page which requires more time for the User to work on it. Say, if they take 30min to configure products for an opportunity, then, they were pulled for a meeting. So, when they come back after 30 min & click save, they should be disappointed to see login page & potentially losing all the effors.

To avoid such scenarios, we can use actionPollar to poll for an empty request to server, so that session will be kept alive forever.

Where is the Code ?


Any Screenshots ?



Walk through in a video ?


Visualforce - Beyond Basics Series 44 - Inline VF Page Redirect

What is Inline VF Page ?

Inline Visualforce page means, a technique of embedding visualforce page into the main detail/edit page of standard layout for a record.

How to redirect or refresh the page ?

This inline VF Page lives inside a iframe. So, when you do redirect or reload. the detail/edit page won't get affected. you may try this now, if you haven't faced this.

Where is the Code ?



Any Screenshots ?



Walk through in a video ?


Visualforce - Beyond Basics Series 43 - Use QR Code in Page

What is QR Code ?

QR Code is the visual representation of text. It has very similar attributes to Bar Code. But, it's more powerful than it.

What are the applications ?

The main application is to scan the URL, rather than typing in the browser. And embedding Contact details, Product details for the Business.

How it will be useful in CRM System like Salesforce ?

In Salesforce, we may need to get the QR Code from external system containing lead information (or) Contact Information (or) Cases. In return, we may send QR Code to other systems which accepts the data in QR Code format. Barcode/QR Code has very important role in every business. So, converting the format between QR Code & text is vital for a Organisation.


How to implement the feature very quickly ?

It's not necessary to implement the complex algorithms required for processing QR Codes. As there are services available in the Cloud, we could reuse them.

Where is the Code ?


Any Screenshots ?




Walk through in a video ?


Visualforce - Beyond Basics Series 42 - Inline Edit with No Apex

How normally inlineEdit implemented in Visualforce ?

The best way to achieve inlineEdit for fields in Visualforce is using mode = 'InlineEdit' in PageBlock tag. This is the best and efficient way to do it. However, there's only one inconvenience, it opens up only one field for editing.
Then, user needs to click on each field to edit. So, what if user wants to edit all the fields in the row ?

How to edit all the fields in the row ?

When user double clicks a field in the row, then redirect to the same page with a Query Parameter that determines which row should be opened for Editing.


Where is the Code ?


Any Screenshots ?

Walk through in a video ?