⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

multiple delete selection



azsuman

azsuman
  • profile picture
  • Member

Posted 24 January 2013 - 18:06 PM

is anybody here? how could help me to solve the above posted problem.

azsuman

azsuman
  • profile picture
  • Member

Posted 24 January 2013 - 18:23 PM

dear victor, first like to thx for ur previous help, now pls help me concerning the issue.

victor

victor
  • profile picture
  • Member

Posted 24 January 2013 - 18:28 PM

Can you explain what doesn't work in your code?
Don't You get this: [attachment=447:save.jpg]?
Sorry for my English.

azsuman

azsuman
  • profile picture
  • Member

Posted 24 January 2013 - 18:32 PM

no, i don't get the above screen, actually i want to export some selective rows.

azsuman

azsuman
  • profile picture
  • Member

Posted 24 January 2013 - 18:39 PM

it's urgent Victor.

victor

victor
  • profile picture
  • Member

Posted 24 January 2013 - 18:40 PM

Do you want to use delete and import functionality together?

victor

victor
  • profile picture
  • Member

Posted 24 January 2013 - 18:42 PM

Let's communicate via private messages

azsuman

azsuman
  • profile picture
  • Member

Posted 24 January 2013 - 18:44 PM

yes, delete is working very well but cannot export selective row data. i think some think wrong in list.php file. and may be is Javascript part.

azsuman

azsuman
  • profile picture
  • Member

Posted 24 January 2013 - 18:47 PM

you just tell me, how can i get "[color=#282828][font=helvetica, arial, sans-serif]save file dialog box" when click on a button which is located at [/font][/color]tDiv2.

victor

victor
  • profile picture
  • Member

Posted 24 January 2013 - 18:52 PM

I sent a private message to you

helmisusanto

helmisusanto
  • profile picture
  • Member

Posted 02 February 2013 - 20:00 PM

anybody can help me?
i want using multiple delete...but it doesn't work for dynamic param...


here my code...


function delete_selection($table,$id){
$id_array = array();
$selection = $this->input->post("selection", TRUE);
$id_array = explode("|", $selection);

foreach($id_array as $item):
if($item != ''):
//DELETE ROW
$this->db->where($id, $item);
$this->db->delete($table);
endif;
endforeach;
}

just detected error

[color=#4F5155][font='normal Helvetica', Arial, sans-serif][size=3]

Severity: Warning
Message: Missing argument 1 for Data_master::delete_selection()
Filename: controllers/data_master.php
Line Number: 57[/size][/font][/color][color=#4F5155][font='normal Helvetica', Arial, sans-serif][size=3]

[b] A PHP Error was encountered[/b]

Severity: Warning
Message: Missing argument 2 for Data_master::delete_selection()
Filename: controllers/data_master.php
Line Number: 57[/size][/font][/color][color=#4F5155][font='normal Helvetica', Arial, sans-serif][size=3]

[b] A PHP Error was encountered[/b]

Severity: Notice
Message: Undefined variable: id
Filename: controllers/data_master.php
Line Number: 65[/size][/font][/color][color=#4F5155][font='normal Helvetica', Arial, sans-serif][size=3]

[b] A PHP Error was encountered[/b]

Severity: Notice
Message: Undefined variable: table
Filename: controllers/data_master.php
Line Number: 66[/size][/font][/color][color=#4F5155][font='normal Helvetica', Arial, sans-serif][size=3]

[b] A Database Error Occurred[/b]

You must set the database table to be used with your query.
Filename: C:\xampp\htdocs\elearning-hasan\system\database\DB_active_rec.php
Line Number: 1531[/size][/font][/color]

helmisusanto

helmisusanto
  • profile picture
  • Member

Posted 02 February 2013 - 20:01 PM

and this is my controller


function ebook(){
$crud = new grocery_CRUD();

$crud->set_subject('Ebook');

$crud->set_table('ebook');
$crud->set_relation('idMapel','mapel','nama');

$crud->display_as('idMapel','Mapel');
$this->delete_selection('ebook','idEbook');

$crud->set_rules('nama','required');
$crud->set_rules('file','required');
$crud->set_field_upload('file','assets/uploads/files/');

$output = $crud->render();
$this->_example_output($output);
}

hariprasath

hariprasath
  • profile picture
  • Member

Posted 07 October 2013 - 11:14 AM

Hi,

 

I need help!

 

checkbox Working fine for me, but i need to hide/remove from Other List Pages. Its show on unwanted palces.

 

an asking like unset_edits(),delete and add(), like this .

 

Im Very New to This Please help!

 

 I have Used list.php file

 

Thanks


Adrian

Adrian
  • profile picture
  • Member

Posted 15 January 2015 - 09:24 AM

Hello,

 

I've implemented multiple choice for delete solution from this topic but in my case it only shows checkboxes but it doesn't delete anything from my table.

 

Why delete function not working?

 

I've attached files from my first project in CI + groceryCrud. 

 

Please help me to solve this case.

 

 


prashant

prashant
  • profile picture
  • Member

Posted 11 December 2017 - 06:30 AM

Hiii any one there can  help me out to delete multiple users