Skip to Content
0
Former Member
Nov 28, 2006 at 06:39 PM

Do I need to use a custom controller & view set

36 Views

Good Day,

Please excuse the long question.

I am in the process of creating a new BSP application. In a nut shell, my application is going to accept a bunch of data in the URL and pass the data to an external system. Depending on what is returned from the external system, it will prompt the user to either supplement the data or to confirm what the external system has sent back.

I would like to have all of the business logic that communicates with the external system and decides what type of user interaction to be located in one central class. I was thinking that I could have a custom controller that is resident for the life of the application. It would call the external system and navigate to other views depending on what is required. When the user responds, the response would go to the custom controller and be sent to the external system. So, my first question is does this sound reasonable? For my second question, is it possible to have a view associated with the custom controller. If so, I can use it for the confirmation "screen".

While looking at the Web IC cookbook, I ran accross the section on view sets. Are there pros and cons to using a vew set for an application like this? I expect the browser window to contain one view at a time and it kind of seems like view sets may intended more for where there are several views displayed within the browser and the view set allows you to change only one. Is that true?

Thank you very much for any insight you can offer. I promise to award points for helpful responses.

Thanks and kind regards,

John