This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready( function() { | |
jQuery('input[id$=\\:myComponentId]').click(function(){ | |
alert('hello world!'); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExtendPageController{ | |
public SObject record {get; private set;} | |
public ExtendPageController(ApexPages.StandardController controller){ | |
record = controller.getRecord(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page standardController="Sales__c" extensions="ExtendPageController"> | |
<script type="text/javascript"> | |
function refreshPage(){ | |
location.href="/{!record.Id}"; | |
} | |
</script> | |
<h1>This is a visualforce page in iframe</h1> | |
<a href="javascript:refreshPage();">Refresh</a> | |
</apex:page> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page standardController="Sales__c" extensions="ExtendPageController"> | |
<script type="text/javascript"> | |
function refreshPage(){ | |
document.rform.submit(); | |
} | |
</script> | |
<h1>This is a visualforce page in iframe</h1> | |
<a href="javascript:refreshPage();">Refresh</a> | |
<form action="/{!record.Id}" target="_parent" name="rform"></form> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT Account__r.Name, SUM(Amount__c) FROM Sales__c GROUP BY Account__r.Name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT Account__r.Name,User__c, SUM(Amount__c) FROM Sales__c GROUP BY Account__r.Name,User__c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT Account__r.Name,User__c, SUM(Amount__c) FROM Sales__c GROUP BY ROLLUP(Account__r.Name,User__c) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class OrderController{ | |
public String prop1{ | |
get{ | |
System.debug('--> prop1 getter'); | |
return prop1; | |
} | |
set; | |
} | |
public OrderController(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="OrderController" action="{!init}"> | |
<apex:form > | |
<apex:inputText value="{!prop1}"/> | |
</apex:form> | |
</apex:page> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14:06:08.041 (41959909)|USER_DEBUG|[11]|DEBUG|--> OrderController constructor | |
...... | |
14:06:08.042 (42127602)|USER_DEBUG|[15]|DEBUG|--> Action mainInit() | |
...... | |
14:06:08.060 (60458965)|USER_DEBUG|[4]|DEBUG|--> prop1 getter |
OlderNewer