Mike, Many thanks for your email, its really helped. Mike Adair wrote: > > Don, > > You first need to create <Widget> elements that will run your custom > tasks like so using the InvokeScript widget: > > <Widget xsi:type="UiWidgetType"> > <Name>task1</Name> > <Type>InvokeScript</Type> > <Extension> > <Script>testScript()</Script> > </Extension> > <Label>menu label</Label> > </Widget> > > where the <Script> element is the JavaScript code to be executed when > the menu item is clicked. > > Then to add these to the drop-down list in the TaskPane, you need to add > a reference to these widgets in the TaskPane menu container. The ID of > the TaskPane menu container is the <MenuContainer> element in the > TaskPane widget. Then in that container element add in pointers to your > InvokeScript widgets like so: > > <Container xsi:type="UiItemContainerType"> > <Name>TaskContextMenu</Name> > <Type>ContextMenu</Type> > <Item xsi:type="WidgetItemType"> > <Function>Widget</Function> > <Widget>task1</Widget> > </Item> > <Item xsi:type="WidgetItemType"> > <Function>Widget</Function> > <Widget>task2</Widget> > </Item> > </Container> > > Where the <Widget> element corresponds to the <Widget><Name> elements of > your widgets. > > Hope that helps. > > Mike > > > > Don C. MacGregor wrote: >> Hi all, >> I am running MGOS 2.0 with IIS and PHP on Win2003 using AJAX viewer, >> and now want to switch to fusion technology. Can someone please help >> by telling me how could I add my current custom tasks in AJAX viewer >> to task list of fusion template. >> Thanks >> >> ------------------------------------------------------------------------ >> Ask a question on any topic and get answers from real people. *Go to >> Yahoo! Answers.* <http://ca.answers.yahoo.com> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapguide-users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > >
-- View this message in context: http://www.nabble.com/Adding-custom-tasks-to-Fusion-template-tp16424825s16610p16447072.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
