• Rajesh Reddy 29
  • NEWBIE
  • 20 Points
  • Member since 2016
  • Verizon

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 0
    Replies
Hi Team,
 
I have custom VF Button for object detail page when I will click it is opening new edit page in console I need to close primary tab .
Can anyone help me on this as urgent. thanks  in Advance.
 
Regards,
Rajesh
 
Step 1 : in Console I have Account  have a related list called opportunity
Step 2 : when I am creating  opportunity( Vf Tab to create opportunity) with all details click save opportunity is not populating in account  related list
Step 3 : after refresh opportunity is populating in account related list

VF Button :

apex:commandButton action="{!saveApplication}"  value="Save" oncomplete="doRefreshPage({!refreshConsole}); return false;"/>

Java Script in VF Page :
    <apex:includeScript value="/support/console/42.0/integration.js"/>
    <script type='text/javascript'>
        //This function allows the user to press enter to search
        var refreshPrimaryTab = function showTabId(result) {
            var tabId = result.id;
            sforce.console.refreshPrimaryTabById(tabId, true);
        }
        function doRefreshPage(refreshConsole) {
            if(refreshConsole == true)
                sforce.console.getEnclosingPrimaryTabId(refreshPrimaryTab);
        }
    </script>

Can any one help me on this.
Thanks in Advance.
Regards,
Rajesh
Step 1 : in Console I have Account  have a related list called opportunity
Step 2 : when I am creating  opportunity( Vf Tab to create opportunity) with all details click save opportunity is not populating in account  related list
Step 3 : after refresh opportunity is populating in account related list

VF Button :

apex:commandButton action="{!saveApplication}"  value="Save" oncomplete="doRefreshPage({!refreshConsole}); return false;"/>

Java Script in VF Page :
    <apex:includeScript value="/support/console/42.0/integration.js"/>
    <script type='text/javascript'>
        //This function allows the user to press enter to search
        var refreshPrimaryTab = function showTabId(result) {
            var tabId = result.id;
            sforce.console.refreshPrimaryTabById(tabId, true);
        }
        function doRefreshPage(refreshConsole) {
            if(refreshConsole == true)
                sforce.console.getEnclosingPrimaryTabId(refreshPrimaryTab);
        }
    </script>


Can any one help me on this.
Thanks in Advance.
Regards,
Rajesh
 
Hi All,
In my org I have 1L Accounts in account I have custom field account__c every day I need to display total amount for all account when my batch job runs (For exam  I am working in banking domino every day amount (amount__c) is updating when my batch job runs for all accounts .
Thanks In Advance 
Regards,
Rajesh
 
Hi All,
I have 500 contacts every contact Email ID (Field) is mandatory I need to update email field through Batch apex. In email first name and last name should be same I need to update domine  like (Rajesh.k@gmail.com  to  rajesh.k@salesforce.com   for all contacts ). Can anyone help me out thanks in advance.

Regards,
Rajesh