• Achyuth
  • NEWBIE
  • 20 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 4
    Replies
Hi All,
I used ui:inputText tag in my lightning component,
How to place the 'x' and how to clear the input text when i clicked on the 'x' symbol,
can anyone help with the example one !!

Thanks,
Chinna..
 
Hi All,
Can anyone help me on the below requirement please!!
I have an apex controller(with an argument passed), lightning component, lightning controller where as I can able to fetch the records by passing the value from the ui using lightning component...and is working fine 
I need is : i want to assign the field value to a variable in salesforce lightning controller  and assign to a variable ABC.

Please find the code:-
@auraEnabled
     public static List<Account> getAccount(Id searchKey ){
         List <Account> acclist = new  List <Account>();
         if(searchKey!= Null){
           acclist = [SELECT Id, Name, Description from Account WHERE ID =: searchKey]; 
        }         
        
        return acclist; 
======================================================
getAccountList : function(component, event, helper) {
        var action = component.get("c.getAccount");
        var search = component.get("v.searchKey");
        action.setParams({
            "searchKey": search            
        });
                
        
        action.setCallback(this, function(response){
            var state = response.getState();            
            if(state == 'SUCCESS') {
                var acclist = response.getReturnValue();
                component.set("v.Accountlist",acclist); 
                var fieldValue = component.get("v.Accountlist");                 
       console.log(JSON.stringify(fieldValue ));  // i am getting all the values based on the query.
               console.log('Value ::::::: '+fieldValue );

======================================================

the entire query result is in fieldValue now... I want to assign only the name to another value...

Can anyone Help me on this !!

Thanks in Adv.!!
Chinna.
Hi All,
i have an apex controller on account object and passing one parameter there.
In salesforce lightning, i used ui:inputtext for input field and is working fine, 
the issue is:- when i am not entering any value and pressing on enter, it is giving the records.. that is the issue i have,, 
i tried to make that field mandatory by putting required=true, but not working
Can anyone pls help on this!!
Thanks,
Chinna.
Hi All,
Can anyone help !!
How to call an apex class from Visual flows (@invocable method) ...