Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

Workspace URL inside Flex form

Avatar

Level 4

Using ES1 still.

Does anyone know an easy way to gain access to the Workspace URL from within a Flex form?  I tried using the BrowserManager, but since the Flex form is actually loaded inside another Flex application and not the browser, it didn't seem to work for me.

My goal is to use the URL to do some internal configuration in the Flex form to respond to DEV, TEST and PROD servers.

1 Accepted Solution

Avatar

Correct answer by
Level 10

I have misread your post. Sorry.

The answer is

var workspaceURL:String = Application(application).url;

application refers the top-level Application. Since the applciation is a property of type Object, you will have to cast is using Application class.

I hope this is what you are looking for!

Nith

View solution in original post

3 Replies

Avatar

Level 10

You can try to following option.

navigateToURL(new URLRequest("http://localhost:8080/workspace"),"_blank");  // This code will open your workspace in a new browser window.

Nith

Avatar

Correct answer by
Level 10

I have misread your post. Sorry.

The answer is

var workspaceURL:String = Application(application).url;

application refers the top-level Application. Since the applciation is a property of type Object, you will have to cast is using Application class.

I hope this is what you are looking for!

Nith