Jump to:

23023 Posts in 11882 Topics by 2830 members

General Questions

SilverStripe Forums » General Questions » Save formcontent from many:many relation

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 869 Views
  • esakrielaart
    Avatar
    Community Member
    53 Posts

    Save formcontent from many:many relation Link to this post

    Hello all,

    I'm currently struggeling with the following. I have some products which are saved in the database. From this products I wish to create packages containing one ore more products. One product may occure in more than one package and one package may contain multiple products: many-many relation between products and packages.
    Now I have some problems to create a code to actually save the selected products. I'm capable to create a form where one may enter a Package name and to generate checkboxes per product (using checkboxSetField). I spend many time searching the web to see if SS had any build in feature for this, but I can't find it. Aren't there any? Do you maybe have a suggestion on how to tackle this problem?

    Any help appreciated,
    Maurice

  • esakrielaart
    Avatar
    Community Member
    53 Posts
    869 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.