Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Nested Fieldsets

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

Page: 1
Go to End
Author Topic: 875 Views
  • mishell
    Community Member
    19 Posts

    Nested Fieldsets Link to this post

    I have to nest a fieldsets, or something simmilar. Now I use

    $fields = new FieldSet;
    $fields->push($PosName = new CompositeField());

    foreach($objects as $row)
    $PosName->push(new FileUploadField('Dupa'.$i++,array(),$this));

    Only problem is that FileUploadField does not work in that configuration returning HTTTP ERROR.

    If I Use

    $fields->push(new FileUploadField(...));

    it works perfectly. But I have to make many instances of FUF. The reason I need nested composite fields is what I need data object set shown with fields and transposed.

    ITEM | A | B
    COL | 1 | 2
    COL2 | 1 | 2
    UPLOAD | 1 | 2

    It there any solution to this problem? I am fighting all day with this.

    Thanks in advance

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.