how to make an XPage a "mashup" - Epilogue
Category xpages
Declan suggested I post a couple more items of information about my XPages weather mashup:
To remove the location from the sessionScope, I just added an onclick event handler to the "Home" link in the "layout_PlaceBar" custom control, which executes the following script:
As a result, if the user clicks that breadcrumb, the location is no longer known and the weather widget disappears until a new location is chosen. But if the user returns to the home screen another way (i.e. the back button, a bookmark, manually editing the URL, etc.), the scope would still contain the location.
Declan suggested I post a couple more items of information about my XPages weather mashup:
- an explanation of which fields I added to the Location form
- instructions on how to remove the location from the sessionScope
To remove the location from the sessionScope, I just added an onclick event handler to the "Home" link in the "layout_PlaceBar" custom control, which executes the following script:
sessionScope.remove('locationfilter');
As a result, if the user clicks that breadcrumb, the location is no longer known and the weather widget disappears until a new location is chosen. But if the user returns to the home screen another way (i.e. the back button, a bookmark, manually editing the URL, etc.), the scope would still contain the location.
