Bug 489 - UploadContext widget: moving of some code into the widget file
: UploadContext widget: moving of some code into the widget file
Status: RESOLVED WONTFIX
: Chameleon
Widget
: 1.99
: PC Windows XP
: P2 enhancement
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-07-02 08:02 by
Modified: 2005-05-27 08:16 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-07-02 08:02:52
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.
------- Comment #1 From 2004-07-08 13:16:24 -------
Changed target to 2.1.
------- Comment #2 From 2004-07-20 11:31:36 -------
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?  
------- Comment #3 From 2004-07-20 13:45:16 -------
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.
------- Comment #4 From 2004-08-10 16:03:55 -------
Changed Target Milestone to FUTURE. (Enhancements may be moved from this target 
to specific "versioned" targets after product design review cycles.)
------- Comment #5 From 2005-02-16 04:06:20 -------
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
------- Comment #6 From 2005-05-27 08:16:58 -------
This is not really an issue anymore for me. Changing to WONTFIX.