• riz wan
  • NEWBIE
  • 15 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 4
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 8
    Replies
I am dynamically trying to create lightning:recordEditForm by passing record Id, object name, record type id and then rendering fields using iterator.
Because of aura:iteration, all lightning:inputs have same onchange method
I want to find the id of the lightning:input which caused the onchange method to fire.

Code :
 
<lightning:recordEditForm onsubmit="{!c.beforeSave}"
                                  onsuccess="{!c.afterSave}"
                                  recordId="{!v.obj_id}"
                                  recordTypeId="{!v.rec_type_id}"
                                  objectApiName="{!v.obj_name}">
            <lightning:messages />
            <aura:iteration items="{!v.form_field_list}" var="field">
                <lightning:inputField aura:id="{!field.field_api}"
                                      fieldName="{!field.field_api}"
                                      onchange="{!c.handleInputChange}"/>
            </aura:iteration>
            <div class="slds-m-top_medium">
                <lightning:button variant="brand" 
                                  type="submit" name="save" 
                                  label="Save"/>
            </div>
        </lightning:recordEditForm>

 
User-added image
It takes long time to save this simple apex page. So long that i lost patience and closed the browser.
I have tried a few times but saw the status changing to "Saved" .
When i forcibly close the console window all changes are lost.
Tried it on latest Firefox and Chrome browsers with same result.

 
I an a newbie to salesforce, and was following workbook on apex classes.
This is what i did:
Debug-> Open Exceture Anonymous Window.
System.debug('Hello');

Unchecked "open log". Execute

Alas, i couldnt see any log entries, while the workbook says that log entries will appear.
Do i need to make changes somewhere? or
Am i doing it wrong way?
 
User-added image
It takes long time to save this simple apex page. So long that i lost patience and closed the browser.
I have tried a few times but saw the status changing to "Saved" .
When i forcibly close the console window all changes are lost.
Tried it on latest Firefox and Chrome browsers with same result.

 
I an a newbie to salesforce, and was following workbook on apex classes.
This is what i did:
Debug-> Open Exceture Anonymous Window.
System.debug('Hello');

Unchecked "open log". Execute

Alas, i couldnt see any log entries, while the workbook says that log entries will appear.
Do i need to make changes somewhere? or
Am i doing it wrong way?
 
I am dynamically trying to create lightning:recordEditForm by passing record Id, object name, record type id and then rendering fields using iterator.
Because of aura:iteration, all lightning:inputs have same onchange method
I want to find the id of the lightning:input which caused the onchange method to fire.

Code :
 
<lightning:recordEditForm onsubmit="{!c.beforeSave}"
                                  onsuccess="{!c.afterSave}"
                                  recordId="{!v.obj_id}"
                                  recordTypeId="{!v.rec_type_id}"
                                  objectApiName="{!v.obj_name}">
            <lightning:messages />
            <aura:iteration items="{!v.form_field_list}" var="field">
                <lightning:inputField aura:id="{!field.field_api}"
                                      fieldName="{!field.field_api}"
                                      onchange="{!c.handleInputChange}"/>
            </aura:iteration>
            <div class="slds-m-top_medium">
                <lightning:button variant="brand" 
                                  type="submit" name="save" 
                                  label="Save"/>
            </div>
        </lightning:recordEditForm>

 
User-added image
It takes long time to save this simple apex page. So long that i lost patience and closed the browser.
I have tried a few times but saw the status changing to "Saved" .
When i forcibly close the console window all changes are lost.
Tried it on latest Firefox and Chrome browsers with same result.

 
I an a newbie to salesforce, and was following workbook on apex classes.
This is what i did:
Debug-> Open Exceture Anonymous Window.
System.debug('Hello');

Unchecked "open log". Execute

Alas, i couldnt see any log entries, while the workbook says that log entries will appear.
Do i need to make changes somewhere? or
Am i doing it wrong way?