[fusion-users] Need a dynamic Url for InvokeUrl
kelll
kellieharrisson at sierrasystems.com
Fri Feb 25 12:06:47 EST 2011
Good morning fellow fusion users,
I have the following InvokeUrl widget in my ApplicationDefinition.xml. It
successfully calls an ASPX page in my web application which then fires
server code logic. I would like to make the Url dynamic.
For example, instead of the hardcoded:
"HTTP://localhost/WEB/Pages/MapViewer/ToggleLayerVisibility.aspx?LayerName=WorkRequestOpen"
I would like to do something like:
"HTTP://" + ApplicationPath +
"/Pages/MapViewer/ToggleLayerVisibility.aspx?LayerName=WorkRequestOpen"
Does anyone have any suggestions on how to achieve this?
Here's the widget:
<Widget xsi:type="UiWidgetType">
<Name>WorkRequestOpen</Name>
<Type>InvokeURL</Type>
<Location />
<Extension>
<Target>TaskPane</Target>
<Url>HTTP://localhost/WEB/Pages/MapViewer/ToggleLayerVisibility.aspx?LayerName=WorkRequestOpen</Url>
<AdditionalParameter>
<Key>MAPTITLE</Key>
<Value>Map</Value>
</AdditionalParameter>
</Extension>
<ImageUrl>images/icons/overview-map.png</ImageUrl>
<ImageClass />
<Label>Work Request - Open</Label>
<Tooltip>Display open work requests</Tooltip>
<StatusText />
<Disabled>False</Disabled>
</Widget>
Regards,
Kellie
-----
Regards,
Kellie
Kellie Harrisson | Software Developer
Sierra Systems
Edmonton, Alberta, Canada
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Need-a-dynamic-Url-for-InvokeUrl-tp6065195p6065195.html
Sent from the Fusion Users mailing list archive at Nabble.com.
More information about the fusion-users
mailing list