The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
43 views

Create a tableselect like /admin/people/permissions [duplicate]

I want to create a table that looks like the drupal table on : /admin/people/permissions (table with multiple checkboxes on every line) Any help is welecome
0
votes
0answers
24 views

How to set checkboxes on a tableselect

I want to display tableselect with a column with only checkboxes this is my code : function liste_sections($form, &$form_state){ $form = array(); $form['checkbox'] = array( '#type' => ...
-1
votes
1answer
20 views

How to show only child terms of a taxonomy on a table

I want to display only child terms of a taxonomy on a tableselect ? Example : Term A has : terms {B,C,D} term E has : term {F} I want to display only {B,C,D,F} on a table (in order to make some ...
0
votes
1answer
14 views

Forms API TableSelect with Drag&Drop Weight

I'm using Drupal 7 form api. I have a tableselect and have been looking all over the internet for a tutorial for how to make a tableselect have sorting/click&drag functionality. I have found ...
0
votes
0answers
29 views

Tableselect with only checkboxes in every line

As said in the title, I want to create a table made of a list of "persons" (the left column) and few columns in order to only check properties of every person, that why I need only checkboxes on this ...
0
votes
1answer
8 views

Tableselect with columns of checkboxes

I've a simple tableselect with 4 columns, in the 3 last columns a want to populate all the columns with checkboxes, anyone can help me to do that ? here is my actual code : function ...
0
votes
0answers
13 views

Form API: Populate tableselect options with AJAX

I want to add a series of sections to the node create/edit form I have for a custom content type. They all work in a similar fashion, in that I pull data from another database and display it for the ...
0
votes
0answers
15 views

Table select checkboxes values

I have table select (list of persons with name, age) and I want to return a name of one of the rows on a dsm for example, but by checking the checkbox of the row that I want to dsm and clicking on ...
0
votes
0answers
20 views

How to avoid Onclick event returning old output along with new output

Using db_select got the data(path to csv file) from database, bind it to table(themes) and returned table as output. Each row in the table as hyperlink named "Plot" as shown below. When user clicks ...
1
vote
1answer
26 views

tableselect does not work for me somehow 1

Array ( [table] => Array ( [#type] => tableselect [#header] => Array ( [field_name] => FIELD NAME ...
0
votes
0answers
46 views

Tableselect radios are not accessible

Has anyone else run into an accessibility issue when using the form API tableselect element ('#multiple' => FALSE)? The resulting markup is a table with the first column as an input of type radio, but ...
0
votes
1answer
81 views

Show result summary in theme table

Can we show the result summary like "Displaying X to Y of Z records" while using the "table" or "tableselect" themes? I mean just the thing we do in views header/footer using the "Global: Result ...
0
votes
1answer
24 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
1answer
134 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
23 views

TABLESELECT how to add two textfields in one cell? [duplicate]

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
259 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
56 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
1answer
79 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
31 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
908 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
499 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
137 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
1k 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
1k 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
412 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
91 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? ...
0
votes
1answer
156 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
274 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
80 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
199 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
294 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
2k 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
75 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
143 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
658 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
2k 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
479 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
303 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( ...