Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Design question about layers and MVC

Design question about layers and MVC

Scheduled Pinned Locked Moved Design and Architecture
c++asp-netdesignregexarchitecture
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fernando A Gomez F
    wrote on last edited by
    #1

    Hello all. I have this 3 layer application I'm building (with MFC as my Framework). I'm trying to follow the MVC pattern. For some actions, the controller will request the view to get some input from the user, usually by displaying a dialog box. This dialog will usually be populated with drop-down lists that are not directly related to the model, however they are essential as they allow some filtering. Say, the Product Family drop-down will be filtered according to the value selected in the Branch dialog. A Product has a Product Family, and a Product Family has a Branch associated (and thus, the Product has a Branch associated as well). My question is the following. I was wondering whether the controller should provide the dialog with the Branch collection, or rather the dialog box should simply load the branches and display it. Any clue will be really appreciated, as I'm having trouble to determine which one would be the best option. Thanks in advance.

    Stupidity is an International Association - Enrique Jardiel Poncela

    J 1 Reply Last reply
    0
    • F Fernando A Gomez F

      Hello all. I have this 3 layer application I'm building (with MFC as my Framework). I'm trying to follow the MVC pattern. For some actions, the controller will request the view to get some input from the user, usually by displaying a dialog box. This dialog will usually be populated with drop-down lists that are not directly related to the model, however they are essential as they allow some filtering. Say, the Product Family drop-down will be filtered according to the value selected in the Branch dialog. A Product has a Product Family, and a Product Family has a Branch associated (and thus, the Product has a Branch associated as well). My question is the following. I was wondering whether the controller should provide the dialog with the Branch collection, or rather the dialog box should simply load the branches and display it. Any clue will be really appreciated, as I'm having trouble to determine which one would be the best option. Thanks in advance.

      Stupidity is an International Association - Enrique Jardiel Poncela

      J Offline
      J Offline
      Jonathan Davies
      wrote on last edited by
      #2

      Seems like you have a Push or Pull quandry as examined, for example, here[^].

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups