[fusion-users] Fusion: calling custom search widget

Warren Medernach wmedernach at rand.com
Tue Jul 6 14:43:12 EDT 2010


Thanks Paul,
With your help and a couple posts I've found I've gotten a little further now.

I guess the next question is, can I 'get' a custom Search command in the way I am trying to?
The message now says: Fusion.getWidgetById("SearchAddress") is null

The ID of my command is SearchAddress, so it doesn't appear to be finding it?
I've been digging through the fusionSF.js and I see some specific calls for searches:
                getSearchDefinitions
                getSearchCategories

I wonder if I need to be using these to get at the search commands?

Warren M



From: pdescham49 at gmail.com [mailto:pdescham49 at gmail.com] On Behalf Of Paul Deschamps
Sent: Tuesday, July 06, 2010 12:05 PM
To: Warren Medernach
Subject: Re: [fusion-users] Fusion: calling custom search widget

Not really sure but did you try calling activate as a function? notice "()"

window.top.Fusion.getWidgetById('SearchAddress').activate();
On Tue, Jul 6, 2010 at 11:02 AM, Warren Medernach <wmedernach at rand.com<mailto:wmedernach at rand.com>> wrote:
Hello all,
I have a search defined in a Fusion app that works fine, and this search is defined to execute in a specified frame.  I can control the opening and closing of this frame via javascript, but what I want to do is script this so I can call to open the frame and then load the Search command.

I was thinking of wrapping this in an InvokeScript call, so I'm looking for help with the syntax to 'call/activate/initialize' the custom search widget.
I've seen other samples using something like:
window.top.Fusion.getWidgetById('Map').drawMap()  to refresh a map

My search ID is 'SearchAddress' so I've tried:
window.top.Fusion.getWidgetById('SearchAddress').activate;

But that doesn't seem to work.

Warren M


_______________________________________________
fusion-users mailing list
fusion-users at lists.osgeo.org<mailto:fusion-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/fusion-users



--
   Paul Deschamps
   Applications Specialist
   DM Solutions Group Inc.

   Office: (613) 565-5056 x28
   pdeschamps at dmsolutions.ca<mailto:pdeschamps at dmsolutions.ca>
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fusion-users/attachments/20100706/9885c55c/attachment.html


More information about the fusion-users mailing list