• Nandu123
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

Hello,

 

I am trying to plan out an integration with a third-party system and I need a sample XML for when a new record is created/updated in Salesforce (e.g. a new Account is created or a Contact record is updated). I know where to find the general XML schema but will need more than than just this. Is there a way to get a sample XML that I require?

 

Thanks for your help in advance.

 

Hi All,

 

I would like to call apex controller method when we move one page to another page. I have to also check data modification on Visualforce page then display Confirm Dailog box. If User Click 'Yes' then modified data get saved in table, if user click  'Cancel'  of dailog box then it will move for next page without any data save.

 

Code Sample::

var flag='false';

   function goPage(pages){
           if(flag=='true'){
               if(confirm('Before move to the next page. Do you want to save modified Status? ')== true){
                saveMePermanent(); // Simaple Javascript Funciton
                nextAfterSave(); // This is apex controller method
            }
        }
           document.getElementById("pNumber").value = pages;
           nextBeforeSave(); // this is apex controller method
   }

 

 

Visual force Page



 <apex:actionFunction name="nextAfterSave" action="{!submitStatus}" />
 <apex:actionFunction name="nextBeforeSave" action="{!next}" />

 

<table >
        <tr>
            <td>
              <apex:panelGrid columns="50">
              <apex:repeat value="{!activePages}" var="pages">
                &nbsp;
                <apex:commandLink onclick="goPage({!pages});" >{!pages}</apex:commandLink>
                
                &nbsp;
              </apex:repeat>
              <input type="hidden" name="pageNumber" value="" id="pNumber"/>
            </apex:panelGrid>
            </td>
            
        </tr>  
    </table>

 

I dont know why its not working. I have seen some sample code also that have written as i have given in sample.

 

Is i am missing something in this code?

Please help me.

 

Thanks in Advance

 

R.K