Quantcast
Channel: Editor — DataTables forums
Browsing all 3740 articles
Browse latest View live

Store and send extra data for a row

When I build my table, I sometimes include extra data like a table ID that is not used in generating the columns. When I send the edit to the server I need that information but the only way I can get...

View Article


submit editor data to servlet

I'm stuck getting the editor to submit to servlet. When I click "save", servlet is invoked. However, I'm not seeing data being passed back. $(document).ready(function() { editor = new...

View Article


Suggest value

Hi, I'm trying to suggest a value when a user inline edits a field. The function I have at the moment is this: editor.field( 'finalOrder' ).input().on( 'focus', function (e, d) { if ( ! d || ! d.editor...

View Article

Javascript event handlers question

I'm trying to use a javascript onchange() event handler on my Editor fields. Specifically, numeric fields so that I can check that the values meet certain criteria. The field definition looks like...

View Article

Editor field tooltip

Hi How can I add a tooltip to a textbox field in editor? Thanks,

View Article


Problem with a custom edit button after using the create button

I have a problem with the following code. If I click on "New" first, then abort that, then I use "Edit" on a row, the bottom button says "Create", not "Cancel" and "Save" like I would see if I reloaded...

View Article

Filling autoComplete field on the fly

Hi I have such a field which needs to be populated based on user selection in another drop-down. I tried using the code below in the success event of an ajax call but the field is not populated. Please...

View Article

Batch processing CSV upload

I'm using the CSV Upload Example but need to batch process the uploaded rows. Otherwise I get server timeouts. I'm using the preSubmit event to break the ajax request up into 500 row chunks to send to...

View Article


Currency Validation

I've loooked around but don't see a validator that validates currency when a person enters data in the field. I see a couple options for formatting a number in table view with a $, but not input...

View Article


Editor Esc Key inside Bootstrap Modal

Greetings, Sometimes I use a datatable inside a bootrap Modal, or any other modal. When trying to use an editor actions, and the lightbox appear, and deciding to cancel, the ESC key is usually used....

View Article

PHP MJoin with Where cause SQL syntax Error

Greetings I'm using PHP Datatable Library 1.9, and everything is fine. Today I tried to use Mjoin as usual, but this time I have to do furhter conditioning by adding where. and I got the error: error:...

View Article

Editor Line 958: Warning In Count()

Greetings I've encountered a problem in this Line in Editor.php File (1.9.2): if ( count($data, COUNT_RECURSIVE) >= ini_get('max_input_vars') ) { $this->_out['error'] = 'Too many rows edited at...

View Article

table.editor() results in 'undefined'

Hi, I am using a local inline editor with submit on blur which works just fine. Now, I also want to submit just edited values when the submit button of the whole form is clicked. However, when the...

View Article


Node.js datatables editor - Custom/Unique validation for multiple columns

The Validator.dbUnique() let's me validate a value prior to insert if the value is unique in that column. Ref. https://editor.datatables.net/manual/nodejs/validation new Field( 'groups.name' ) new...

View Article

Editor Modal Width in Bootstrap 4

Is there a way to increase the modal width? At present, the width is 500px, which is the size of a BS4 standard modal. Can it be increased to modal-lg? Many thanks for your help in advance. Kind regards

View Article


Empty Password Field, disable writing to database

I have a password field that when a new user is created I want to write the password to the database. That works fine and encrypts the password using the following. $out=Editor::inst( $db, 'users' )...

View Article

TinyMCE doesn't show content on first call

Hey all, I've got the following problem. I'm using the TinyMCE-plugin for text-field in my table and on the first call the content never shows up, there's just an empty editor. If I close the editor...

View Article


Ability to create rows in a table when creating a record in another table

Is there functionality in the editor that when creating a new record in one table, to add multiple records in another table, that are then related to the new record being created? So, the scenario is:...

View Article

Left join where FK is in the other table

Trying to do a left join, which I have done in the past OK, but in this instance the fk is not in the parent table 'unit' but the other table 'unit_outcome' Editor::inst( $db_cm_md, 'unit', 'unit_pk' )...

View Article

TinyMCE not loading content on first load

The first time that I edit a row (as a modal), the TinyMCE editor loads properly, but it does not load existing content. Closing and re-opening does show the content, and indeed shows the content for...

View Article
Browsing all 3740 articles
Browse latest View live