Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Missing Add-button in getCMSFields_forPopup

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: 317 Views
  • esakrielaart
    Avatar
    Community Member
    54 Posts

    Missing Add-button in getCMSFields_forPopup Link to this post

    (Also see: http://www.silverstripe.org/general-questions/show/15576; same problem)

    Hi,

    I have an ArticleHolder/ArticleContent DataObject which contains certain data. Also I have an InvoicePersonal, InvoiceHolder and InvoiceContent class, which respectively contain personal details, packages and package content. Last two both refer to the Article Dataobjects.

    The relation between them are all one_to_many, so one InvoiceHolder contains many ArticleHolders, one InvoiceHolder contains many InvoiceContents which on turn contains one ArticleContent per row.

    Now I can add all InvoiceHolder stuff, but than I get an popup where I can edit the InvoiceContent of an InvoiceHolder. This unfortunatelly does not show an Add-button.

    I think I have to define a complex table field myself, based on the URL posted above, I only do not know exactly where or how. ny help for this will be appreceated.

    Thanks in advance,
    Maurice

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: Missing Add-button in getCMSFields_forPopup Link to this post

    I don't think you can add a ComplexTableField to another CTF's popup, unless it's read-only. Otherwise you'd have to call a popup on top of another popup, involving lot's of Ajax requests on top of each other...

    For these types of relation chains, the way to go would probably be ModelAdmin...

    317 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.