[fusion-users] Need a dynamic Url for InvokeUrl

Michael Adair madair at dmsolutions.ca
Mon Feb 28 09:45:38 EST 2011


Kellie,

I think the easiest way to do that would be to override the activate() 
method of the InvokeURL widget.  Use the widget code as a starting point 
and make your own substitutions as required.

Mike

On 25/02/2011 12:06 PM, kelll wrote:
> 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


More information about the fusion-users mailing list