• Vikas Singh Thakur
  • NEWBIE
  • 0 Points
  • Member since 2015
  • Force.com certified developer


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 1
    Replies
I have an lightning component which is inherit in another lightning component. So on button click , i just set the attribute value  and use this value in ui:inputNumber tag in the child cmp. Attribute value is successfuly changed but it did not rerender on the cmp When the Locker Service is enabled. it workes fine without locker service.

Ex. of my cmp:

Parent cmp :
<div>
        <aura:iteration items="1,2,3,4,5" var="item">
            <c:TestVSOptionalExtra />
          </aura:iteration>
    </div>

Child cmp:

<aura:component implements="force:appHostable,forceCommunity:availableForAllPageTypes" access="global" >
    <aura:attribute name="quantity" type="Integer" default="0"/>
    <div>
        <ui:inputNumber class="center-aligned-number" disabled="false" value="{!v.quantity}" size="2"/>
        <ui:button aura:id="clicked" press="{!c.clickEvent}"> click me</ui:button>
    </div>
</aura:component>

JS controller :
({
    clickEvent : function(component, event, helper) {
        var eventType = event.getSource().getLocalId();
        var counter = component.get("v.quantity");  
        if (eventType === 'clicked') {            
            counter++;
        }
        component.set("v.quantity", counter);
//here quantity value is changed and appears in the log but did not change on the cmp UI.
        console.log(component.get("v.quantity"));
    }
})

While it works fine if i do not put this inside any cmp even the Locker service is enabled.

How to make custom tabs default in salesforce1 mobile ?

i am trying to place a custom tab for navigation menu  in salesforce1 mobile, how to make it a default tab to be in menu? 
 String response=httpResp .getBody();
                System.debug('*** response is '+response);
            Map<String,object> deserializedMap = (Map<String,object>)JSON.deserializeUntyped(response);
                System.debug('deserializedMap value is::::'+deserializedMap);
​                 Map<string,Object> responseObj = (Map<string,Object>)deserializedMap.get('response');
Hi Here I'm able to getting Response(total key& Value)& I spilted into Key, Based on Key how  to get the vaues in List .