Select to view content in your preferred language

Reopening Enhanced Splash Widget

2952
13
04-04-2011 09:37 AM
BenOverholt
Emerging Contributor
I am using the enhanced splash widget to display some information about the project on one tab and a simple how-to for some of the widgets I will be using in another. I want to be able to reopen the splash page in case someone wants to revisit the how-to section. When I press "enter" on the splash widget it closes it but is still active in the widget container and clicking on the icon there does not bring it back up. Any ideas?

Ben Overholt
Tags (2)
0 Kudos
13 Replies
RobertScheitlin__GISP
MVP Emeritus
Darren,

   You are not likely doing anything wrong in your changes... The widget was never designed to be reopened.
0 Kudos
DarrenGemoets
Occasional Contributor
Darren,
   You are not likely doing anything wrong in your changes... The widget was never designed to be reopened.


Well, I'm doing something wrong in my attempt to re-design it to re-open.  🙂  I've attempted to turn it into a widget (using viewer:BaseWidget), un-parameterize content and btnLabel, and make the content and btnLabel properties static (assigned once in init() from config), but they are not acting static.  When the widget comes back up, the content is blank.  I also tried to make it essentially a Singleton, but that hasn't worked either.

Anyone have any quick thoughts / high level approach how to widgetize the Splash page and make it re-openable (while still getting content from configuration)?

Thanks,
Darren
0 Kudos
DarrenGemoets
Occasional Contributor
For what it's worth, I was able to make the FlexViewer Splash page re-openable.  I turned it into a widget (using viewer:BaseWidget), added the additional UI I wanted, and moved the configuration to HeaderController (the class that re-launches the Splash page).  I changed the Splash page to use HeaderController's configuration file (HeaderController.xml) so that it could get the content as splash.content and splash.btnlabel.  HeaderController gets the same configuration and passes the content and btnLabel to the splash page widget's show() routine.  show() does pretty much the same thing as HTMLPopup.show(), except that it returns a SplashPageWidget instead of an HTMLPopup.

Not the best solution, no doubt, but it works for me.
0 Kudos
ClementG
New Contributor
Hello every one ! First post here. Hopefully not the last, cause i'd like to be involved in the GIS comunity for years to come !

It's my third day i've been working wiht Flex and ArcGIS Viewer.

I know this SplashWidget is not intended for being a standard widget but I'd like to know if it could be possible to replace the standard "About" in the HeaderControllerWidget by this SpashWidget.

I know the standard "About" is a HTMLPopUp and this one is a standard PopUp.

I would like to create my own "Help" tab in this SplashPage and I still need a lot of knowledge to design my own "page" this is why i wonder if it could be possible to replace the ShowAbout by the SplashWidget ?

I don't really want you to give me the "ready to eat" solution but i would like some hints on how to do that, and where to begin.

I've tried a lot and read a lot ( even if there is not much to read about this ) but i can't find a suitable solution to my problem.

I managed to build a new widget and open the default SplashWidget when the click is done. But i don't need the StandardHTMLPage but the EnhancedSlapsh to show.

Thank you for reading, moreover for answering.
0 Kudos