⚠ 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 forum is read-only and soon will be archived. ⚠


multiple delete selection

checkbox multiple delete refresh

  • Please log in to reply
34 replies to this topic

#21 azsuman

azsuman

    Member

  • Members
  • PipPip
  • 16 posts

Posted 24 January 2013 - 06:06 PM

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

#22 azsuman

azsuman

    Member

  • Members
  • PipPip
  • 16 posts

Posted 24 January 2013 - 06:23 PM

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

#23 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts

Posted 24 January 2013 - 06:28 PM

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

#24 azsuman

azsuman

    Member

  • Members
  • PipPip
  • 16 posts

Posted 24 January 2013 - 06:32 PM

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

#25 azsuman

azsuman

    Member

  • Members
  • PipPip
  • 16 posts

Posted 24 January 2013 - 06:39 PM

it's urgent Victor.

#26 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts

Posted 24 January 2013 - 06:40 PM

Do you want to use delete and import functionality together?

#27 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts

Posted 24 January 2013 - 06:42 PM

Let's communicate via private messages

#28 azsuman

azsuman

    Member

  • Members
  • PipPip
  • 16 posts

Posted 24 January 2013 - 06: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.

#29 azsuman

azsuman

    Member

  • Members
  • PipPip
  • 16 posts

Posted 24 January 2013 - 06:47 PM

you just tell me, how can i get "save file dialog box" when click on a button which is located at tDiv2.

#30 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts

Posted 24 January 2013 - 06:52 PM

I sent a private message to you

#31 helmisusanto

helmisusanto

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 02 February 2013 - 08: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



Severity: Warning
Message: Missing argument 1 for Data_master::delete_selection()
Filename: controllers/data_master.php
Line Number: 57


A PHP Error was encountered

Severity: Warning
Message: Missing argument 2 for Data_master::delete_selection()
Filename: controllers/data_master.php
Line Number: 57


A PHP Error was encountered

Severity: Notice
Message: Undefined variable: id
Filename: controllers/data_master.php
Line Number: 65


A PHP Error was encountered

Severity: Notice
Message: Undefined variable: table
Filename: controllers/data_master.php
Line Number: 66


A Database Error Occurred

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


#32 helmisusanto

helmisusanto

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 02 February 2013 - 08: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);
}

#33 hariprasath

hariprasath

    Newbie

  • Members
  • Pip
  • 7 posts

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

Attached Files

  • Attached File  list.php   4.02K   289 downloads


#34 Adrian

Adrian

    Newbie

  • Members
  • Pip
  • 4 posts

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.

 

 

Attached Thumbnails

  • screen from app.png
  • screen from table structure.png

Attached Files



#35 prashant

prashant

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 11 December 2017 - 06:30 AM

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







Also tagged with one or more of these keywords: checkbox, multiple delete, refresh

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users