Ye Meri Life Hai - Chirag Mehta

Be Good & Do Good!

Search results: "ki" (page 11 of 57)

Salesforce.com – Apex Web Service Callout Using @future

Jeff

The addition of asynchronous Web service callouts to external services is a feature that developers have been requesting for quite awhile in Salesforce.com. Using the new @future annotation, your methods execute the callout when Salesforce.com has resources available. One of the great benefits is that it allows you to perform callouts during trigger executions.

Today, I developed the callouts from trigger. There are many limitations which I came across and which are documented very well by Jeff on his blog post http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/

I kept on trying to use complex data types, unless i reached Jeff post and found that only primitive data types are supported in future methods. To paraphrase, following are the points to be taken note of when using the future annotation:

  • No more than 10 method calls per Apex invocation
  • No more than 200 method calls per Salesforce license per 24 hours
  • The parameters specified must be primitive dataypes, arrays of primitive datatypes, or collections of primitive datatypes.
  • Methods with the future annotation cannot take sObjects or objects as arguments.
  • Methods with the future annotation cannot be used in Visualforce controllers in either getMethodName or setMethodName methods, nor in the constructor.

Also good note of points about asynchronous call outs can be read at Salesforce Blog

  • Like any asynchronous method. the callout must be in a static method and return a void type.
  • The system executes the asynchronous call when it has available resources – this means that you can’t assume anything about when the call will be executed.
  • The asynchronous method executes in a different transaction context than the trigger. A failure of the callout will have no effect on the transaction controlling the trigger (i.e. changes will not be rolled back). You will have to build in suitable compensation logic yourself to account for any exceptions in the callout.
  • Keep the governor limits in mind when making callouts. We are constrained by the interface provided by the remote web service. If the remote web service were to provide any kind of batch processing interface, choose that instead of making individual calls. It helps avoid hitting the governor limits and will be more performant as well since there are fewer round trips to make.

Salesforce – Adobe Flash Builder for Force.com Webinar

Force.com Adobe Flash Builder is a  jointly developed integrated development environment (IDE) that gives developers a single, powerful tool for building cloud-based rich Internet applications (RIAs).

:: View the recorded webinar on Force.com Adobe Flash Builder
http://wiki.developerforce.com/index.php/Tech_Talk:_Adobe_Flash_Builder_for_Force.com

:: Reference other resources
http://developer.force.com/flashbuilder
http://www.adobe.com/devnet/salesforce/index.html

How do I escape ampersands in batch files?

Q: How do I escape ampersands in a batch file (or from the Windows command line) in order to use the start command to open web pages with ampersands in the URL? Double quotes will not work with start; this starts a new command line window instead.

  1. ‘&’ is used to separate commands therefore you can use ^ to escape the ‘&’
  2. Note that you need to supply a dummy first argument in this case, as start will treat the first argument as a title for the new console windows, if it is quoted. So the following should work (and does here):
start "" "http://www.google.com/search?client=opera&rls=en

Also note,if there are URL encoded characters (e.g. space is encoded as %20) in the URL and it is in a batch file then ‘%’ must be encoded as ‘%%’. This is not the case in the example.

Source : http://stackoverflow.com/questions/1327431/how-do-i-escape-ampersands-in-batch-files

Datasea – Human-like reasoning to find Data Relationships

DataSea is software that tells you about things.

  • Ask it about X and it tells you about X, instead of finding hits with ‘X’ in them.
  • Ask it about X from the point of view of Y, and it will tell you about X and Y, and also things which form connections and relationships from X to Y.
  • DataSea is a data architecture and an application that gives single-step access and control. It reduces the need for navigation and clicking. It answers complex questions and makes mini-reports in one step, which can not be done with search engines. It lets you do things like make calls and send email, also in one step.

    DataSea gives answers based on your input by using human-like reasoning to find the relevant connections among data. It supports natural language and can access a wide range of data sources, including relational databases, as well as unstructured sources, such as ad-hoc notes.

    Read more on human-reasoning to find Data Releationships at http://www.datasea.com/

    Salesforce – Visualforce / Apex Code Samples

    Following is list of Apex/Visualforce code samples listed on Salesforce Wiki. These are collections of pieces of code that you think will be useful to us (Salesforce community). These are typically small (a few pages of Apex, or Apex and a few Visualforce pages, or a trigger or two) and one-off.

    If you want to instead create or join a collaborative coding project, check out Salesforce Code Share

    Source : Salesforce Wiki

    Salesforce – Checkbox in DataTable

    Displaying the check box in a data table or page block table is a general requirement in every project. with the help of wrapper class we can display the checkboxes in a data table. SrinivasaRao Pendala writes a simple and neat article on how to generate checkboxes in data table.

    Also added in the code is small javascript so that if we select the header checkbox it will select all the checkboxes.

    Read complete article @ Salesforce Wiki

    About Friends, Friendship is not about …

    Friendship is not about “I m sorry “ its about “abbe teri galti hai “

    Friendship is not about “I m there for u “ its about “kahan marr gaya saale “

    Friendship is not about “I understand “ its about “sab teri wajah se hua manhus“

    Friendship is not about “I care for u “ its about “kamino tumhe chhod ke kahan jaunga “

    Friendship is not about “I m happy for ur success “its about “chal party de saale“

    Friendship is not about “I love that girl“ its about “saalo izzat se dekho tumhari bhabhi hain “

    Friendship is not about “R u coming for outing tomorrow “ its about “ nautanki nahi, hum kal bahar ja rahe hai “

    Friendship is not about “Get well soon “ its about “ Itna piyega toh yehi hoga“

    Friendship is not about “All the best for ur career“its about “bahut hua, abhi toh switch mar saale“

    What is Google Wave?

    O’Reilly’s upcoming book Google Wave: Up and Running on Google Wave showcases

    How a wave is structured?
    How it works?
    Also it details on Robots, Gadgets, Embedded Waves, Wavelets, Blips, threaded conversation model ….

    So What Exactly Is Google Wave?

    Google Wave is a real-time communication and collaboration platform that incorporates several types of web technologies, including email, instant messaging (IM), wiki, online documents, and gadgets. In more technical terms, Google Wave is a platform based on hosted XML documents (called waves) supporting concurrent modifications and low-latency updates.

    The Google Wave user interface includes panes that dynamically update with content as users interact with waves.

    A general overview of how a wave is structured. Waves contain wavelets, which are containers for blips (messages) added by participants. Extensions, in the form of robots and gadgets augment the conversation between participants in a wave by adding different types of features and functionality to a conversation.

    Google Wave

    The threaded conversation model includes one or more threads based on replies to an initial message or replies to other replies.

    Waiting for Google Wave Invite, check the invite post @ http://www.chiragmehta.info/chirag/2009/10/03/google-wave-preview-invitations/

    Ready (Telugu Movie)

    Rating : 8/10

    Genre: Romantic Comedy

    Plot : Preparing for her wedding, Pooja (Genelia D’Souza) returns home to visit her family in India, where she meets Chandu (Ram). The handsome college student immediately falls for her and refuses to let her betrothal stand in the way of his passion. Now all he has to do is convince Pooja and her family that he’s the right guy for her, despite a case of mistaken identity and a terrible misunderstanding that leads to an accidental kidnapping.

    Really hilarious and non stop family based comedy. You will enjoy every moment.  Songs are also good and the best is cute lovely Genelia …. Love her … Genelia, I would love to date you .. lol ..

    View the movie with English subtitles at

    Happy Birthday Father Gandhi Ji ..

    There is a name that profounds too big than anyone when we think of our freedom, India’s freedom. Though we are talking about freedom fighter but the irony is that this person is known for non violence or zero violence.

    Simple, Zero violence, follower of Ahimsa principles … the none other than … my and entire India’s father .. Mahatma Gandhi.

    Today we celebrate birthday of Gandhi, my hearty wishes to his soul.

    I pray and wish that every individual on earth follows non-violence taught to us by reglious souls like Mahavira, Buddha and then practiced by leader like Gandhi.

    Happy Birthday Gandhi Ji ..

    Gandhiji

    « Older posts Newer posts »