You need to sign in to do that
Don't have an account?
AkiT
Iframe problems
Hi!
I use the below VF code to open an s-control in an iframe - similar result using custom button & s-control in standard sf page. However I cannot add the custom button in VF to get the same behavior.
So I use commadButton and return reference to new VF page with scontrol tag as in below code. However this is not as flexible - it is inline and static size. E.g. It does not react on sidebar collapse which is not nice. VF iframe tag doesnt seem to work as I cannot feed object id.
Any suggestions / workarounds?
Code:
I use the below VF code to open an s-control in an iframe - similar result using custom button & s-control in standard sf page. However I cannot add the custom button in VF to get the same behavior.
So I use commadButton and return reference to new VF page with scontrol tag as in below code. However this is not as flexible - it is inline and static size. E.g. It does not react on sidebar collapse which is not nice. VF iframe tag doesnt seem to work as I cannot feed object id.
Any suggestions / workarounds?
Code:
<apex:page standardController="Offer__c" extensions="offerPage" tabStyle="Offer__c">
<apex:scontrol controlName="ListBtn" height="800" width="1000" subject="a06T0000001p2Q0"/>
</apex:page>
My initial Visualforce page is a list of objects where user can pick one - id goes to scontrol tag subject. (wrapper is like wiki contact example)
Initial page has commandButton which returns pagereference to the 2nd Visualforce page (above code) - this 2nd page shows the 3rd party app with reference to the selected object. Only thing is that I need to set static iframe size... Is there other way.. :smileyindifferent:
Message Edited by AT on 11-17-2008 08:36 PM
AT wrote:
The s-control contains form with some parameters like object id that comes from the scontrol tag subject parameter (in code example it's just fixed value) and server urls.
You don't need an scontrol for this.
AT wrote:
This form is then posted onload which opens 3rd party application in an iframe.
See apex:iframe
AT wrote:
....Only thing is that I need to set static iframe size... Is there other way.. :smileyindifferent:
I don't understand. You are setting the static iframe size. Are you saying your values are ignored?
apex:iframe shows url content. Can I use apex:iframe to show the response html from the form submission..?
Message Edited by AT on 11-17-2008 09:40 PM