Someone knows how request an id from a table, with custom-table-fields.js
In EMONCMS I see code like this used a lot:
'view-action':{'title':'', 'type':"iconlink", 'link':path+"vis/auto?feedid="}
view-action':{'title':'', 'type':"iconlink", 'link':path+"dashboard/view?id="}
But if I make my table from the input data and only need to know what the id is in the first column of my new table. How do I do that?
I have tried this:
'view-action':{'title':'', 'type':"iconlink", 'link':path+"mytable/?nodeid="}
but the response is: http://mi_ip/emoncms/mytable/?nodeid=undefined
I am missing something, but what?
view-action id request
Submitted by wifixcort on Wed, 20/05/2015 - 17:34Someone knows how request an id from a table, with custom-table-fields.js
In EMONCMS I see code like this used a lot:
'view-action':{'title':'', 'type':"iconlink", 'link':path+"vis/auto?feedid="}
view-action':{'title':'', 'type':"iconlink", 'link':path+"dashboard/view?id="}
But if I make my table from the input data and only need to know what the id is in the first column of my new table. How do I do that?
I have tried this:
'view-action':{'title':'', 'type':"iconlink", 'link':path+"mytable/?nodeid="}
but the response is:
http://mi_ip/emoncms/mytable/?nodeid=undefined
I am missing something, but what?