What I am trying to do:
I have data for a Tabulator table serialized and stored in my database. In this section of my code, I am retrieving and parsing the data. I need to get the column data into an array to put into my Tabulator table, which includes the column title as well as different settings like headerSort: false
The issue:
Uncaught TypeError: Cannot read property 'field' of undefined tabulator.js?ver=5.2.3:1615
at new Column (tabulator.js?ver=5.2.3:1615)
at ColumnManager._addColumn (tabulator.js?ver=5.2.3:670)
at tabulator.js?ver=5.2.3:650
at Array.forEach (<anonymous>)
at ColumnManager.setColumns (tabulator.js?ver=5.2.3:648)
at Tabulator._buildElement (tabulator.js?ver=5.2.3:9562)
at Tabulator._create (tabulator.js?ver=5.2.3:9418)
at new Tabulator (tabulator.js?ver=5.2.3:8616)
at displayEditTable (ccs-table-builder-script.js?ver=5.2.3:321)
at Object.success (ccs-table-builder-script.js?ver=5.2.3:215)
Code:
ccs-table-builder-script.js
var obj = JSON.parse(data); //parses information from the database
var rows = obj['data'];
var columns = obj['titles'];
var colArray = [];
colArray.push(columns.forEach(restructureColumns));
var editTable = new Tabulator("#ccs-editing-table", {
data:rows,
columns: colArray
}
function restructureColumns(item, index){
console.log(item.field);
console.log(item.title);
return {title:item.title, field:item.field, editableTitle:true, editor:"textarea", headerSort:false, headerClick:function (e, column) {
deleteColFunction(e, column);
}};
}
Based on the console.log, I know that item.field and item.title are being read correctly.
Here’s the output of an item:
editableTitle: "true" editor: "textarea" field: "col1" headerClick: "undefined" headerSort: "false" title: "col1"
[The reason I am doing this is because I need headerSort and the like to look like headerSort: false not headerSort: "false"]
What I’ve Tried:
I have looked at other StackOverflow questions for similar issues, but I could not find a way to apply them to my own code.
I definitely think it’s an issue with my own code, not Tabulator. Specifically, I think the issue is with the ‘restructureColumns’ function where I am naming title:item.title and field:item.field.
http://himshairloss.com propecia generic finasteride
http://wardenafil.com vardenafil 20 mg reviews
https://levitradd.com/ levitra high
http://levitradd.com/ what is the drug levitra used for
http://winviag.com buy viagra online cheap
http://albuterolotc.com hfa inhaler
http://prescriptionhim.com/ viagra without a doctor prescription
https://himshairloss.com/ finasteride
plenty fish date site
adult dating sim
http://haelanclomid.com ovulation pills walmart
https://stromectolhumans.com/ stromectol
https://iwermectin.com/ stromectol over the counter
http://ivermectineffects.com/ ivermectin over the counter
http://ivermectinovercounter.com/ stromectol
what is the fastest way to lower someone’s blood pressure which of the following is a central component of health information technology (hit)?
ivermectin https://ivermectinhome.com
http://ivermectinus.com/ ivermectin for humans for sale
http://zithrozpack.com/ how to take a z pak
http://albuterolotc.com/ what is allopurinol prescribed for
ivermectin tablets for humans for sale https://ivermcov.com/# buy ivermectin for humans
what are private healthcare organizations ttp medicine
stromectol 3mg tablets scabies https://ivermectinhome.com
upmc health plan https://ventolinhfaer.com/ albuterol inhaler 90 mcg
neurontin 100 – buying neurontin without a prescription thyroid synthroid
what joint supplements can i give my horse for severe arthritis http://withouthims.com order viagra generic
how does glucose cause heart disease http://essinreceta.com viagra 100mg
quick med to relieve asthma stromectol https://iveramectin.com ivermectin 12 mg tablets for sale
generic amoxicillin at walmart – buy amoxicilina 500 mg online amoxicillin sales worldwide
viagra without a doctor prescription usa https://viagrob.com buy viagra generics
generic prescription viagra – Rx generic viagra how can you get viagra
ivermektiini where to buy ivermectin in phoenix https://stromectl.com ivermectin for sale
ivermectin medicine – ivermectin 12 stromectol cream
ivermektin 10 mg http://ivermectin1.com/ ivermectin
https://stromectolo.com – ivermectin tablets
stromectol medication – buy ivermectin stromectola online
zithromax generic brand http://azithrozpack.com z pak
sildenafil reviews – online pharmacy sildenafil sildenafil online canadian pharmacy
tadalafil prescription online – tadalafil tablets tadalafil reviews
accutane pharmacy online – cheapest generic accutane buy accutane without prescription
ivermectin generic name – ivermectin cost in usa stromectol ivermectin
amoxicillin for h pylori
ohio department of mental health and addiction services http://viwithout.com – is viagra funded by government
http://ivrmectin.com – ivermectin tablets buy
generic zyrtec at walmart – http://allergyd.com
generic propecia wholesale
generic vardenafil pills – vardenafil 10 mg the blue pill ed
plaquenil and weight loss – prednisone 20mg pills buy prednisone with paypal canada
stromectol 3mg scabies https://stromectolforte.com/# ivermectin tablets for humans ivermectine 1% crГЁme generiek
orlistat rx – orlistat medication class orlistat
cialis generic price comparison
ivermectin for sale https://stromectolforte.com/# stromectol canada ivermectine vidal
goodrx zithromax
cheap ventolin australia
iwermektyna 1% krem ​​generyczny https://stromectoloff.com/ compresse di stromectolo
zithromax and tylenol
cialis cheapest price canada – viagra cialis cialis singapore pharmacy
cost of cialis in canada – Discount cialis online tadalafil price uk
ivermectin 12 mg without a doctor prescription – stromectol rx ivermectin humans
dapoxetine et sildenafil tablets
what effect does alchol hae on blood pressure http://cialisbob.com – buy generic viagra and cialis online
write my essay help – how to write an essay about my family writing a paper
12.5 mg viagra daily – Low cost canadian viagra pharmacy viagra canada
order generic tadalafil
http://gabenhim.com – neurontin 100mg
prednisone 30 mg – buy prednisone cost 50mg prednisone tablets
buy viagra online from india
female viagra in india online purchase http://viagwdp.com/# brand viagra pills viagra meme
https://www.lasixotc.com sildenafil how to take
buy viagra without prescription
accutane in mexico – buy accutane online usa accutane online uk
http://sansordonnancemd.com – prix du levitra en pharmacie
slots online – free online slot machines san manuel casino online
viagra cialis online
stromectol prices
plaquenil stock price plaquenil tab 200mg drug interaction between plaquenil and avastin how often should you test plaquenil blood levels
hydroxychloroquine us – cenforce without prescription buy valtrex pills
miconazole cream and fluconazole
generic sildalis – order finasteride 5mg sale purchase metformin pills
buy ampicillin 250mg generic – order cipro 1000mg sale plaquenil 200mg canada
sildenafil over counter – sildenafil order online order cialis 5mg online cheap
generique sildenafil 200mg – sildenafil 50mg pour homme cialis 10mg sans ordonnance
walmart pharmacy cost of amoxicillin
ivermectin 3mg tab – buy stromectol for humans ivermectin 6 mg stromectol
buy prednisone generic – cheap online pharmacy prednisone medication
amoxicillin drops 50mg ml 15 ml bottle by delmarva
cialis tadalafil tadalafil generic
tadalafil cost in canada tadalafil drug
generic tadalafil from uk what is tadalafil