• Chicloud
  • NEWBIE
  • 25 Points
  • Member since 2015

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 12
    Replies
Hi Guys!

I develop a lightning component but the force:showToast function it's not working when I put the lightning component embed in a visualforce page. But works out of visualforce page.

Someone knows if this operation disrupts the function showToast?
How do I make this works embed in visualforce?

Thanks!
Pretty simple.. after the component is rendered set focus to the first field which is the RTE.. A common user request..
<lightning:inputRichText value="{!v.svcNote.Body}" aura:id="inputRT"/>

doneRendering : function(cmp, event, helper) {
{ try { cmp.find("inputRT").focus(); 
} catch (e) {
 console.error('grrrrrr cant even focus on an rte='+e); 
}
yields in the console...
lightning:inputRichText$controller$focus [Cannot read property 'focus' of null]

Can do this is js or jquery in 2 seconds but trying to figure out the locker service friend way..

Thanks!



 
I have a lightning component embedded in a Visualforce page in the service cloud console in SFDC Classic utilizing lightning:out

Previously we were using. a jquery toastr plugin to show.. well.... a toast message as none of the native ie.. xxxx:showToast methods are avaible outside of one.app.

Everything is working fine but along comes our friend locker service.. spoooky..... Of course this isn't one of the dozen libraries listed as supported by locker service.  

I'm wondering how people are showing toasts in a "locker service" friendly way in this situation since we have no native way to do this outside of one.app? I mean surely people can't be using javascript alerts?

The only thing I can think of is to send an event to the parent visualforce page with json in a parm.. have it display the toast since were are not in the locker service box... if it's a confirmation.. have the vf respond back with an event to the lightning component.... Talk about over-architecting....

The seems like way too much work to display a simple toast and 0 business value add?  Anyone doing anything different in this situation?

Thanks so much.

 
Hello all.

This is in the context of SFDC Classic / Service Cloud Console.. using a VFPage.. and utilizing a component with syntax  such as..

$Lightning.use("c:appname", function() {$Lightning.createComponent( compname... blah blah blah

After really looking at this thing... 1 main question and that triggered a broader question.

1. How do I set focus on within this RTE after the component finishes rendering.. I just can't seem to get its element as its markup is much more complex then any other ui:xxx component. ie. new iframe / html tag / body.. etc.  Surely someone must have had to do this?

2. What exactly is this component. It appears that, as .. it has been for a while.... SFDC is using CKEditor behind the scenes. I've been getting complaints from users in which is seems like decades of the inability to do simple things such as change the font size. I would have expected, by now, in this new lightning world, some additional features on this RTE. I'm not seeing it.  For being 2016 the base functionality seems really really weak unless I'm missing some ability to pass settings to CKEditor to show additional toolbar options. Anyone know of a way to do that or are people just bypassing ui:inputRichText and rolling their own solution? I'm trying to stick with native ui components as much as possible but this one just doesn't seem to fit my users needs at all.



 

My question is over the Cloud Craze guest user login..We are using Cloud craze for our new project and have set up all the configurations as well and according to it , to make a guest user login we need to select the page (CCSiteLogin) in Login and Registration in Community Management. We have done so but whenever user is logging in using the site URL is redirecting many times and giving the below result in URL :-

https://beedev-lolanimalnutrition.cs67.force.com/bee/ccrz__CCSiteLogin?startURL=%2Fbee%2Fccrz__CCSiteLogin%3FstartURL%3D%252Fbee%252Fccrz__CCSiteLogin%253FstartURL%253D%25252Fbee%25252Fccrz__CCSiteLogin%25253FstartURL%25253D%2525252Fbee%2525252Fccrz__CCSiteLogin%2525253FstartURL%2525253D%252525252Fbee%252525252Fccrz__CCSiteLogin%252525253FstartURL%252525253D%25252525252Fbee%25252525252Fccrz__CCSiteLogin%25252525253FstartURL%25252525253D%2525252525252Fbee%2525252525252Fccrz__CCSiteLogin%2525252525253FstartURL%2525252525253D%252525252525252Fbee%252525252525252Fccrz__CCSiteLogin%252525252525253FstartURL%252525252525253D%25252525252525252Fbee%25252525252525252Fccrz__CCSiteLogin%25252525252525253FstartURL%25252525252525253D%2525252525252525252Fbee%2525252525252525252Fccrz__CCSiteLogin%2525252525252525253FstartURL%2525252525252525253D%252525252525252525252Fbee%252525252525252525252Fccrz__CCSiteLogin%252525252525252525253FstartURL%252525252525252525253D%25252525252525252525252Fbee%25252525252525252525252Fccrz__CCSiteLogin%25252525252525252525253FstartURL%25252525252525252525253D%2525252525252525252525252Fbee%2525252525252525252525252Fccrz__CCSiteLogin%2525252525252525252525253FstartURL%2525252525252525252525253D%252525252525252525252525252Fbee%252525252525252525252525252Fccrz__CCSiteLogin%252525252525252525252525253FstartURL%252525252525252525252525253D%25252525252525252525252525252Fbee%25252525252525252525252525252Fccrz__CCSiteLogin%25252525252525252525252525253FstartURL%25252525252525252525252525253D%2525252525252525252525252525252Fbee%2525252525252525252525252525252Fccrz__CCSiteLogin%2525252525252525252525252525253FstartURL%2525252525252525252525252525253D%252525252525252525252525252525252Fbee%252525252525252525252525252525252Fccrz__CCSiteLogin%252525252525252525252525252525253FstartURL%252525252525252525252525252525253D%25252525252525252525252525252525252Fbee%25252525252525252525252525252525252Fccrz__CCSiteLogin%25252525252525252525252525252525253FstartURL%25252525252525252525252525252525253D%2525252525252525252525252525252525252Fbee%2525252525252525252525252525252525252Fccrz__CCSiteLogin%2525252525252525252525252525252525253FstartURL%2525252525252525252525252525252525253D%252525252525252525252525252525252525252Fbee%252525252525252525252525252525252525252Fccrz__CCSiteLogin%252525252525252525252525252525252525253FstartURL%252525252525252525252525252525252525253D%25252525252525252525252525252525252525252Fbee%25252525252525252525252525252525252525252Fccrz__CCSiteLogin%25252525252525252525252525252525252525253FcartID%25252525252525252525252525252525252525253D

Please help..!!

 

 

Whenever I update 'Update' in Lightning Components, I get this message "Lightning components require My Domain. Please contact your system administrator for more information". Please help me out with this.
Hi Guys!

I develop a lightning component but the force:showToast function it's not working when I put the lightning component embed in a visualforce page. But works out of visualforce page.

Someone knows if this operation disrupts the function showToast?
How do I make this works embed in visualforce?

Thanks!
Account

An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com! 

Error ID: 1210355263-39782 (1077935847)



1210355263-39782 (1077935847)
I am gettig an unauthorized error when i am using lightning components in vf page using lightning out and publishing it through sites. While investing i found that it is because lightning.out.js is send an ajax request and salesforce is rejecting it. 

Whats the solution ???
I am implementing lightning design system and bootstrap at the same time in lightning component, But unable to get the desired UI in responsive mode. 
Can i use both in lightning component.
I have one date field on lightning component. After clicking on calendar icon, the calendar opens but the page scrolls down.

Thanks,
 
Hi, I have created a visualforce page with Lightning Design System. I have added various fields like input, picklist, radio buttons etc. I got the look and feel of LDS in both classic and Lightning mode using below code. 
<div class="slds-form-element">
    <label class="slds-form-element__label" for="text-input-01">Input Label</label>
    <div class="slds-form-element__control">
      <input id="text-input-01" class="slds-input" type="text" placeholder="Placeholder Text" />
    </div>
  </div>


Now I am trying to code such that it works fine in classic and Lightning mode. I need to bind the LDS fields with some object fields as we do in classic mode. 
<apex:inputField value="{!obj.fieldApiName__c}">

I am not seeing any document/help from salesforce to proceed on this. Any help on this will be highly appreciable.
Thanks,
can we have different picklist values based on logged in user country?...for example

I have a picklist field called "unit of measurement" in Account object having values (m,cm,km,mm). The requirement is if thailand user logged in , i just need to see (m,cm,km). i don't want mm to be displayed for those users. and for all other users picklist values should be (m,cm,mm). Record types are global for all the users....it should be implemented in Account standard page layout.
please suggest a solution for this other than RECORD TYPE.
Hello, I am trying to use "force:inputField" to create type-specific input component implementation based on the data type to Create Account Record. 

Here is what I did : 

In cmp file : 

<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<aura:attribute name="account" type="Account" default="{ sobjectType: 'Account' }"/>
 <force:inputField value="{!v.account.Name}" />

In Controller :
doInit: function(component, evt, helper) {
         var action = component.get("c.getAccount");
        action.setCallback(this, function(a) {
            console.log(a.getReturnValue());
                component.set("v.account", a.getReturnValue());
            
        });
        $A.enqueueAction(action);
    },

I can see the v.account value if I use ui:inputText, so it is not the problem of javascript or apex code. I did not got any error,  only a blank page with nothing in html markup, the javascript function is not event executed. 

Please help me ! Thanks a lot 
I spent a lot hours during the day rebooting eclipse.

It usually starts working fine, but a couple of times after polling changes to server, it gets blocked. Sometimes I have waited to see how long does it takes, and after 20 minutes I have desisted. Then I reboot eclipse, and it works fine again ... only 2 or 3 times.

Any suggestion?

I use to leave aside the eclipse and work directly on salesforce, but I'd preffer working on eclipse.