function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
umutdoganumutdogan 

Packaging a Flex Application

I have integrated a Flex application into Salesforce. Then I created an unmanaged package. I created another Salesforce account to test the package. I installed the package to that account, and made the configuration. But it says loading and doesn't do anything when i click the Flex integrated tab. But that flex application works for the other account and it works as standalone. Do I need to do any settings, for example security etc.?

 

Flex Debugger:

 Error: Ignoring policy file requested from https://c.na6.visual.force.com/crossdomain.xml because a cross-domain redirect to https://na6.salesforce.com/crossdomain.xml occurred.

Message Edited by umutdogan on 01-22-2009 06:00 AM
Best Answer chosen by Admin (Salesforce Developers) 
umutdoganumutdogan

That tab includes a visualforce page and that page is similiar to this:

 

<apex: page tabStyle="MyTestPage__tab" sidebar="false" controller="MyTestPageController">
 <apex:flash src="{!$Resource.MyTestPage}" 
        width="100%" height="700" 
        flashvars="userId={!$User.Id}&isAdmin={!user.profile.name}&session_id={!$Api.Session_ID}&server_url={!$Api.Partner_Server_URL_130}&objectId={!$Request.objectId}&objectType={!$Request.objectType}&returnUrl={!$Request.returnUrl}" /> 
</apex: page>

 

Also flex code is kept as a Static Resource.

Message Edited by umutdogan on 01-27-2009 12:44 AM

All Answers

umutdoganumutdogan
Also this tab is a visualforce page that includes the flash component using apex:flash tag.
shillyershillyer

http://community.salesforce.com/sforce/board/message?board.id=general_development&thread.id=25334

 

Just a thought, but I'm wondering if this also has to do with Remote Site Settings. You cannot include this in the package, so after installing your package, you would need to manually configure this in the destination org.

 

Hope that helps,

Sati

umutdoganumutdogan

Thank you but it didn't solve my problem. Because I connect to the web service using Flex app. When I hover on my Custom tab the link is https://na6.salesforce.com/servlet/servlet.Integration?lid=01r800000007bcw&ic=1. But  after clicking the tab it forwards me to the https://c.na6.visual.force.com/apex/MyTestPage?sfdc.tabName=01r800000007bcw and in that page I have flex application embeddeb. It says loading but nothing happens. For my other account tab hyperlink is https://na2.salesforce.com/servlet/servlet.Integration?lid=01r40000000E9vY&ic=1 and it redirects to https://na2.salesforce.com/apex/MyTestPage?sfdc.tabName=01r40000000E9vY.I'm suspicious about "c." prefix and "visual.force" thing in my test account's links. But I don't know why it redirect that way???

umutdoganumutdogan

That tab includes a visualforce page and that page is similiar to this:

 

<apex: page tabStyle="MyTestPage__tab" sidebar="false" controller="MyTestPageController">
 <apex:flash src="{!$Resource.MyTestPage}" 
        width="100%" height="700" 
        flashvars="userId={!$User.Id}&isAdmin={!user.profile.name}&session_id={!$Api.Session_ID}&server_url={!$Api.Partner_Server_URL_130}&objectId={!$Request.objectId}&objectType={!$Request.objectType}&returnUrl={!$Request.returnUrl}" /> 
</apex: page>

 

Also flex code is kept as a Static Resource.

Message Edited by umutdogan on 01-27-2009 12:44 AM
This was selected as the best answer