• Srikanth T
  • NEWBIE
  • 9 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
Component: 

<aura:attribute name="negotiatePrice" type="Integer" />

<table class="slds-table slds-table--bordered slds-table--cell-buffer">
                  <tbody>
<aura:iteration items="{!v.userList}" var="con" aura:id="usrLst">
                                <tr>
                                    <th scope="row">
                                        <div class="slds-truncate" title="{!con.Name}">{!con.Name}</div>
                                    </th>
                                    <th scope="row">
                                        <div aura:id="usrLic" class="slds-truncate" title="{!con.TotalLicenses}">{!con.TotalLicenses}</div>
                                    </th>
                                    <th scope="row"> 
                                   <aura:iteration items="{!v.costList}" var="cst">                                     
                                   <aura:if isTrue="{!con.Name == cst.Name}">                                   
                                   <div class="slds-truncate" title="{!cst.License_Price_Per_Month__c}">{!cst.License_Price_Per_Month__c}</div>
                                   </aura:if>
                                   </aura:iteration>
                                        </th>
                                    
                                    <th scope="row" >
                                     <div class="slds-truncate">
                                    <input type="number" aura:id="myAtt" placeholder="Enter Negotiated Price" class="slds-input inputField"  value="{v.negotiatePrice}" onchange="{!c.CalculatePrice}" /> 
                               
                                    </div>
                                        </th>
                                   
                                    </tr>   
                                </aura:iteration>
 </tbody>
                    </table>

Controller:

CalculatePrice : function(component, event, helper) {  
        
        alert('Calculate');
          var nPrice = component.find("myAtt");
          var negotiatePrice = nPrice.get("v.value");
        
         alert('negotiatePrice'+negotiatePrice);
        
    },  
Cannot read property 'get' of undefined. May i know if there are any trouble shooting points.

I have mentioned everything correct, but still i am facing the issue, may i know if there are any trouble shooting points.
Code:
Component:
<lightning:combobox name="Select Instance:" aura:id="selctOrg" placeholder="Select an Option" options="{! v.orgList }" value="{!v.selectedOrg }" onchange="{! c.handleChange }"/>
js controller:
var selectedSOrg = component.find("selctOrg").get("v.value");
Error is: [Cannot read property 'get' of undefined]
Below is the code that i had in my controller and helper.
controller:
({ doinit : function(component, event, helper) { helper.fetchSBHelper(component, event, helper); } })
Helper:
({ fetchSBHelper : function(component, event, helper) {
var sOrg = component.find("selctOrg"); var selectedSOrg = sOrg.get("v.value"); alert("selectedSOrg"+selectedSOrg);
} })
I have a visualforce page example vf1, that is calling other visualforce page example vf2.I am calling vf1 from Loginflow. when vf2 page content is updated i want to delete some records from custom settings. please let me know if you have any solution.
Component: 

<aura:attribute name="negotiatePrice" type="Integer" />

<table class="slds-table slds-table--bordered slds-table--cell-buffer">
                  <tbody>
<aura:iteration items="{!v.userList}" var="con" aura:id="usrLst">
                                <tr>
                                    <th scope="row">
                                        <div class="slds-truncate" title="{!con.Name}">{!con.Name}</div>
                                    </th>
                                    <th scope="row">
                                        <div aura:id="usrLic" class="slds-truncate" title="{!con.TotalLicenses}">{!con.TotalLicenses}</div>
                                    </th>
                                    <th scope="row"> 
                                   <aura:iteration items="{!v.costList}" var="cst">                                     
                                   <aura:if isTrue="{!con.Name == cst.Name}">                                   
                                   <div class="slds-truncate" title="{!cst.License_Price_Per_Month__c}">{!cst.License_Price_Per_Month__c}</div>
                                   </aura:if>
                                   </aura:iteration>
                                        </th>
                                    
                                    <th scope="row" >
                                     <div class="slds-truncate">
                                    <input type="number" aura:id="myAtt" placeholder="Enter Negotiated Price" class="slds-input inputField"  value="{v.negotiatePrice}" onchange="{!c.CalculatePrice}" /> 
                               
                                    </div>
                                        </th>
                                   
                                    </tr>   
                                </aura:iteration>
 </tbody>
                    </table>

Controller:

CalculatePrice : function(component, event, helper) {  
        
        alert('Calculate');
          var nPrice = component.find("myAtt");
          var negotiatePrice = nPrice.get("v.value");
        
         alert('negotiatePrice'+negotiatePrice);
        
    },  
Cannot read property 'get' of undefined. May i know if there are any trouble shooting points.

I have mentioned everything correct, but still i am facing the issue, may i know if there are any trouble shooting points.
Code:
Component:
<lightning:combobox name="Select Instance:" aura:id="selctOrg" placeholder="Select an Option" options="{! v.orgList }" value="{!v.selectedOrg }" onchange="{! c.handleChange }"/>
js controller:
var selectedSOrg = component.find("selctOrg").get("v.value");
Error is: [Cannot read property 'get' of undefined]
Below is the code that i had in my controller and helper.
controller:
({ doinit : function(component, event, helper) { helper.fetchSBHelper(component, event, helper); } })
Helper:
({ fetchSBHelper : function(component, event, helper) {
var sOrg = component.find("selctOrg"); var selectedSOrg = sOrg.get("v.value"); alert("selectedSOrg"+selectedSOrg);
} })

I am trying to spin up a community in my scratch organization using the sfdx force:source:push command.  All objects and code were pulled from my production community.

Using the push, I am able to create the community.  However, I get the "Cannot read property 'get' of undefined" error message in my Workspace Builder window.  I can navigate to other areas of the community, but cannot navigate to the Builder.

Here is a the error in the browser debug window:

Error message from debug window