The tableselect tag has no wiki summary.
1
vote
0answers
33 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
33 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
38 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
22 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
0answers
115 views
How can I add ajax buttons to each row of tableselect/table?
How can I add ajax buttons to each row of tableselect/table?
I have the code:
function theme_application_wizard_table($vars) {
extract($vars);
$header = $element['#header'];
...
0
votes
1answer
38 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
47 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
1answer
46 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' ...
0
votes
1answer
220 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 ...
0
votes
0answers
235 views
Drupal 7 ajax + tableselect bug. Is there a workaround?
This relates to a bug which is as of yet unresolved in Drupal 7. It is documented here.
Simply, tableselect when used with ajax is horribly broken and until the fix gets implemented in Drupal 7 I was ...
1
vote
0answers
32 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
70 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,
...
0
votes
0answers
87 views
How do we extend TableSort module in Drupal 7
I am trying to extend the TableSort module in Drupal 7 and can't seem to get it working. I have added this code as the first thing in my custom module right after the extend('MyTableSort') in my sql ...
1
vote
1answer
192 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 ...
4
votes
1answer
370 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 ...
0
votes
0answers
395 views
multiple checkboxes in a table
I'm developing a module in which there is submit button in a form, which displays a table via ajax-( column 1 is a Word, column 2 is an integer, column 3 is a checkbox to perform some javascript when ...
2
votes
2answers
252 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
124 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
802 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(
...