• Li Lee
  • NEWBIE
  • 30 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 11
    Replies
Hi all, 

I want to show a Modal dialog in my aura component, and I find document in Lightning Component Library, here is the link: https://developer.salesforce.com/docs/component-library/bundle/lightning:overlayLibrary/documentation
I follow the code under Display Modal topic. My code as follow: 
Lightning Application
<aura:application extends="ltng:outApp" > <aura:dependency resource="c:ModalComponent"/> </aura:application>
Lightning Component ModalComponent
<aura:component> <lightning:overlayLibrary aura:id="overlayLib"/> <lightning:button name="modal" label="Show Modal" onclick="{!c.handleShowModal}"/> </aura:component>
ModalComponentController.js
({ handleShowModal: function(component, evt, helper) { var modalBody; $A.createComponent("c:modalContent", {}, function(content, status) { if (status === "SUCCESS") { modalBody = content; component.find('overlayLib').showCustomModal({ header: "Application Confirmation", body: modalBody, showCloseButton: true, cssClass: "mymodal", closeCallback: function() { alert('You closed the alert!'); } }) } }); } })
Lightning Component modalContent
<aura:component> <lightning:icon size="medium" iconName="action:approval" alternativeText="Approved" /> Your application has been approved. </aura:component>
Visualforce Page to embed lightning
$Lightning.use("c:TestModalDialog", function() { $Lightning.createComponent("c:ModalComponent", {}, "flow-component-container"); });
But when I check Button it show follow error in Browser console.

User-added image
Please corrected me if my code is wrong and may I ask for any idea how to fixed this? 
 
  • January 13, 2021
  • Like
  • 0
Hi all,

As I as konw IE-11 with Lightning Experience ending 2020/12/31. But today when I login my Org with IE-11, I still can change to Lightning Experience. 

May I asked is this IE-11 Lightning Experience extended again? Or do I missunderstand something? 
  • January 04, 2021
  • Like
  • 0
We want to use the standard lookup search page for lookup field in our own customized component. We will call something in javascript like the following:
javascript: openLookup('/_ui/common/data/LookupPage?lknm=CF00N30000001BYw0&lkfm=editPage&lktp=…’)

We find there are many query parameters in the url such as:
  1. lkfm
  2. lknm
  3. lktp
  4. lkent
  5. Lkfield
  6. lksrch
  7. lkid
Does anybody know if there is any official document to introduce these parameters?
Will these parameters and the url keep be supported in future?
If not, is there any plan for it?
Thanks in advance.
  • December 21, 2020
  • Like
  • 0
Hi all,

I want to use one SOQL to query my own records and all records shared to me. But I don't know how to write this SOQL, do you have any idea how to write this SOQL? 

Thanks for you help.

Best wishes,
Lee
  • October 22, 2020
  • Like
  • 0

Hi all, 

After upgrade to Winter 21, I found Lightning Design System show weird in IE-11. Please see follow image.

User-added imageAnd this is my code.

<apex:page sidebar="false" lightningStylesheets="true" showHeader="false" docType="html-5.0">
    <apex:slds></apex:slds>
    <button class="slds-button">Button</button>
    <button class="slds-button slds-button_neutral">Neutral Button</button>
    <button class="slds-button slds-button_brand">Brand Button</button>
    <button class="slds-button slds-button_outline-brand">Outline Brand Button</button>
    <button class="slds-button slds-button_destructive">Destructive Button</button>
    <button class="slds-button slds-button_text-destructive">Text Destructive Button</button>
    <button class="slds-button slds-button_success">Success Button</button>    
</apex:page>
You can see all SLDS style not work.

I check Winter 21 Release Note and I found "Customize Components with Lightning Design System Styling Hooks (Beta)" update in Lightning Design System. Here is the Link: https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_slds_styling_hooks.htm

In this document I found follow content:

Styling hooks make it easy to customize component styling and express your brand, especially when working with web components and shadow DOM. For a list of component blueprints that support styling hooks, see the Lightning Design System website.

As far as I know IE-11 not support this feature, please see this link: https://developer.mozilla.org/en-US/docs/Web/CSS/var

And I try open Lightning Design System's Button component page in IE-11, but I got a blank area.

User-added image
I also found some error in Browser's console. But I don't know if it related to this case.

User-added image
Since this is a beta function may I ask how to disabled it? Or if this is a knowing issue in Salesforce? 

Best wishes,

Lee

  • October 14, 2020
  • Like
  • 0

Hi all,

I try to update Custom Settings in my sandbox org. And I meet CUSTOM_SETTINGS_LIMIT_EXCEEDED error message.
I found Custom Settings in my Sandbox allow limit is 0MB. Please see follow picture.

User-added imageMay I ask how to resolved this issue? Can I change allow limt for Custom Settings?

Best wishes,

Lee

  • September 25, 2020
  • Like
  • 0

Hi all,

Today I test my Winter 21 Sanbox, my user's profile is System Administrator, when I try to new Community, I got follow error.
User-added image

Repro Steps

Setup -> All Communities
Click new
Choose Partner Central Template
Input Name and Url
Click Create.

I already have 4 communities before Sanbox update to Winter 21.
May I ask why these happened, and how to resolved it?


Best wishes,

Lee

  • September 16, 2020
  • Like
  • 0

Hi all,

I face an issue after Summer 20 release. Currently looks like slds-icon-utility-xxx class not work in both Lightning Experience and Classic Mode.

My Sample Code

<apex:page >
    <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en">
        <apex:slds />
        <span class="slds-icon_container">
            <svg aria-hidden="true" class="slds-icon">
                <use xlink:href="{!URLFOR($Asset.SLDS, 'assets/icons/utility-sprite/svg/symbols.svg#opened_folder')}"></use>
            </svg>
             <span class="slds-assistive-text">Account Icon</span>
        </span>
        
        <span class="slds-icon_container slds-icon-utility-announcement">
            <svg aria-hidden="true" class="slds-icon">
                <use xlink:href="{!URLFOR($Asset.SLDS, 'assets/icons/utility-sprite/svg/symbols.svg#opened_folder')}"></use>
            </svg>
             <span class="slds-assistive-text">Account Icon</span>
        </span>
        
        <span class="slds-icon_container slds-icon-standard-account">
            <svg aria-hidden="true" class="slds-icon">
                <use xlink:href="{!URLFOR($Asset.SLDS, 'assets/icons/utility-sprite/svg/symbols.svg#opened_folder')}"></use>
            </svg>
             <span class="slds-assistive-text">Account Icon</span>
        </span>
    </html>
</apex:page>
Phenomenon

ClassicLightning

You can see only icon wiht slds-icon-standard-xxx class can show. May I ask you idea about this issue?

Notes: This code works fine before Summer 20 release.

Best wishes,
Lee

Best wishes,

Lee

public class GetSetDemo 
{
Private Integer AccountBalance;
     public integer getAccountBalance()
   {
       Return AccountBalance;
   }
   
       public Void setAccountBalance(Integer AccountBalance)
       {
       
           this.AccountBalance=new AccountBlance;
       }   
}


If i am going to save this compiler shows the error like Unexpected token ";"
Why this error how can we acheive this.?
We want to use the standard lookup search page for lookup field in our own customized component. We will call something in javascript like the following:
javascript: openLookup('/_ui/common/data/LookupPage?lknm=CF00N30000001BYw0&lkfm=editPage&lktp=…’)

We find there are many query parameters in the url such as:
  1. lkfm
  2. lknm
  3. lktp
  4. lkent
  5. Lkfield
  6. lksrch
  7. lkid
Does anybody know if there is any official document to introduce these parameters?
Will these parameters and the url keep be supported in future?
If not, is there any plan for it?
Thanks in advance.
  • December 21, 2020
  • Like
  • 0

Hi all, 

After upgrade to Winter 21, I found Lightning Design System show weird in IE-11. Please see follow image.

User-added imageAnd this is my code.

<apex:page sidebar="false" lightningStylesheets="true" showHeader="false" docType="html-5.0">
    <apex:slds></apex:slds>
    <button class="slds-button">Button</button>
    <button class="slds-button slds-button_neutral">Neutral Button</button>
    <button class="slds-button slds-button_brand">Brand Button</button>
    <button class="slds-button slds-button_outline-brand">Outline Brand Button</button>
    <button class="slds-button slds-button_destructive">Destructive Button</button>
    <button class="slds-button slds-button_text-destructive">Text Destructive Button</button>
    <button class="slds-button slds-button_success">Success Button</button>    
</apex:page>
You can see all SLDS style not work.

I check Winter 21 Release Note and I found "Customize Components with Lightning Design System Styling Hooks (Beta)" update in Lightning Design System. Here is the Link: https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_slds_styling_hooks.htm

In this document I found follow content:

Styling hooks make it easy to customize component styling and express your brand, especially when working with web components and shadow DOM. For a list of component blueprints that support styling hooks, see the Lightning Design System website.

As far as I know IE-11 not support this feature, please see this link: https://developer.mozilla.org/en-US/docs/Web/CSS/var

And I try open Lightning Design System's Button component page in IE-11, but I got a blank area.

User-added image
I also found some error in Browser's console. But I don't know if it related to this case.

User-added image
Since this is a beta function may I ask how to disabled it? Or if this is a knowing issue in Salesforce? 

Best wishes,

Lee

  • October 14, 2020
  • Like
  • 0

Hi all,

I try to update Custom Settings in my sandbox org. And I meet CUSTOM_SETTINGS_LIMIT_EXCEEDED error message.
I found Custom Settings in my Sandbox allow limit is 0MB. Please see follow picture.

User-added imageMay I ask how to resolved this issue? Can I change allow limt for Custom Settings?

Best wishes,

Lee

  • September 25, 2020
  • Like
  • 0

Hi all,

Today I test my Winter 21 Sanbox, my user's profile is System Administrator, when I try to new Community, I got follow error.
User-added image

Repro Steps

Setup -> All Communities
Click new
Choose Partner Central Template
Input Name and Url
Click Create.

I already have 4 communities before Sanbox update to Winter 21.
May I ask why these happened, and how to resolved it?


Best wishes,

Lee

  • September 16, 2020
  • Like
  • 0

Hi all,

I face an issue after Summer 20 release. Currently looks like slds-icon-utility-xxx class not work in both Lightning Experience and Classic Mode.

My Sample Code

<apex:page >
    <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en">
        <apex:slds />
        <span class="slds-icon_container">
            <svg aria-hidden="true" class="slds-icon">
                <use xlink:href="{!URLFOR($Asset.SLDS, 'assets/icons/utility-sprite/svg/symbols.svg#opened_folder')}"></use>
            </svg>
             <span class="slds-assistive-text">Account Icon</span>
        </span>
        
        <span class="slds-icon_container slds-icon-utility-announcement">
            <svg aria-hidden="true" class="slds-icon">
                <use xlink:href="{!URLFOR($Asset.SLDS, 'assets/icons/utility-sprite/svg/symbols.svg#opened_folder')}"></use>
            </svg>
             <span class="slds-assistive-text">Account Icon</span>
        </span>
        
        <span class="slds-icon_container slds-icon-standard-account">
            <svg aria-hidden="true" class="slds-icon">
                <use xlink:href="{!URLFOR($Asset.SLDS, 'assets/icons/utility-sprite/svg/symbols.svg#opened_folder')}"></use>
            </svg>
             <span class="slds-assistive-text">Account Icon</span>
        </span>
    </html>
</apex:page>
Phenomenon

ClassicLightning

You can see only icon wiht slds-icon-standard-xxx class can show. May I ask you idea about this issue?

Notes: This code works fine before Summer 20 release.

Best wishes,
Lee

Best wishes,

Lee

Hi there,

I got following error on Set Your Org's External Org-Wide Defaults step.

Step not yet complete... here's what's wrong:
Your external org-wide defaults aren't configured correctly. Repeat the steps to make sure they are.

I tried with two new playgrounds.
Is there any other settings except below?

1. From Setup, enter Sharing Settings in the Quick Find box, then select Sharing Settings.
2. Click Enable External Sharing Model.
3. Click Edit in the Organization-Wide Defaults area.
4. For the Opportunity and Account and Contract objects, set the Default Internal Access to Public Read Only and the Default External Access to Private. Click OK if you get any popups or warnings.
5. Click Save.

<Trailhead : Share CRM Data with Your Partners>
https://trailhead.salesforce.com/projects/communities_share_crm_data/steps/set_external_owd

Thanks for any idea.
Regards,
LinThaw
  • September 28, 2018
  • Like
  • 1