Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Updating MemberTableField on save

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 5215 Views
  • Nathan Cox
    Community Member
    99 Posts

    Re: Updating MemberTableField on save Link to this post

    I'm having problems and errors pretty much everywhere trying to get this form to work completely...and I'm really getting sick of looking at it. What'll it cost for me to pay someone SilverStripe-savvy to do it?

  • elijahlofgren
    Google Summer of Code Hacker
    222 Posts

    Re: Updating MemberTableField on save Link to this post

    > What javascript do I need to say "apply this JS object to this bit"? The code that I THINK does it normally (in MemberTableField.js) is
    > MemberTableField.applyTo('#Form_EditForm div.MemberTableField');
    > but if I use that, it just tells me MemberTableField is undefined...

    Hi Nathan,

    This may be a stab in the dark, but I think that error may be caused by the fact that this does not show up in /admin/ by default:
    <script type="text/javascript" src="cms/javascript/MemberTableField.js"></script>

    Try making the folllowing change to cms/code/LeftAndMain.php (copied from cms/code/NewsletterAdmin.php) by putting the Requirements::javascript calls in LeftAndMain::init() :

    Index: cms/code/LeftAndMain.php
    --- cms/code/LeftAndMain.php (revision 39154)
    +++ cms/code/LeftAndMain.php (working copy)
    @@ -68,6 +68,15 @@

    + // needed for MemberTableField (Requirements not determined before Ajax-Call)
    + Requirements::javascript("jsparty/greybox/AmiJS.js");
    + Requirements::javascript("jsparty/greybox/greybox.js");
    + Requirements::javascript("sapphire/javascript/TableListField.js");
    + Requirements::javascript("sapphire/javascript/TableField.js");
    + Requirements::javascript("sapphire/javascript/ComplexTableField.js");
    + Requirements::javascript("cms/javascript/MemberTableField.js");
    + Requirements::css("jsparty/greybox/greybox.css");
    + Requirements::css("sapphire/css/ComplexTableField.css");


    Hope this helps,


  • Nathan Cox
    Community Member
    99 Posts

    Re: Updating MemberTableField on save Link to this post

    Already done that...it solves one problem, but just leads to more...at the moment I'm having problems related to actually creating the group, or more specifically making sure the member list has the group information at all the right times.

Page: 1 2
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.