This isn't a complete soution for your request, however it may be able to get you started. We have an alert that pops up on an opportunity based on record type. It is a visualforce page which has been added to the page layout with pixel height of 0.
<apex:page StandardController="Opportunity">
<script>
function init() {
alert('This is the alert message');
}
var recType = "{!Opportunity.RecordType.Name}";
if (recType == 'MyOpptyRecType'){
window.onload = init;
}
</script>
</apex:page>
basically it calls the function init when the opportunity loads if the record type matches "MyOpptyRecType". init simply pops an alert to the screen which is dismissed by clicking 'oK'. What you probably need is a controller extension which can grab the data you want to dispaly and pass it to the init funtion to display to the screen.
I want to show data that I had populated or stored somewhere in salesforce.
kyle.t wrote:
This isn't a complete soution for your request, however it may be able to get you started. We have an alert that pops up on an opportunity based on record type. It is a visualforce page which has been added to the page layout with pixel height of 0.
<apex:page StandardController="Opportunity">
<script>
function init() {
alert('This is the alert message');
}
var recType = "{!Opportunity.RecordType.Name}";
if (recType == 'MyOpptyRecType'){
window.onload = init;
}
</script>
</apex:page>
basically it calls the function init when the opportunity loads if the record type matches "MyOpptyRecType". init simply pops an alert to the screen which is dismissed by clicking 'oK'. What you probably need is a controller extension which can grab the data you want to dispaly and pass it to the init funtion to display to the screen.
You will need to look into controller extensions. The idea is that the controller extension (or custom controller) will query for/ assemble the data and then you can use the visualforce page to pass that data to the alert.
This isn't a complete soution for your request, however it may be able to get you started. We have an alert that pops up on an opportunity based on record type. It is a visualforce page which has been added to the page layout with pixel height of 0.
basically it calls the function init when the opportunity loads if the record type matches "MyOpptyRecType". init simply pops an alert to the screen which is dismissed by clicking 'oK'. What you probably need is a controller extension which can grab the data you want to dispaly and pass it to the init funtion to display to the screen.
I want to show data that I had populated or stored somewhere in salesforce.
You will need to look into controller extensions. The idea is that the controller extension (or custom controller) will query for/ assemble the data and then you can use the visualforce page to pass that data to the alert.