• sekhar passam
  • NEWBIE
  • 20 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 1
    Replies

While creating account record I want to set the status to Open by default and after creation, I want to change status to complete if linked contact records are 10 or greater than 10?
How can i insert data in to account object in visualforce page without using save button? There is any alternate for this .can we  use action support if its possible please share the concept 


Thanks&regards 
Sekhar  
Name:---------;
Phone:---------:
city:-------------;
Whenever i select city the page should be  automatically submitted;
Note: I don't have any button on Vf pafe 
 
I have one user but i want to give only some discount 500 only. if user select more than 500 discount its should not be applicable.how to restrict using formula filed 
if I change stage name in opportunity then automatically Date field(custom field) should be updated with current date using workflow?
I have some products, I have to provide different discounts for different users and it has to change dynamically based on the product.

Please help me out of this.
Thanks in advance

Regards,
Sekhar.
 


My apex class\\
public with sharing class accountobj {
    @AuraEnabled
    public static list<account> getAccountss(){
        list<account> accountss=[select id,name,phone,billingcity from account limit 100];
        return accountss;
    }


}


My component is 
<aura:component controller="accountobj">
    <aura:attribute name="accountss" type="account[]"/>
    <ui:button label="Get accounts" press="{!c.getac}"/>
     <aura:iteration var="account" items="{!v.accountss}">
        <p>{!account.name}:{!account.phone}</p>
    </aura:iteration>
    
</aura:component>

my controller js

({
    getac:function(rec) {
        var action=rec.get("c.getAccountss");
        action.setcallback(this,function(response){
      
        var state = response.getState();
        if(state === "SUCCESS"){
            rec.set("v.accountss",response.getReturnValue());
        }
                           });
    $A.enqueueAction(action);    
    }
})
 

While creating account record I want to set the status to Open by default and after creation, I want to change status to complete if linked contact records are 10 or greater than 10?