Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Workspace URL inside Flex form

Avatar

Former Community Member

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