Ye Meri Life Hai - Chirag Mehta

Be Good & Do Good!

Page 24 of 133

Salesforce – Apex Search with Checkbox Results

Following demo is a single Apex custom controller, two Visualforce pages and a wrapper class allowing the user to search an object by keyword (via Dynamic SOQL) and return the results in a page block table with corresponding checkboxes. Selecting one or more checkboxes and clicking the ‘See Results’ button displays the list of the selected items.

This is a very common function as you typically want to search for stuff and then process some selected stuff.

You can run this demo on Jouff Douglas developer site.

cat-screenshot

View Complete Code @ Jouff Douglas

Carry on flirting

Ack :- Nisha Samson

The reason why I smile all the time and be happy is because i carry on flirting 🙂


YOU
look in his direction and lower your eyes just as he catches your gaze. You then give him a shy smile. He in turn looks at you and runs his fingers through his hair, giving you a slight smile.

This is flirting at its subtle best. Light-hearted flirting is not only good for your ego but also good for your health!

It is important to remember that flirting may not be as open or as accepted in India as compared to the western countries.

Flirt Away

Flirting good for your health you wonder? Yes it is.

Psychologist and relationship counsellor Dr. Tushar Guha says, “Remember flirting cannot be generalised. Traditional and conservative people will never consider flirting. Having said that, there are quite a lot of open-minded, modern men and women who do resort to flirting.”

You need to know what kind of flirting you want to resort to and what the purpose of your flirting is. After all, you don’t want it to end at the end of the night, do you?

When you are flirting for fun you need to send out the right signals and let the other person know through your actions that you are just flirting for fun.

For example, you are at a fast-food joint and manage to make eye contact with a guy. You just make eye contact all through your respective meals and leave it at that. You leave once you are done, taking it no further. This is a form of very subtle light-hearted flirting. This is flirting for fun.

Light-hearted flirting is an effective ice-breaker between two people. In fact, some couples began their relationship with light-hearted flirting.
Send the Right Signals

So you want to start flirting; begin with the right body language.

For example, picture a man on the opposite table at a coffee house throwing a few appreciative glances in your direction. Your body just tightens up and you do not even smile when he looks at you (even though you may want to). The man may think that you are not interested and will not push it.

However, if you throw him a few appreciative glances in return and give him a slight smile, he may even come and talk to you.

Here are a body signals that convey more than words:

The eyes say it all

Dr. Guha says, “Eye flirting or eye contact is one of the most common ways of flirting.”

You can look at him and meet his gaze. Hold that look for about 30 seconds and then go back to what you are doing. Wait for another 30 seconds and give him another look with a small smile.

In all probability he will smile back and who knows where it will go from there.

It is important to remember that only you can and should decide how far you want the flirting to go.

Face off

Like your eyes, your face too conveys more messages than you know. A sweet, small smile, a tilt of the head, or even running your fingers gently at the edge of your hair are all signs of interest.

And your body says…

Your body language includes hand gestures and the signals that your body gives out.

If your gestures are inviting (like you may place your hand on his if you two get talking) and your body is relaxed when meeting his gaze, he will know that you are interested and comfortable flirting with him.

Also when looking at him and your body is at ease with flirting with him, he will know that you are at ease and will reciprocate your flirtatious behaviour too.

Touchy, touchy

So now that he is at your table and you are talking to him, you could inadvertently lay your hand gently over his in course of conversation.

You could also gently tap his forearm when you are laughing.

The important thing to remember here is that you need to know how to touch and where to touch him.

Remember, do this only if you are comfortable. If you are not the touchy kind of person, please do not resort to touching.

Who are you flirting with?

Who you flirt with is another very important aspect to the flirting game. Sometimes, in all haste you may end up flirting with the wrong person.

A good idea would be to observe the person you intend to flirt with very subtly. And while you may not be able to establish his character through the course of your observation, you can confer his mannerisms like the way he is talking to his friends, or the way he talks on his phone and the way he deals with people around him.

Before you flirt with anyone, you must be prepared that he could be taken aback by what he could confer as bold behaviour on your part.

All said and done, Indian women are still considered to be conservative and traditional, so if you get a surprised or cold response from a man, do not lose heart.

Look for someone who is a lot more laid-back and will view flirting just the way it should be viewed… as simple harmless fun.

Floor him!

Now that you know all there is to know about flirting, go ahead and floor the man. Just make sure that you do only what you are comfortable doing.

Flirting with your partner is good even when you are in a steady relationship or marriage. This will help you rediscover the spark in your relationship and marriage.

It will knock your partner off his feet…just the way he wants.

So flirting with your partner is okay, but if you are married or in a steady relationship, flirting with another person is not a good idea.

Even light-hearted flirting with another person, if you are married or in a steady relationship, just could lead onto something more serious.

India calling

Remember that flirting is looked down upon in our country. But, as mentioned above if the person, place and environment permits it, go ahead and flirt.

Put the Glass Down Today

Ack :- Sweta Chotalia

Professor began his class by holding up a glass with some water in it. He held it up for all to see & asked the students “How much do you think this glass weighs?”

’50gms!’….. ‘100gms!’ …..’125gms’ …the students answered.

“I really don’t know unless I weigh it,” said the professor, “but, my question is:
What would happen if I held it up like this for a few minutes?”

‘Nothing’ …..the students said.
‘Ok what would happen if I held it up like this for an hour?’ the professor asked.

‘Your arm would begin to ache’ said one of the student

“You’re right, now what would happen if I held it for a day?”

“Your arm could go numb; you might have severe muscle stress & paralysis & have to go to hospital for sure!” ….. ventured another student & all the students laughed

“Very good.

But during all this, did the weight of the glass change?” Asked the professor.

‘No’…. Was the answer.

“Then what caused the arm ache & the muscle stress?”

The students were puzzled.

“What should I do now to come out of pain?” asked professor again.

“Put the glass down!” said one of the students

“Exactly!” said the professor.

Life’s problems are something like this.
Hold it for a few minutes in your head & they seem OK.

Think of them for a long time & they begin to ache.
Hold it even longer & they begin to paralyze you. You will not be able to do anything.

It’s important to think of the challenges or problems in your life,
But EVEN MORE IMPORTANT is to ‘PUT THEM DOWN’ at the end of every day before you go to sleep…

That way, you are not stressed, you wake up every day fresh &strong & can handle any issue, any challenge that comes your way!

So, when you leave office today,Remember friend to
‘PUT THE GLASS DOWN TODAY! ‘

Salesforce – Visualforce Component to show Object Record Types

Show Object Record Type

In this article Sam presents us a Visualforce Component that would list the record types of an Object in the platform.

Now following are words from Sam …
Imagine, the Account object has two record types in the force.com platform (Record Types are created by the users based on what these objects represent on their business).

Account Record types:

  • Customer
  • Partner
In many occasions especially when developing a new wizard you need to first allow the user select what type of record they want to create and then based on that show the correct type of interface to the user.

The solution as to how you can show this to the user is rather simple, but here I actually took the time to create a re-usable component, so you and I won’t need to rewrite the code next time!

View Component and Component’s Controller Code @ http://salesforcesource.blogspot.com/2009/01/visualforce-component-to-show-object.html

Salesforce – Access Public Knowledge Base of any Salesforce Org – Bug or What ?

Following is a bit tricky code what i discovered, may be its already known to few of us ..

Following is the url to access Public Knowlede Base of any Salesforce Org, just change the org id.
http://na1.salesforce.com/sol/public/solutionbrowser.jsp?search=donkey&cid=000000000000000&orgId=00D30000000XXXX

Only Assumptions above is that
* Org to have Knowledge Base to be Enabled
* A Solution named donkey to be defined already in Org

Does Public Knowledge Base means its public to everyone in this world who uses Salesforce Org. Isnt it should be public to only users or persons relevant to that Org. Addition of any unique identifier apart form Org id to increase Validation of Invoker.

My understanding of this may be completely wrong, just correct me if am wrong.Just saw something suspicious and felt to update salesforce developers, so came up with this post !!

Blogged @ http://community.salesforce.com/sforce/board/message?board.id=discuss&message.id=8291#M8291

Salesforce – Force.com Email Services(Email To Apex)

Force.com Email Services or “email to Apex” lets you define email addresses, which can process Apex code. Send emails to Salesforce and process them with Apex code to create and update data from inbound emails.

Following sample code @ Apex Wiki shows you how an email can be used to create new tasks for a contact record with a matching email address i.e., Send an email to Salesforce with a follow-up note, will setup a task with a reminder 1 day for now.

Retrieved from “http://wiki.apexdevnet.com/index.php/Force.com_Email_Services

Salesforce – Spring ‘09 Features Released

Ack:- Sam Arjmandi

  1. Force.com Sites Improvements

    • Audit Trail:
      Now you can track all the changes made to your sites by different users.
    • Sites Robot.txt and Fav Icon:
      With this release you will be able to set a robot.txt for you force.com site which enables you to better control how search engines should index your site’s pages. Fav Icon is also a useful way of personalizing the browser in showing an icon next to the title of your website (in tabs) and also in favorites/bookmarks.
    • Standard Pages:
      Allows you to bring selected standard pages and expose them to the public via your force.com site (suitable for ideas page, etc).
    • Sites Packaging:
      With this feature we can package force.com sites, apex code, etc and install them into other instances.
  2. Force.com Web Service API Improvements

    • Improvements in the timeout limits of the callouts:
      This is potentially good when the code takes a longer time to process and bring back the results. Now we can configure it in a way to have extended timeout periods resulting in more run-time stability.
    • Also Wider range of WSDL types are supported by Spring 09 release.
  3. Database and Reporting

    • Summary Report Data Snapshots:
      Previously data snapshots were available on reports, however, with this release you can use snapshots across large amounts of data, where only the summaries will be stored, as well as create historical views of metrics, KPIs and other summary data.
    • Data Grouping Functions:
      This is actually a very useful upgrade, now you can group the entries of a report to better analyze aggregate data.
    • Delegated Data Administration:
      This feature allows you to grant permission to non-admin users to report, search, modify, transfer, share, unlock, or approve any record regardless of sharing settings on an object basis.
    • Dashboard Finder:
      This enhancement allows you to search through your dashboard items (a real time-saver!).
  4. Force.com IDE

    • Apex Code Auto-Complete in Force.com IDE:
      Finally! When you are coding in Eclipse (force.com IDE) auto-complete feature will be available to assist you with writing the code.
  5. User Interface

    • Enhanced Page Layout Editor:
      This one is my favorite enhancement, using this feature now you can create much better layouts. You can drag and drop fields and items around, “save as” a layout, leave a spot empty (blank spaces), design the mini-layout, etc.
  6. Services

    • Cross-Object Workflow:
      With this feature you can update a field on a parent record within a workflow!
    • Access to Email Logs in the Application:
      This report shows you whether your outbound emails were received or bounced back and basically gives you a comprehensive log of your outbound emails.

  7. Force.com Logic


  8. Mobile

    • Mobile Web Tabs for iPhone
      You can now create mobile-ready Visualforce Tabs for the iPhone. This enhances the client with a near-limitless method of extension – enabling you create content for the iPhone using the Visualforce user interface framework. The hybrid iPhone client that supports this functionality will be released next month.

Salesforce – Use Visualforce and Apex to Populate PDF Forms

Source : Salesforce Blog


Jesse Lorenz blogs following about how to use Visualforce and Apex to Populate PDF Forms

Does your company’s business process involve filling out PDF forms? Perhaps something like IRS Form W-4?

If so, you may be interested to learn that in addition to creating PDF documents from scratch, you can also use Visualforce and Apex to automate the process of populating third-party PDF forms. Ron Hess and I(Jesse Lorenz) recently collaborated on a project that does just that. It’s a straightforward process where all you really need to do is generate an XML file that follows Adobe’s XFDF format.

If you’re interested to learn more, we’ve documented an example that creates an XFDF file which is then used to populate a simple PDF form. Read the XFDF wiki article to learn more.

Salesforce – Displaying the Required Red Bar for a Control

Many a times Visualforce page uses a number of outputLabels and selectLists to create the functionality below.

Red Bar

<apex:pageBlockSectionItem >
    <apex outputLabel value=”Category 1″ for=”cbxlevel1″/>
    <apex outputPanel styleClass=”requiredInput” layout=”block”>
    <apex outputPanel styleClass=”requiredBlock” layout=”block”/>

    <apex:selectList value=”{!selectedLevel1}” id=”cbxlevel1″ size=”1″ required=”true”>
        <apex:selectOptions value=”{!level1items}”/>
        <apex:actionSupport event=”onchange” rerender=”cbxlevel2″/>
    </apex:selectList>
    </apex outputPanel>

</apex:pageBlockSectionItem>

Setting the selectList’s required attribute makes the select’s value required but does not, by design, display the red bar next to the label. This is perfect is it does not lock developers into Salesforce.com’s look and feel. However, to actually display the required red bar, you have to add some extra code

Ack:- Jeff Douglas

Every Satyam’ite is a Leader

Source : Forward Email

A Satyamite stating his views about Satyam financial turbulence and presenting a note on how good leaders Satyamites are

I(Satyamite) am deputed at client location and came across a very interesting conversation in cafeteria yesterday. One of my co-worker, also deputed with the same client through some lesser known two room company, mustered guts to ask me sarcastically in front of entire team, “So, Satyam is gone! What are you guys planning to do now?” In normal circumstances, I have a habit to not to reply to lose talks, but in front of entire team…. I thought I need to fix this guy’s thought process. I asked him, as my military training has imbibed in me the habit to fight till last breadth, “Who says Satyam is gone when I am very much alive here and committed to create value on behalf of my company?”. He shot back, “Hello Mr., your chairman has resigned, you guys are facing financial turbulence and you still have a face to say that Satyam is not gone!”

At this juncture, I thought of replying to this guy in his own language. I asked him, “Tell me, what will you do and where will you go if our country India was not there?” He was not prepared for this level of thought and asked back, “What a stupid question, How can India be gone, it is a country?” I asked him back, “Country! What makes a country? Land? Economy? Our Prime Minister? Our President? Our Geography? Or the PEOPLE? If our PM resigns, will you say India is gone? If our economy faces a slowdown, will you say India is gone? But yes, if the people of a country are lost for any reason, we will say that country has no meaning. Who cares of vast land of Antarctica today which has just one permanent resident, Father Georgy? Which country does it belongs to? Why does not it has any government? Why does not it has any economy? Or, how many countries were there when humans used to hunt for food in pre-historic times? Countries, Wealth, Infrastructures and booming economies are nothing but creations of efforts of PEOPLE, and they do not have any existance on their own. And the final blow was, “When one man can create Satyam as an organization of 53,000 people, why not 53,000 committed people can rebuild one SATYAM?

By now, I saw my point was well placed and he stood up and shook hands with me and murmured, “Yaar, when I used to hear from my roommate who work in Satyam that EVERY SATYAMITE IS A LEADER, I used to laugh it off. Now, I know why! ”

« Older posts Newer posts »