View more context

 

manueltomasir

hey friends, is anyone familiar with this module??

https://github.com/burnbright/silverstripe-importexport

Show 1 attachment(s)
GitHub  
burnbright/silverstripe-importexport

Import and export data from SilverStripe in a variety of forms. Looking for maintainer, see https://github.com/burnbright/silverstripe-importexport/issues/48 - burnbright/silverstripe-importexport

Hide attachment content
manueltomasir

i've got it loaded, but when i try to import the CSV, i get a 500 error, white screen of death

manueltomasir

Class 'Goodby\CSV\Import\Standard\LexerConfig' not found

dorsetdigital
  1. public function updateEditForm(Form $form)
  2. {
  3. $members = $form->Fields()->dataFieldByName('Members');
  4. $members->setList($members->getList()->sort('Surname'));
  5. $config = $members->getConfig();
  6.  
  7. $dataColumns = $config->getComponentByType('GridFieldDataColumns');
  8. $dataColumns->setDisplayFields([
  9. 'FirstName' => 'First Name',
  10. 'Surname' => 'Surname',
  11. 'Email' => 'Email',
  12. 'Company.CompanyName' => 'Company Name',
  13. 'IsActive.Nice' => 'Active',
  14. 'HelpdeskStatus' => 'Help Desk'
  15. ]);
  16.  
  17. }

Can someone remind me how to make the 'Help Desk' column searchable / filterable in Security Admin? getHelpdeskStatus() is a method added to Member via an extension. It displays properly, but I can't order or filter the gridfield using it 🤔

Eduard Ichim

@dorsetdigital I think is on the DataObject under

  1. $searchable_fields
dorsetdigital

Thanks, but I don't think that applies in this case. This is in the security admin, with a custom gridfield