• Tatiana Carpiuc
  • NEWBIE
  • 20 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 14
    Replies
var field1= component.find('field1');
var field2= component.find('field2');
var isValid = true;

if(!field1 || field1.get('v.value').length === 0) {
            field1.set("v.errors", [{message:"Error message"}]);
            isValid = false;
 } else {
            field1.set("v.errors", null);  //  here seems to be a problem..doesn't go to the nex line of code   
 }
if(!field2 || field2.get('v.value').length === 0) {
            field2.set("v.errors", [{message:"Error message"}]);
            isValid = false;
 } else {
            field2.set("v.errors", null);     
 }

Even both, the red border and error message, are removed doesn't go to the next line.
Someone has any idea?
Hi,

I have a nested aura:iteration like this:

<aura:iteration items="{!v.results}" var="res">                  
        <tr class="slds-hint-parent">
             <aura:iteration items="{!v.ColumnsNameArr}" var="colName">
                  <td>
                          <div class="slds-truncate" ><a href="javascript:void(0);">{!res[colName]}}</a></div>
                  </td>
               </aura:iteration>                    
            </tr>
   </aura:iteration>

How can I write correct {!res[colName]}? It is possible to do something like this in lightning?

Thank you.
Hi,  I try to populate a picklist which depends on the value from another picklist like Filter List(design resources). Do you have any ideea how can I do this? I need to do it in design resources.
var field1= component.find('field1');
var field2= component.find('field2');
var isValid = true;

if(!field1 || field1.get('v.value').length === 0) {
            field1.set("v.errors", [{message:"Error message"}]);
            isValid = false;
 } else {
            field1.set("v.errors", null);  //  here seems to be a problem..doesn't go to the nex line of code   
 }
if(!field2 || field2.get('v.value').length === 0) {
            field2.set("v.errors", [{message:"Error message"}]);
            isValid = false;
 } else {
            field2.set("v.errors", null);     
 }

Even both, the red border and error message, are removed doesn't go to the next line.
Someone has any idea?
Hi,

I have a nested aura:iteration like this:

<aura:iteration items="{!v.results}" var="res">                  
        <tr class="slds-hint-parent">
             <aura:iteration items="{!v.ColumnsNameArr}" var="colName">
                  <td>
                          <div class="slds-truncate" ><a href="javascript:void(0);">{!res[colName]}}</a></div>
                  </td>
               </aura:iteration>                    
            </tr>
   </aura:iteration>

How can I write correct {!res[colName]}? It is possible to do something like this in lightning?

Thank you.
Hi,  I try to populate a picklist which depends on the value from another picklist like Filter List(design resources). Do you have any ideea how can I do this? I need to do it in design resources.

Hello,

We can add a datasource onto the attribute in the design resource, like this:
<design:attribute name="Name" datasource="value1,value2,value3" />

How can I use a dynamic datasource instead of hardcoding the values.

Thanks,

Devendra 

I have created an custom component and I am integrate it with Lightning app builder but not able to add dynamic picklist values on app builder page for that component.