You need to sign in to do that
Don't have an account?
JohnPCutler
Dynamically change Iframe height and/or display S-Control as related list?
Hello, and thanks in advance for your time. I have created an S-Control to implement a specialized related list. The list shows the Contact's (or Person Account's) roles on all Cases. This is an advantage over the current Cases related list which only shows Cases for whom the Contact is a the primary contact on the case.
The Problems
1) I am forced to display this S-Control in a field section, which doesn't look right. You'd expect to find this in a related list. Is there any way to display the S-Control as a related list instead?
2) I am forced to specifiy a height for the S-Control. This height is static. This means that I either need to turn on the scrollbar for the Iframe (which is ugly, and requires more user interaction and time), or make the Iframe unnaturaly high.
Any thoughts? Thanks again.
John
Update. I think this is a hack, but it works.
The Problems
1) I am forced to display this S-Control in a field section, which doesn't look right. You'd expect to find this in a related list. Is there any way to display the S-Control as a related list instead?
2) I am forced to specifiy a height for the S-Control. This height is static. This means that I either need to turn on the scrollbar for the Iframe (which is ugly, and requires more user interaction and time), or make the Iframe unnaturaly high.
Any thoughts? Thanks again.
John
Update. I think this is a hack, but it works.
....
resizeIframe(line_height);
}
}
function resizeIframe(height) {
var id = new String(window.name);
var iframeElement = parent.document.getElementById(id);
iframeElement.style.height = height + "px"
}
Message Edited by JohnPCutler on 08-25-200712:01 AM
Message Edited by JohnPCutler on 08-25-200712:19 AM
http://blogs.salesforce.com/features/files/salesforce_useful_scontrols.pdf
Look in the section titled "S-Controls that Include Snippets".
S-Controls are not currently supported as Related List items. This is something that I hear every once in a while, but I have not seen a big push for from our customers or partners. You might want to post this idea on IdeaExchange to see of others have this issue.