Create a Product & Category on the same page RRS feed

  • Question

  • User-895337895 posted
    Hi David, I searched the Dynamic Data forums and blogs all over for this scenario (which happens for me on each project strangely) but really could find any advice. The generalized scenario is that on the page where a Product is created a Category has to be selected from a drop down (there is a FK from Product to Category). The problem is that the Category list is not fixed and that it would be really helpful if the user could a. choose a Category from a dropdown that has already been entered b. create a Category at the same spot (thus on the create Product page) I want to use Dynamic Data but if this scenario is not supported I'm afraid I can't :( Creating the category inline on the same page would be the most usable. Another solution I see is that there is "create new Category" link under the dropdown that takes the user to the page where he can create the Category (and other properties of the Category) and after hitting save come back to the page where he left off. Each solution has some issues to overcome think. Both solutions have to make sure that the Category is added before the Product because of the FK constraint. I would be very grateful if you could help me with this problem! Kind Regards, Tom
    Saturday, August 30, 2008 7:04 PM

All replies

  • User1810860878 posted

    You can modify the default display templates ,and add your own.  There are several good videos on this site that can show you how to do it.  I watched all the ones from Scott Hansleman.  The DyanmicData Folder ( I may be wrong on the name) has the default layouts.  Turn off Scaffolding and do your own custom templates.  I think that is the piece that may be missing here.

    Saturday, August 30, 2008 7:21 PM
  • User-895337895 posted
    Am I understading this correct that I only have to disable scaffolding for this one column and create a custom display template?
    Saturday, August 30, 2008 8:17 PM
  • User-330204900 posted

    Hi Isolde, have a look at this An Advanced FieldTemplate with a GridView on my blog it may be what you want. without too much customising [:)] you couls customise it to have an insert option.

    Hope this helps [:D]

    Sunday, August 31, 2008 2:03 AM