2019年3月28日 星期四
處理Salesforce RichText 無法 Render問題
參考連結:
https://medium.com/@toninotrip/how-to-re-render-an-apex-inputtextarea-in-visualforce-9452c8b80b57
https://andrewbcummings.wordpress.com/2013/07/19/salesforce-richtext-fail-rerender-is-not-currently-supported-with-rich-text-editing-enabled/
2019年3月25日 星期一
Salesforce執行commandbutton前出現確認視窗
Salesforce執行commandbutton前出現確認視窗
請使用以下方式才可以
請使用以下方式才可以
<apex:commandButton value="Warning" onclick="if (!confirm('Do you want to proceed?')) return false;" action="{!sort}" rerender="updateArea" />
2019年1月7日 星期一
Disable browser caching for Lightning Components
Disable browser caching for Lightning Components
- From Setup, locate the link to ‘Session Settings’
- Locate the ‘Caching’ section
- Uncheck the option to ‘Enable secure and persistent browser caching to improve performance’

URL:https://www.desynit.com/dev-zone/salesforce-development/disable-browser-caching-for-lightning-components/
2019年1月3日 星期四
Lightning Edit Form Picklist無法正常顯示問題
Lightning Edit Form Picklist無法正常顯示問題
於recordEditForm需指定RecordTypeId
且Account initial時要初始化RecordTypeId
2018年12月26日 星期三
2018年12月17日 星期一
於Salesforce Lightning中判斷使用裝置
How To Detect a Device In Salesforce Lightning Component ?
{!$Browser.isTablet} > To detect the tablet device
{!$Browser.isPhone} > To detect the user is in Mobile Phone / mobile browser
{!$Browser.isAndroid} > To detect the user is in Android device
{!$Browser.formFactor} > Returns a FormFactor enum value based on the type of hardware the browser is running on.
{!$Browser.isPhone} > To detect the user is in Mobile Phone / mobile browser
{!$Browser.isAndroid} > To detect the user is in Android device
{!$Browser.formFactor} > Returns a FormFactor enum value based on the type of hardware the browser is running on.
DESKTOP for a desktop client
PHONE for a phone including a mobile phone with a browser and a smartphone
TABLET for a tablet client (for which isTablet returns true)
PHONE for a phone including a mobile phone with a browser and a smartphone
TABLET for a tablet client (for which isTablet returns true)
Component:
<aura:component>
<aura:if isTrue="{!$Browser.isTablet}">
You are using a tablet device
( <lightning:icon iconName="utility:tablet_portrait" size="x-small" alternativeText="Indicates approval"/> ).
</aura:if>
<aura:if isTrue="{!$Browser.isPhone}">
You are using a phone
( <lightning:icon iconName="utility:phone_portrait" size="x-small" alternativeText="Indicates approval"/> ).
This message is rendered using isPhone <br />
</aura:if>
<aura:if isTrue="{!$Browser.isIPhone}">
You are using an IPhone, If it is IPhone X, _/\_ <br />
</aura:if>
<aura:if isTrue="{!$Browser.formFactor == 'DESKTOP'}">
You are using a DESKTOP
( <lightning:icon iconName="utility:desktop" size="x-small" alternativeText="Indicates approval"/> )
Browser device
</aura:if>
<aura:if isTrue="{!$Browser.formFactor == 'PHONE'}">
You are using a Phone, This message is rendered using formFactor
</aura:if>
<aura:if isTrue="{!$Browser.formFactor == 'TABLET'}">
You are using a Table device
</aura:if>
</aura:component>
App:
<aura:application extends="force:slds">
<c:DetectMyDevice />
</aura:application>
Link:http://sfdcmonkey.com/2018/01/15/detect-device-lightning-component/
訂閱:
文章 (Atom)