Have some troubles, with Hidden Input Fields

edited November 2013 in Technical questions

Hello senior developer's, i have some array
view:"list",
id:"list",

            template:"#fullname#</a>", 
            select: "multiselect",
            url: "server/datatable.php",
            on:{
                                        onSelectChange:function(){
                                            var arr = $$('list').getSelectedItem(true);
                                            console.log(arr);
                                            var newHTML = "";
                                            var text = "";
                                            $$('form2').setValues( { refer2: arr[0]["_id"]} );

but when i select many documents array not sent all data, only 1 items, help please.

Comments

  • MY datatable.php

    try{
    $mongoClient = new MongoClient;
    $collOrganizations = $mongoClient->lib->organizations;
    } catch (MongoConnectionException $e) {
    die('Failed to connect to MongoDB '.$e->getMessage());
    }
    $cursor = $collOrganizations->find(array(), $fields=array('fullname','saved_at','referrer','city'));

    $data = array();
    foreach($cursor as $value)
    {
    $data[] = array(
    '_id' => (string)$value['_id'],
    'fullname' => $value['fullname'],
    'city' => $value['city'],
    'votes' => count($value['referrer']),
    'saved_at' => date('d.m.Y', $value['saved_at']->sec)
    );
    }
    $totalRecords = $cursor->count();
    echo json_encode($data);
    ?>

  • Hello,

    Could you explain the problem in detail ? You mentioed hidden inputs in the title and the sample code is about list...

  • all fine thanks, i have another question, in this page http://docs.webix.com/datatable__export.html - have some archive links/ but not download , fix it ?

  • edited December 2013

    Hi,

    We will update links in several days.

  • say about this, when you make it.

  • All links fixed.
    Sorry for inconvenience.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!