[SOLVED!] unable to retrieve detail list - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: [SOLVED!] unable to retrieve detail list (/showthread.php?tid=26876) Pages:
1
2
|
[SOLVED!] unable to retrieve detail list - El Forum - 01-25-2010 [eluser]maria clara[/eluser] hi to all, i have a jqgrid with a detail list but the content don't show the item from a joined table. its not retrieving the $item for the details...here's my code: Code: function getDetailList() //Show the list of registered user with company details anyone could help?? thanks, [SOLVED!] unable to retrieve detail list - El Forum - 01-26-2010 [eluser]Ben Edmunds[/eluser] if you do a print_r on $_POST is item in the array? [SOLVED!] unable to retrieve detail list - El Forum - 01-26-2010 [eluser]maria clara[/eluser] hi, i already did the print_r() and it shows this in my console: Quote:{ and when i tried to put $_POST it shows an error. i have here attached image of the listview and the detaillistview. when you select an item in the listview, the detaillistview will be shown but the jqgrid there is blank because of i can't retrieve the value of the $item. [SOLVED!] unable to retrieve detail list - El Forum - 01-26-2010 [eluser]Ben Edmunds[/eluser] Hey, You have to do: Code: print_r($_POST); because $_POST is an array and print_r prints arrays. [SOLVED!] unable to retrieve detail list - El Forum - 01-26-2010 [eluser]maria clara[/eluser] is this right?? i do this: $item = $this->input->post('item'); print_r($_POST); this shows an error with my jquery plugin. or like this: $item = $this->input->post('item'); print_r($_POST['item']); they both have the same error. [SOLVED!] unable to retrieve detail list - El Forum - 01-26-2010 [eluser]Ben Edmunds[/eluser] You want to do print_r($_POST); What error are you getting? [SOLVED!] unable to retrieve detail list - El Forum - 01-26-2010 [eluser]maria clara[/eluser] this is what im getting when i use print_r($_POST) Quote:syntax error [SOLVED!] unable to retrieve detail list - El Forum - 01-26-2010 [eluser]Ben Edmunds[/eluser] Thats fine. The print_r is probably just screwing up your js output. View source and find the print_r and see what you have there. [SOLVED!] unable to retrieve detail list - El Forum - 01-26-2010 [eluser]maria clara[/eluser] i viewed the source and have found this <a href="#" title="Print"><span class="disabled" title="Print"><b class="item_print"></b></span></a> what does it mean?? because still the data in the detaillistview doesn't show up. [SOLVED!] unable to retrieve detail list - El Forum - 01-26-2010 [eluser]maria clara[/eluser] i used to do this Code: $item = $this->input->post('item'); and tried to change the value of the $item here Code: $this->db->where("sec_companyaccess.user_id", $item); $item is not retrieving any value that's why there's no details shown in the detaillistview. |