The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
14 views

No data showing in tableselect

This is a very weird one... I am building a table using '#type' => 'tableselect' I have $header = array('date', 'name', 'email', 'location', 'time'); and $options[$result2[$i]['id']] = ...
1
vote
0answers
46 views

Problem to update a date_select field from a tableselect radio button via ajax callback. Other fields are well updated

Here is the corresponding code and a print screen of what happens when clicking a radio button (you can see it works well for type 'select' and 'textarea') I use Drupal core 7.31 and Date Date 7.x-2.8 ...
0
votes
0answers
20 views

TABLESELECT how to add two textfields in one cell?

How to add two textfields in one cell of table ? function fields_menu() { $items["fields"] = array( 'title' => 'test fields', 'page callback' => 'drupal_get_form', ...
1
vote
1answer
54 views

Drupal7 Get results from a form in a table

I want to show my result from the form in the table on the same page. //my form function find_tryk_filter_test_form_page($form, &$form_state) { $form['submit'] = array( '#type' => ...
0
votes
1answer
26 views

tableselect showing empty message instead of options [closed]

I'm trying to populate a tableselect on a form of a custom module. The tableselect is actually visible, but it's displaying the #empty message. I've simplified it to this code: ...
0
votes
0answers
16 views

Returning values of textfield in tableselect

I built a module that lists all of the blocks in a tableselect and need to place text field for each block, the checkbox must be there to make sure that the user has selected the block. like this ...
0
votes
1answer
33 views

form_submit() and form_validate() doesn't work for tableselect

I'm trying to create sort of slider that slides the user selected blocks. to do so I need to list all of the blocks and let the user to select them, I used tableselect. this is my MODULE.module ...
1
vote
1answer
22 views

multidimensional tableselect

Is it possible to create a multidimensional tableselect (table with checkboxes)? Why? I would like to show a tableselect of all menu links to delete one or more but a nested tableselect. So if they ...
2
votes
1answer
364 views

How can i maintain pagination with filter using tableselect?

I am creating listing of content using tableselect form type like as follow. function partners_list($form,&$form_state){ $header = array( 'name'=>array('data' => ...
1
vote
1answer
241 views

Generate hyperlink on each row for html table that contains database data

I created Ajax based dependent dropdown list and based on the selected item I selected table from database and displayed html table as output. Now I want to generate hyperlink for each row of html ...
1
vote
0answers
93 views

tableselect didnt show any result

here the code i'm working $query = db_select("aa_koleksi", "koleksi"); $query->fields("koleksi", array("id", "judul")); $result = $query->execute(); $header = array('Kode Buku', 'Judul ...
1
vote
2answers
867 views

Tableselect with textfields

Is it possible to build tableselect form with textfield in each row? function nowayform_form($form, $form_state) { $xsroads = array( ...
1
vote
1answer
663 views

Query custom field on user table

How do you query custom fields on the user table? If edit a user in the Admin panel, and hit the DEVEL tab, I see the field I added, 'field_display_name'. In a node template php file, I want to ...
1
vote
0answers
288 views

Ajax callback with db_select in tableselect (Drupal 7)

I have some problem with ajax callback. After add a description by Upload button to database I try to dinamically show this result in tableselect, but db_select isn't refresh after callback. Anybody ...
2
votes
1answer
67 views

how to groupby with rollup in drupal 7

how to get booking records from booking table .how to get group by function with ROLLUP SELECT * FROM booking GROUP BY startBooking WITH ROLLUP; how to convert above query in drupal 7? ...
-1
votes
1answer
109 views

How to select all the field in content type [closed]

How to select all the fields created in custom content type using select query. $query = new EntityFieldQuery(); $result = $query->entityCondition('entity_type', 'node', '=') // select nodes ...
2
votes
1answer
129 views

To view the database field data in the admin page custom module

How to show the data from the database in the admin page of custom module. The listed data should be edited/deleted/view. Please say what Hook is to be used in the.inc file
0
votes
1answer
71 views

Add link that performs database function

I am building a tableselect. What I want is to have last row be a link that when clicked performs a CRUD using the row ID as input. The goal is to have a "delete" link that removes that row from the ...
0
votes
0answers
146 views

Sort tableselect on taxonomy name (not tid)

So I've got a nice list of products in a tableselect element, like this: $form['nodes'] = array( '#type' => 'tableselect', '#header' => $header, '#options' => $options, '#empty' ...
2
votes
2answers
190 views

Setting a header for checkmark in tableselect

I am interesting in adding text next to the checkmark in the table #header. As you can see from the photo there isn't any text there. My code for the table: $header = array( 'campground' ...
1
vote
1answer
1k views

Drupal Form API tableselect programmatically check or uncheck checkbox

I followed this code example and built up my own version of how I want to use the tableselect. I want to use the table select for configurations. To do this I need programmatically check or uncheck a ...
1
vote
0answers
66 views

How to use field_ui_table element in custom module?

How to use field_ui_table element in custom module? or is it possible to do so? $form['menu_builder']['list1'] = array( '#type' => 'field_ui_table', '#header' => ...
0
votes
1answer
116 views

In a tableselect form element with '#js_select' => FALSE, how can I re-use the column header for a label?

I have a pretty ordinary tableselect element that looks like so $form['registration_table'] = array( '#title'=>"Register", '#type' => 'tableselect', '#header' => $header, ...
1
vote
1answer
439 views

Table form with two checkbox columns

I know it is fairly easy to create a table form with one column of checkboxes using table_select. But I would like to have two columns, preferably on the right of the text (as opposed to checkboxes in ...
5
votes
1answer
1k views

Returning Values from Tableselect Form with AJAX

Objective: To combine AJAX Autocomplete with my Tableselect Form to create a key for users to select imported products that don't match existing products within your Drupal site. This new billing ...
2
votes
2answers
405 views

How to select every date before now in timestamp?

my database feild type is timestamp here is my code I used it but It also gave me today date I need every date before today "SELECT * FROM {mytable} WHERE date <".$now_timestamp." " please ...
1
vote
1answer
254 views

Drupal 7 - Retain checkbox values across pages

In Drupal 7, I am using tableselect theme with PagerSelect to generate table with checkboxes and pagination. Any thoughts on how to retain checkbox values on pagination?
1
vote
1answer
2k views

How do I add an edit button on each row of a “tableselect” form element?

How do I add an edit button on each row of a "tableselect" form element? The code I have is the following one. function example_elements_form() { $form = array(); $header = array( ...