• sai tarun
  • NEWBIE
  • 85 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 15
    Questions
  • 15
    Replies
How to pass parameters from one vf page to another vf page without using Apex.
Interviewer asked me how to achive this.......
Thanks in Advance
in a vf page u have 2 buttons 
   if click button 1 then display pageblock1 only,and button1 will disable
   if click button2 then disply pageblock2 only,and button2 will disable.....

Using Trigger
in an account ,assume you are having 5 contacts connected and you have Account Annual revenue assume10,000 rs amount.
Scenario is
distribute the annual revenue to child records equally(10,000/5),
when a child record is added then then, modify all child record amount (10000/6) who are conected with assosiated account 
when a child record is deleted then also chages will happed to contact fields(10000/4)....
please help me ..........
thanks in advance

thanks in advance.......
One of the Interviewer askeed me to why we go with "custom duplicate management instead of inbuilt duplicate management"?
that means we already have duplicate managemnet system, then why we go with trigger or apex like code for checking duplicate records......

please tell me the difference between them ......

Thanks in advance............
hi 

I have 2 fields on contact which is inc__c and dec__c
so when  i set the value on inc__c = 20, Dec__c = 0 should set to null
if i change the value on Dec__c = 0 to Dec__c = 1 
the inc__c  should decrement to inc__c = 19.

if add one more Dec__c =2
i.e. inc__c = 18

how can i acheive this,if its trigger please give me the sample code,i really appreciate your responses

Thanks
 
<apex:page standardController="sale__c" recordSetVar="sales" sidebar="false">
     <apex:form >
        <apex:pageBlock >
           <apex:pageMessages />
           
            <apex:pageBlockButtons >
               <apex:commandButton value="Save" action="{!save}"/>
               <apex:commandButton value="Return" action="{!cancel}"/>
            </apex:pageBlockButtons>
            
            <apex:pageBlockTable value="{!sales}" var="s" id="table" rows="10">
                <apex:column headerValue="Account Name">
                  <apex:outputField value="{!s.Name}"/>
                   </apex:column>
                  <apex:column headerValue="External Id">
                 <apex:inputField value="{!s.External_Id__c}"/>
                   </apex:column>
                <apex:column headerValue="DOJ">
                  <apex:inputField value="{!s.DOJ__c}"/>
                </apex:column>
                <apex:column headerValue="Select">
                  <apex:inputField value="{!s.Select_Intrested_Field__c}"/>
                </apex:column>
                <apex:inlineEditSupport />
            </apex:pageBlockTable>
           
           <apex:commandLink action="{!Previous}" value="Previous Page" rendered="{!HasPrevious}"/>&nbsp;
           <apex:commandLink action="{!Next}" value="Next Page" rendered="{!HasNext}"/>&nbsp;
           <apex:commandLink action="{!Last}" value="Last Page" rendered="{!HasNext}"/>&nbsp;
           <apex:commandLink action="{!First}" value="First Page" rendered="{!HasPrevious}"/>
           
         </apex:pageBlock>
      </apex:form>
 </apex:page>

pagination links are not visible in apex page....
what is the mistake here....
Thanks in Advance
 
Hi All,
One of the Interviewer asked to me that
'I want to develop a visual force page,it will show the list of accounts,and i should be able to edit the account name and save it .For all accounts(Bulk Updating) or One Account, and i dont want to write any code..........You can you any method.......How can i achive that...............'?
How can can i achive this .............
Thanks in advance.............
 
I have 3 functionality  in execute method as 1,2,3 . But i need to sort order as 3,2,1 while executing . How can you achieve it ?

ThankYou in Advance.........
Hello Techie's

How to know the number of records processed in a batch operation while working with five million records. Any Help would be appreciated.