• Atla Masthanaiah
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 18
    Questions
  • 3
    Replies
How to create dynamic visual force page. And how to embaded it.I want Example.(I have Objct customar. and  address fiels Click on this field display multipul fields how to achive it)?

Thanks
how  to populate fields data in sfdc (i have obj A and some fields like status,description,state,pincode,phone,email,name if my conditions is name,email,phone fields are not populate and other fields are populate how to achieve it)
I have one picklist field status.We write trigger on field status= closed_converted, and same fiels changed to status =closed_not converted using workflow.PlS tel output.And what is the order of execution.
How to use of list custom setting? With an examples? test class And explain neetly? 
How to Use foreign key and  expalin? It is posible invidual objects?
How to achive soql and dml errors in test class? (we write a test class soql and dml errors arrive how to achive it)
 I have one object like Patient__c. This object contain some fileds.And create one VF tab Patient. Using this object to create a vf page and create some buttons like save and edit nad delete. But I am create a vf page but did not work whith save ,edit,delete buttons how to achive it.

<apex:page standardcontroller="Patient__c" sidebar="false">
    <apex:form >
        <apex:tabPanel>
            <apex:tab label="Patient">           
    <apex:pageBlock title="patien page">
        <apex:pageBlockSection >
        <apex:inputField value="{!Patient__c.name}"/>
         <apex:inputField value="{!Patient__c.Address__c}"/>
        <apex:inputField value="{!Patient__c.Age__c}"/>
         <apex:inputField value="{!Patient__c.City__c}"/>
        <apex:inputField value="{!Patient__c.DateTime__c}"/>
         <apex:inputField value="{!Patient__c.Gmail__c}"/>
        <apex:inputField value="{!Patient__c.Phone__c}"/>
         <apex:inputField value="{!Patient__c.RegNumber__c}"/>
        </apex:pageBlockSection>
        </apex:pageBlock>
                <apex:commandButton value="save" action="{!save}"/>
         <apex:commandButton value="Edit" action="{!Edit}"/>
          <apex:commandButton value="Exit" action="{!delete}"/>
                </apex:tab>
            </apex:tabPanel>
    </apex:form>
</apex:page>


Thanks
How to create vf tab and how to perform operations (Like insert, Udate, Delete,Pagination,seaarch operations) ?

Thanks
I have 6 millions recods.Those records upload into external system to salesforce how to achive it ?
 
I have 6 millions recods.Those records insert into external system to salesforce how to achive it ?

Thanks
I have one object and 100 users one trigger will be fire. 50 users trigger will be fire and 50 users trigger will not be fire how to achive it ( Through Programing )
I have one profile. It contain A, B, C RecordTypes and two users( U1,  U2). one user (U1) access (A,  B , C)all record types and another user (U2) Not access (A, B) all record types.But User (U2) access ( C )  recordType how to achive it (Through Programing)

Thanks
trigger afterupdatecon on Account (after insert){
list<id> accid=new list<id>();
    list<contact> con=new list<contact>();
    map<id,account> oldmap=trigger.oldmap;
    map<id,account> newmap=trigger.newmap;
    for(id aid:oldmap.keyset()){
        if(oldmap.get(aid).phone!=newMap.get(aid).phone){
            accid.add(aid);
        }
    }
list<account> acclist=[select phone,(select OtherPhone from contacts) from account where id in:accid];
for(account a:acclist){
    for(contact c:a.contacts){
        c.OtherPhone=a.phone;
        con.add(c);
    }
    update con;
}
}
 
trigger contactinsert on Contact (after insert) {
list<task> task=new list<task>();
    for(contact c:trigger.new){
    task t=new task();
    t.Subject='email';
    t.Status='complet';
    t.ActivityDate=system.today()+3;
    t.WhoId=c.id;
    task.add(t);
}
insert task;
}

this is my trigger clas
i want  test class of this trigger
 
public class ProdWraper {
    public String name{set;get;}
    public String id{set;get;}
    public Decimal cost{set;get;}
    public ProdWraper(String name,String id,Decimal cost){
        this.name='name';
        this.cost=cost;
        this.id='id';
    }
}

public class WraperItem {
    public map<String,ProdWraper> obmap{set;get;}
    public list<selectoption> options{set;get;}
    public String selected{set;get;}
    public ProdWraper pw{set;get;}
    public WraperItem(){
        obmap=new list<String,ProaWraper>();
        options=new list<selected>();
        ProdWraper pw=new ProdWraper(name='mahesh',id='E-01',100);
        obmap.put(pw.id,pw);
        ProdWraper pw1=new ProdWraper(name='naresh',id='E-02',200);
        obmap.put(pw1.id,pw1);
        ProdWraper pw2=new ProdWraper(name='mahesh',id='E-03',100);
        obmap.put(pw2.id,pw2);
        set<String> key=obmap.keyset();
        selectoption op=new selectoption('NONE','--NONE--');
        options.add(op);
        for(String p:key){
            selectoption s=new selectoption(p,p);
            options.add(s);
        }
    }
    public void getWrap(){
        pw=obmap.get(selected);
    }
}

<apex:page controller="WraperItem">
    <apex:form>
    <apex:pageBlock title="productwraper" id="one">
        <apex:outputLabel value="name"/>
        <apex:selectList value="{!selected}" size="1">
            <apex:selectOptions value="{!obmap}"/>
            <apex:actionSupport event="onchange" action="{!getWrap}" reRender="one"/>
            </apex:selectList>
        <apex:outputLabel value="EnterName"/>
       <apex:inputText value="{!pw.name}"/>
         <apex:outputLabel value="Enterid"/>
       <apex:inputText value="{!pw.id}"/>
         <apex:outputLabel value="Entercost"/>
       <apex:inputText value="{!pw.cost}"/>
        </apex:pageBlock>
    </apex:form>
</apex:page>

This is Wrapper class   pro
pls Correct my code
trigger insertac on Account (after insert) {
list<opportunity> opc=new list<opportunity>();
    for(account a:trigger.new){
        opportunity p=new opportunity();
        p.Name='manish';
        p.StageName='qualification';
        p.CloseDate=system.today()+3;
        opc.add(p);
    }
    insert opc;
}

i want to test class above pro
 
trigger coin on Contact (before insert) {
    if(trigger.isinsert ){
        Integer recordCount = Trigger.New.size();
  BtachapexEmail b=new  BtachapexEmail();
        database.executebatch(b);
    }
}
I have 6 millions recods.Those records insert into external system to salesforce how to achive it ?

Thanks
how  to populate fields data in sfdc (i have obj A and some fields like status,description,state,pincode,phone,email,name if my conditions is name,email,phone fields are not populate and other fields are populate how to achieve it)
How to achive soql and dml errors in test class? (we write a test class soql and dml errors arrive how to achive it)