Print Page | Close Window

LookUp screen

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1441
Printed Date: 23-Apr-2025 at 8:53am


Topic: LookUp screen
Posted By: alejandro
Subject: LookUp screen
Date Posted: 25-Aug-2009 at 7:44am
What would be the best way (cabana way) to build a lookup screen, one that would popup from one view in the shell and allow you to select some value. On closing that screen the selected value should be copied to a given field in the view from where it was created. How would be the communication between this 2 windows? by events or viewcontext? Is there any implementation out there of this common scenario?   



Replies:
Posted By: WardBell
Date Posted: 26-Aug-2009 at 11:59am
My instinct would be to use a ViewContext. Here's why. I believe that CAB events should be used in a fire-and-forget manner to communicate something of possible interest to unknown subscribers. Here you have a collaboration between two parts. They may be loosely coupled (and not know each other) but they are the only two parties to the conversation.
The ViewContext was invented to facilitiate conversation among loosely-coupled close collaborators. That's what your scenario suggests to me.
 
I don't know of a specific implementation in Cabana for this scenario. I don't know if ViewContext is the best answer for your case either but it the place I would look first.
 
 


Posted By: Landry
Date Posted: 23-Aug-2010 at 11:32pm


Hi Mate

I think it is also possible to do other than ViewContext using openID in ASP.Net using MVC application, where we can register only once so that information comes over entire application.





-------------
http://www.pcnametag.com/cat1_Nametag_Inserts.aspx - name labels


Posted By: WardBell
Date Posted: 24-Aug-2010 at 9:36am
@Landry - a potentially useful observation. Not sure how that plays here ... in a Windows Forms, CAB-based application with no ASP interaction whatsoever.
 
To be honest, we've moved on from CAB-based WinForms applications toward WPF/Silverlight Prism or Caliburn foundations. My Cabana is getting pretty rusty. Still happy to dredge up some advice where I can though :-\



Print Page | Close Window