<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Johan Yu on Medium]]></title>
        <description><![CDATA[Stories by Johan Yu on Medium]]></description>
        <link>https://medium.com/@johanyu?source=rss-7aef0f70bf08------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EelswCRGhmuut4uFIC5ggg.jpeg</url>
            <title>Stories by Johan Yu on Medium</title>
            <link>https://medium.com/@johanyu?source=rss-7aef0f70bf08------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 08:07:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@johanyu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Tips Javascript for Visualforce Pros]]></title>
            <link>https://medium.com/@johanyu/tips-javascript-for-visualforce-pros-b1c0971d5bd3?source=rss-7aef0f70bf08------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1c0971d5bd3</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Johan Yu]]></dc:creator>
            <pubDate>Sat, 14 Jan 2017 13:16:54 GMT</pubDate>
            <atom:updated>2017-01-14T13:16:54.349Z</atom:updated>
            <content:encoded><![CDATA[<p>Visualforce has been exist for many years within Salesforce platform, and Javascript even longer exist and keep growing and being popular among developers. According to Wikipedia, JavaScript is more than 21 years old programming language.</p><p>But, can Javascript use in visualforce page? Absolutely, Visualforce can be used to create entire custom pages inside a Salesforce organisation in conjunction with many other front end technologies, such as HTML5, CSS3, including Javascript. One of the key benefits of Visualforce is tight coupling to native features of the platform, such as controller methods and data access, that would not typically be available to other front end technologies.</p><p><strong>Adding JavaScript to Visualforce Directly in Visualforce page</strong></p><p>Within &lt;head&gt; tags, add your Javascript functions there. For example:</p><blockquote>&lt;head&gt;</blockquote><blockquote>&lt;style type=”text/css”&gt;</blockquote><blockquote>html { height: 100% }</blockquote><blockquote>body { height: 100%; margin: 0; padding: 0 }</blockquote><blockquote>&lt;/style&gt;</blockquote><blockquote>&lt;script&gt;</blockquote><blockquote>var map;</blockquote><blockquote>function initialize() {</blockquote><blockquote>}</blockquote><blockquote>&lt;/script&gt;</blockquote><blockquote>&lt;/head&gt;</blockquote><p><strong>Adding JavaScript to Visualforce as Static Resource</strong></p><p>Put the Javascript in a Static Resource, then calling it from there. For example:</p><p><strong>Reference a stand-alone file</strong></p><p>Use $Resource.<em>&lt;resource_name&gt;</em> as a merge field, where &lt;resource_name&gt; is the name you specified when you uploaded the resource. For example:</p><blockquote>&lt;apex:includeScript value=”{!$Resource.ThisisJavascriptFile}”/&gt;</blockquote><p>Static resources are referenced by creating an expression that evaluates to the URL you can use to refer to the static resource. The syntax is $Resource.&lt;name&gt; where &lt;name&gt; is the name given to the resource. This will evaluate to a relative URL of /resource/&lt;timestamp&gt;/&lt;name&gt; that Force.com understands as the URL for that resource’s file. The &lt;name&gt; in the URL is the name of the resource and &lt;timestamp&gt; is the timestamp of when you last updated that resource’s file. The timestamp is important to caching, as discussed later. So to reference an image resource with the name cloud, the code would look something like this:</p><blockquote>&lt;img src=”{!$Resource.cloud}”&gt;</blockquote><p>this would evaluate to something like this:</p><blockquote>&lt;img src=”/resource/1235794002000/cloud”&gt;</blockquote><p>Similarly, a stylesheet could be referenced like this:</p><blockquote>&lt;apex:stylesheet value=”{!$Resource.stylesheet_red}”/&gt;</blockquote><p>Which would evaluate to:</p><blockquote>&lt;link href=”/resource/1235794002000/stylesheet_red” rel=”stylesheet” type=”text/css”/&gt;</blockquote><p>You would not typically care about the actual URL. What matters is simply the name of the resource — the expression language takes care of the rest for you.</p><p><strong>Reference a file in an archive</strong></p><p>Use the URLFOR function. Specify the static resource name that you provided when you uploaded the archive with the first parameter, and the path to the desired file within the archive with the second. For example:</p><blockquote>&lt;apex:includeScript value=”{!URLFOR($Resource. ThisisZipFile, ‘/folder/subfolder/file.js’)}”/&gt;</blockquote><p>Then use the functions defined within that JavaScript file within your page using &lt;script&gt; tags.</p><p>Many people prefer to add JavaScript into Static Resource as it is easier to maintain the script not all over the place and you can use it in many Visualforce page. There is no difference in term of functionality if you add it as stand-alone javascript file or as an archieve file. Personally I prefer to have stand-alone javascript file for standard internal company usage, but it is for publishing or distribution, add all files as an archive should be better idea.</p><p>Sample below using javascript to call google maps API to show latitude and longitude from 3 address stored in Salesforce custom object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*MPXT3_4XK0WimQ8Zo_xsNw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1c0971d5bd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#Lightning Tips for Visualforce Devs!]]></title>
            <link>https://medium.com/@johanyu/lightning-tips-for-visualforce-devs-365aef8b93d0?source=rss-7aef0f70bf08------2</link>
            <guid isPermaLink="false">https://medium.com/p/365aef8b93d0</guid>
            <category><![CDATA[salesforce-lightning]]></category>
            <category><![CDATA[lightning]]></category>
            <dc:creator><![CDATA[Johan Yu]]></dc:creator>
            <pubDate>Mon, 26 Dec 2016 00:24:35 GMT</pubDate>
            <atom:updated>2016-12-26T00:24:35.483Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>#Lightning Tips for Visualforce Devs!</strong></p><p>So Lighting is no longer a new things in Salesforce, it come with new UI and features, although some features in Classic is not yet available in Lightning, read here as of Winter 17 release <a href="https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/lex_gaps_limitations.htm">https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/lex_gaps_limitations.htm</a></p><p>But, this doesn’t stop us to learn and migrate to Lighting (when the time is right), all new features in every release more on Lightning then Classic.</p><p>As a developer, we have been use Visualforce for many good years, but now Lightning, what we need to to?</p><p><strong>1. Learn with Trailhead</strong></p><p>Start with Trailhead is a wise decision. There are many modules in Trailhead teach us about lightning, from migration to lightning, lightning app, lightning component and many more.</p><p><strong>2. Read Documentations</strong></p><p>Salesforce provide tons of documentation on Lightning. This document describe what is Lightning Component Framework <a href="https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/intro_framework.htm">https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/intro_framework.htm</a></p><p>The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth.</p><p>The framework supports partitioned multi-tier component development that bridges the client and server. It uses JavaScript on the client side and Apex on the server side.</p><p>Read FAQ</p><p>This article provide complete Q and A between Lightning and Visualforce page — <a href="https://developer.salesforce.com/page/Lightning_FAQ#Visualforce_and_Lightning">https://developer.salesforce.com/page/Lightning_FAQ#Visualforce_and_Lightning</a></p><p><strong>3. Transition to Lightning</strong></p><p>Before we get too far into comparing Visualforce Page to Lightning Components, let’s take a minute to discuss the new Lighting Experience and how it fundamentally changes the way we work in Salesforce.</p><p>The UI that we have been using for years is now being branded as the “Salesforce Classic” UI. This is where Visualforce reigned supreme — Salesforce Classic is a page-based architecture where we had long, scrolling pages of data, and Visualforce components were designed to recreate the look and feel of the very same components that we saw in the out-of-the-box UI.</p><p>There are many questions that have to be asked before making the transition to Lightning, one of the biggest ones being, “What happens to my existing Visualforce pages?”</p><p><strong>4. Enable Lightning Experience</strong></p><p>Great! You’ve decided you’re ready to switch to Lightning Experience. First, we recommend that you develop a strategy to guide your rollout. Then, when the time is right, here’s how to enable the new user interface. Ideally you should test this in a sandbox with your key users and notes down all the gap, particularly on features gap, whether it is Salesforce default features or custom features such as Visualforce page.</p><p>Things like formula field, workflow, validation rules, assignment rules, Process Builder, Flow, trigger, should not effect in this transition.</p><p><strong>5. Start to Code</strong></p><p>Understand available tool for you to start code for Lightning Component, you can start with Developer Console and select File — New — Lightning Component, from here you can define the Component, Controller, Helper, Style / css, Documentation, Renderer, Design, Svg. If you notice, Javascript is mainly use here. So make sure to sharpen your Javascript skill for lightning. But the good news is that there are tons of tutorials for coming up to speed on JavaScript and many developers already have JavaScript experience from non-Salesforce development work. Additionally, because JavaScript is so widely used, assistance and common errors that occur are easily found on the internet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=365aef8b93d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started as Salesforce Developer]]></title>
            <link>https://medium.com/@johanyu/getting-started-as-salesforce-developer-66c37cbb28e?source=rss-7aef0f70bf08------2</link>
            <guid isPermaLink="false">https://medium.com/p/66c37cbb28e</guid>
            <category><![CDATA[dreamforce]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Johan Yu]]></dc:creator>
            <pubDate>Fri, 23 Sep 2016 09:35:50 GMT</pubDate>
            <atom:updated>2016-09-23T09:37:32.034Z</atom:updated>
            <content:encoded><![CDATA[<p>It is much easier to learn how to code in Salesforce platform nowadays, with thousands of resources available online. But here is the step by step for you to get started:</p><p><strong>1. Create Developer Edition org.</strong><br>It is FREE, and will be always available (as long as you keep using it) — I have a 12 years DE org and still working. Developer Edition will have equivalent features with Enterprise Edition, except it only provide you 2 licenses and limited storage. Follow this link to create your personal DE org. <a href="https://developer.salesforce.com/signup">https://developer.salesforce.com/signup</a></p><p><strong>2. “Force.com Platform Fundamentals” ebook</strong><br>Again this is also FREE, download the PDF file from here <a href="https://developer.salesforce.com/docs/atlas.en-us.fundamentals.meta/fundaments">https://developer.salesforce.com/docs/atlas.en-us.fundamentals.meta/fundaments</a><br>You will learn from declarative capability within Salesforce platform, from basic database concept, build sample app, security setting, and many more.</p><p><strong>3. Developer Library</strong><br>Once you have the basic of Salesforce platform, declarative capability to build app in Salesforce, continue to download more eBooks from Developer Library, again all this resources are free <a href="https://developer.salesforce.com/page/Force.com_Books">https://developer.salesforce.com/page/Force.com_Books</a><br>The library contain book from Force.com Fundamentals, Lightning Experience, Salesforce1 app, and many more.<br>In this site, you also can buy books authored by Community Authors</p><p><strong>4. Developer Group meetup<br></strong>Find and attend Salesforce Developer Group meetup in your area. Salesforce Developer Group meetup available in many countries and cities, from United States to India, from San Francisco to Bangalore. You can search them from <a href="http://www.meetup.com/">http://www.meetup.com</a></p><p><strong>5. Trailhead<br></strong>This is the fun way to learn Salesforce. You can start from Developer Beginner trail — <a href="https://trailhead.salesforce.com/trail/force_com_dev_beginner">https://trailhead.salesforce.com/trail/force_com_dev_beginner</a>, continue to Developer Intermediate trail <a href="https://trailhead.salesforce.com/en/trail/force_com_dev_intermediate">https://trailhead.salesforce.com/en/trail/force_com_dev_intermediate</a> and keep going on.<br>In some modules, you need to hands-on to write code in Salesforce to pass the module, then you will get badges for every module you passed.</p><p>Recently, there are new Superbadges trail, you need to spend 4–8 hours hands-on to complete each of them. If you are developer “Apex Specialist” is mandatory, get it from here <a href="https://trailhead.salesforce.com/en/super_badges/superbadge_apex">https://trailhead.salesforce.com/en/super_badges/superbadge_apex</a></p><p><strong>6. Salesforce Developer Discussion Forums<br></strong>Hit a road block when write apex trigger, apex class, test method and etc., go to <a href="https://developer.salesforce.com/forums/">https://developer.salesforce.com/forums</a> to ask your question, in minute’s developer from around the world will help you answer your question. Make sure you put clear question, what is the error message, snippet of your code and screenshot when possible.<br>After received many answer from community, it is time for you to give back to community by answering other developer questions.</p><p><strong>7. Stack Exchange</strong><br>Another popular forum to ask question to community from Stack Exchange, there is a specific site in Stack Exchange just for Salesforce related <a href="http://salesforce.stackexchange.com/">http://salesforce.stackexchange.com/</a></p><p><strong>8. Certification<br></strong>Prove your developer skill to your future employers. You need to pay small amount of money to take this test and you also need to maintain your certification in every release. You can attend the exam online with camera, or go to exam center available near in your city.<br>Register for exam here: <a href="http://certification.salesforce.com/platform-developers">http://certification.salesforce.com/platform-developers</a></p><p><strong>9. Developer Forest </strong><a href="http://twitter.com/Dreamforce"><strong>@Dreamforce</strong></a><strong><br></strong>Attend Dreamforce 2016 in San Francisco Oct 4–7. Make sure to spend your time network with other developers, MVPs, and Salesforce product manager. Checkout the schedule here <a href="https://developer.salesforce.com/dreamforce">https://developer.salesforce.com/dreamforce</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aF2ShufTjCLWU_DQy1eYtQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hL4DF8hH2Elb-Eu5WsSAJA.jpeg" /></figure><h3>This is the Power of Community!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66c37cbb28e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simply Salesforce]]></title>
            <link>https://medium.com/@johanyu/simply-salesforce-7d52020db875?source=rss-7aef0f70bf08------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d52020db875</guid>
            <dc:creator><![CDATA[Johan Yu]]></dc:creator>
            <pubDate>Sun, 01 Jun 2014 18:07:47 GMT</pubDate>
            <atom:updated>2014-06-01T18:07:47.531Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d52020db875" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>