• Marco_Valente
  • NEWBIE
  • 10 Points
  • Member since 2017
  • Solution Architect
  • ATLANTIC-TECHNOLOGIES

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Hi,
i'm using the ligthining napili communities and in self registration process i used the Site salesforce class for validating password.
My default language in communities is Italian.

The Site class in the method "validatePassword", the error message returned in english!!

Why salesforce not translating the error message? Workaround?

Thanks
Regards
i use the Version: 2.6.0 chart js. I have set the pointStyle with an image:
var icon = new Image();
icon.src = 'https://assets0.uvcdn.com/pkg/shared/favicons/password-d904f06a67a7b29d489489d3a35f548b.png';

and into dataset object set "pointStyle: icon".

This is not work in lightning with lockerService enable. Exist an workaround? another is found this problem?
Hi,
i'm using the ligthining napili communities and in self registration process i used the Site salesforce class for validating password.
My default language in communities is Italian.

The Site class in the method "validatePassword", the error message returned in english!!

Why salesforce not translating the error message? Workaround?

Thanks
Regards
i use the Version: 2.6.0 chart js. I have set the pointStyle with an image:
var icon = new Image();
icon.src = 'https://assets0.uvcdn.com/pkg/shared/favicons/password-d904f06a67a7b29d489489d3a35f548b.png';

and into dataset object set "pointStyle: icon".

This is not work in lightning with lockerService enable. Exist an workaround? another is found this problem?
I am trying to explore various concepts in lightning. My requirement is pretty simple. I have a zipped static resource with multiple images. I have used the <img> tag in the component and defaulted its src attribute to one of the images. Created a lightning button in the component definition whose action in the controller will change the 'src' attribute value to a different image. However, I am getting the below error in the console when the button is clicked and the image is not getting changed to a new one. Am I missing something here ?

Error: WARNING: AttributeSet.set(): unable to override the value for 'srcvalue=function (cmp, fn) { return fn.add($A.get("$Resource.SachinImages"),"/SachinImages/1image.jpg"); }'. FunctionCallValues declared in markup are constant.

Component definition:
<aura:component >
    <aura:attribute name="srcvalue" type="string" default="{!$Resource.SachinImages+'/SachinImages/1image.jpg'}"/>
    <img class="imgclass" src="{!v.srcvalue}" aura:id="imageid" /> <br/> <br/>
    <lightning:button onclick="{!c.buttonClickAction}" label="Click to start slide"/>
</aura:component>
Controller:
({
    buttonClickAction : function(component, event, helper) {
        var btnlabel = event.getSource().get('v.label');
        var srcval   = component.get('v.srcvalue');
        if(btnlabel == 'Click to start slide')
        {
            var changeNbr = srcval.substring(srcval.lastIndexOf('/') + 1, srcval.lastIndexOf('/') + 2); 
            var finalvalue = '{!$Resource.SachinImages' + '+' +'\'/SachinImages/' + (Number(changeNbr) + 1) +'image.jpg\'}';
            console.log('finalvalue'); -> This value is as expected.
            component.set('v.srcvalue',finalvalue);            
        }
    }    
})