Popup components outside of thier context

Tim 

I just want to confirm that I there is no current availability to use a standardized IMobject approach to automatically create a modal for an object outside of the context it would normally appear in....

I.E to display the supplier details in a automated modal box using the standard layouts derived from archetypes.  I cant find a single example where the display of such a model actually doesnt change the underlying context.

Hence to do so, you need to create a custom modal that still uses the current context in my case customer/patient to display supplier details in a modal without changing context.

I didnt want to post this in the user forum (I think the current thread went way past that which normal users need/want to read) And I didnt want to start constructing a new modal if I had missed a simplier approach.

Sincerely

Ben

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Popup components outside of thier context

Try using IMObjectViewerDialog to start with. It uses an IMObjectViewer to render objects.

Most of the supplier information won't be relevant, so you can supply a custom IMObjectLayoutStrategy to display just the name and contact information.

IMObjectViewerDialog manages hyperlinks so it may be overkill. In that case, just subclass PopupDialog and use IMObjectViewer.

Syndicate content