You need to log in before you can comment on or make changes to this bug.
In order to have the UploadContext widget behave embedded, I had to move some of the code (only the part which clears the session MAP file and adds the layers from the context to it) from the phtml file into the widget.php file. This makes it possible to control the widget behaviour from the outside through 1 main form variable called WMS_CONTEXT. In my situation I have embedded the UploadContext widget into a portal page, and when opening a context, a new empty mapviewer is opened which will show the context. This uses a javascript callback mechanism. I would like to incorporate these changes into Chameleon CVS sometime, as this does not make any difference for the current operation. It just opens up possiblities for external control, which is e.g. needed when opening up empty mapviewers to which you want to add layers/contexts. On a more common note, maybe we need like a design decision to determine when stuff is implemented in the widget form, or when it is implemented through the main form and the widget's ParseURL function.
Changed target to 2.1.
Bart, I don't see any of your code in cvs. I am currently planning an enhancement to the UploadContext widget, see bug: http://www.maptools.org/bugzilla/show_bug.cgi?id=565 I don't think it will have much impact unless you are interested in changing the embedded mode of the UploadContext widget to display a dropdown list instead of the whole dialog?
Hi Paul, I did not put it in CVS yet as I first wanted to discuss it with you further. The embedded context looks the same as the popup one in my application. What I changed is the following: I added a main form variable WMS_CONTEXT. I added some of the code of the popup phtml file into the parseURL function of the widget. That's about all. I can always change it after you have made the changes. Let me know how to operate.
Changed Target Milestone to FUTURE. (Enhancements may be moved from this target to specific "versioned" targets after product design review cycles.)
Hi Paul, is there any chance we could work on getting this into Chameleon 1.1? Should I send you a modified source file so you can judge the changes? Thanks in advance. Bart
This is not really an issue anymore for me. Changing to WONTFIX.