Joomla 2.5.6 "Please first make a selection from the list" - Joomla! Forum - community, help and support


i'm following mvc 2.5 tutorial , working out component's back-end - it's same tutorial when got toolbar ran problems. component fine, once select check box generated <?php echo jhtml::_('grid.id', $i, $item->id); ?> , try hit "edit" or "delete", notorious "please first make selection list" message.

i have cleared both joomla , browser caches without success. code view follows below:

code: select all

   <form action="<?php echo jroute::_('index.php?option=com_ordergenerator'); ?>" method="post" name="adminform" id="adminform">
                <table width="100%" border="0" class="adminlist">
                    <tr class="tr">
                        <th width="20">
                        <input type="checkbox" name="toggle" value="" onclick="checkall(<?php echo count($this->items); ?>);" />   
                        </th>
                       
                        <th>order id</th>
                        <th>price</th> 
                        <th>status</th>
                        <th>generated by</th>
                        <th>id</th>             
                    </tr>
                    <? foreach ($this->items $i => $item) { ?>
                   
                      <tr class="row<?php echo $i % 2; ?>">
                            <td><?php echo jhtml::_('grid.id', $i, $item->id); ?></td>       
                            <td><?php echo $item->orderid; ?></td>   
                            <td><?php echo $item->price; ?></td>   
                            <td><?php echo $item->status; ?></td>
                            <td><?php echo $item->username; ?></td>
                            <td><?php echo $item->id; ?></td>       
                      </tr>
                     
                    <? } ?>
                   
                    <tr>
                           <td colspan="6"><?php echo $this->pagination->getlistfooter(); ?></td>
                    </tr>         
                </table>
            <input type="hidden" name="task" value="" />
            <input type="hidden" name="boxchecked" value="0" />
        <?php echo jhtml::_('form.token'); ?>
    </form>


if needed can post model , controller via pastebin.. please help!!

when view source of page checkboxes have needed/correct info (particularly value="" attribute has correct id of item)?

eg:

code: select all

<input type="checkbox" id="cb0" name="cid[]" value="22" onclick="ischecked(this.checked);">
<input type="checkbox" id="cb1" name="cid[]" value="21" onclick="ischecked(this.checked);">
<input type="checkbox" id="cb2" name="cid[]" value="20" onclick="ischecked(this.checked);">





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support